Difference between revisions of "Template:Li-td"

From Data JW United
Jump to navigation Jump to search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
Stands for `literature item - translation & digitalization`.
+
Stands for `literature item - translation & digitalization`. It should be used only in the content of a table.
 
= Parameters =
 
= Parameters =
 
<code>first</code> - translated and digitalized item (Qx)<br>
 
<code>first</code> - translated and digitalized item (Qx)<br>
 
<code>second</code> - in which language is translated and what language is the digitalized in (ex. hu)<br>
 
<code>second</code> - in which language is translated and what language is the digitalized in (ex. hu)<br>
 
= Usage =
 
= Usage =
The following code would generate the bellow table <code><nowiki>{{li-td|Q7|ro}}</nowiki></code>
+
The following code would generate the bellow table <code><nowiki>
 +
{| class="wikitable"
 +
|-
 +
! scope="col"| {{#ifeq: {{{3}}}|ro| Tipul materialului | {{#ifeq: {{{3}}}|hu| Típus |Type}}}}
 +
! scope="col" colspan="2" | {{#ifeq: {{{3}}}|ro| Titlu | {{#ifeq: {{{3}}}|hu| Cím |Title}}}}
 +
! scope="col"| {{#ifeq: {{{3}}}|ro| Volum | {{#ifeq: {{{3}}}|hu| Kötet |Volume}}}}
 +
! scope="col"| {{#ifeq: {{{3}}}|ro| Nr. | {{#ifeq: {{{3}}}|hu| Szám |Nr.}}}}
 +
! scope="col"| {{#ifeq: {{{3}}}|ro| Data | {{#ifeq: {{{3}}}|hu| Kötet |Dátum}}}}
 
{{li-td|Q7|ro}}
 
{{li-td|Q7|ro}}
</noinclude>
+
|}
<includeonly>
+
</nowiki></code>
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! scope="col"| {{#ifeq: {{{2}}}|ro| Tip | {{#ifeq: {{{2}}}|hu| Típus |Type}}}}
+
! scope="col"| {{#ifeq: {{{3}}}|ro| Tipul materialului | {{#ifeq: {{{3}}}|hu| Típus |Type}}}}
! scope="col" colspan="2" | {{#ifeq: {{{2}}}|ro| Titlu | {{#ifeq: {{{2}}}|hu| Cím |Title}}}}
+
! scope="col" colspan="2" | {{#ifeq: {{{3}}}|ro| Titlu | {{#ifeq: {{{3}}}|hu| Cím |Title}}}}
! scope="col"| {{#ifeq: {{{2}}}|ro| Volum | {{#ifeq: {{{2}}}|hu| Kötet |Volume}}}}
+
! scope="col"| {{#ifeq: {{{3}}}|ro| Volum | {{#ifeq: {{{3}}}|hu| Kötet |Volume}}}}
! scope="col"| {{#ifeq: {{{2}}}|ro| Nr. | {{#ifeq: {{{2}}}|hu| Szám |Nr.}}}}
+
! scope="col"| {{#ifeq: {{{3}}}|ro| Nr. | {{#ifeq: {{{3}}}|hu| Szám |Nr.}}}}
! scope="col"| {{#ifeq: {{{2}}}|ro| Data | {{#ifeq: {{{2}}}|hu| Kötet |Dátum}}}}
+
! scope="col"| {{#ifeq: {{{3}}}|ro| Data | {{#ifeq: {{{3}}}|hu| Kötet |Dátum}}}}
|-
+
{{li-td|Q7|ro}}
! rowspan="2"| {{#ifeq: {{{2}}}|ro| Tradus și digitalizat | {{#ifeq: {{{2}}}|hu| Fordítás és digitalizálás |Translated & Digitalized}}}}
+
|}
! {{#ifeq: {{{2}}}|ro| Titlul original | {{#ifeq: {{{2}}}|hu| Eredeti cím |Original title}}}}
+
</noinclude>
! {{#ifeq: {{{2}}}|ro| Titlul tradus | {{#ifeq: {{{2}}}|hu| Lefordított cím |Translated title}}}}
+
<includeonly>|-
| rowspan="2" | {{#invoke: LiteratureData | getVolume |{{{1}}}|}} ({{#roman: {{#invoke: LiteratureData | getVolume |{{{1}}}|}}}})
+
| {{#ifeq: {{{2}}}|ro| Tradus și digitalizat | {{#ifeq: {{{2}}}|hu| Forditott es digitalizalt |Translated & Digitalized}}}}
| rowspan="2" | {{#invoke: LiteratureData | getNumber |{{{1}}}|}}
+
| [[{{#invoke: LiteratureData | getNameOfLiteratureBasedOnLanguage |{{{1}}}|{{{2}}}}}]]
| rowspan="2" | {{#time: d.m.Y | {{#invoke: LiteratureData | getPublicationDateBasedOnLanguage |{{{1}}}|en}}}}
 
|-
 
 
| {{#invoke: LiteratureData | getNameOfLiteratureBasedOnLanguage |{{{1}}}|en}}
 
| {{#invoke: LiteratureData | getNameOfLiteratureBasedOnLanguage |{{{1}}}|en}}
| {{#invoke: LiteratureData | getNameOfLiteratureBasedOnLanguage |{{{1}}}|{{{2}}}}}
+
| {{#invoke: LiteratureData | getVolume |{{{1}}}|}} ({{#roman: {{#invoke: LiteratureData | getVolume |{{{1}}}|}}}})
|}
+
| {{#invoke: LiteratureData | getNumber |{{{1}}}|}}
</includeonly>
+
| {{#time: d.m.Y | {{#invoke: LiteratureData | getPublicationDateBasedOnLanguage |{{{1}}}|en}}}}
 +
|- style="background: #80a276;"
 +
| style="padding: 0.5px" colspan="6" |
 +
|-|}</includeonly>

Latest revision as of 13:32, 28 June 2022

Stands for `literature item - translation & digitalization`. It should be used only in the content of a table.

Parameters

first - translated and digitalized item (Qx)
second - in which language is translated and what language is the digitalized in (ex. hu)

Usage

The following code would generate the bellow table {| class="wikitable" |- ! scope="col"| {{#ifeq: {{{3}}}|ro| Tipul materialului | {{#ifeq: {{{3}}}|hu| Típus |Type}}}} ! scope="col" colspan="2" | {{#ifeq: {{{3}}}|ro| Titlu | {{#ifeq: {{{3}}}|hu| Cím |Title}}}} ! scope="col"| {{#ifeq: {{{3}}}|ro| Volum | {{#ifeq: {{{3}}}|hu| Kötet |Volume}}}} ! scope="col"| {{#ifeq: {{{3}}}|ro| Nr. | {{#ifeq: {{{3}}}|hu| Szám |Nr.}}}} ! scope="col"| {{#ifeq: {{{3}}}|ro| Data | {{#ifeq: {{{3}}}|hu| Kötet |Dátum}}}} {{li-td|Q7|ro}} |}

Type Title Volume Nr. Dátum
Tradus și digitalizat Organizație (partea 1) Organization (Part 1) 25 (XXV) 19 01.06.1938