Template:Person: Difference between revisions

From TekWiki
Jump to navigation Jump to search
(Created page with "<noinclude> This is the "Person" template. It should be called in the following format: <pre> {{Person |Names= |Birth date= |Death date= |Countries= |Affiliations= |Wikidata i...")
 
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 6: Line 6:
|Names=
|Names=
|Birth date=
|Birth date=
|Birth place=
|Death date=
|Death date=
|Death place=
|Countries=
|Countries=
|Affiliations=
|Affiliations=
Line 12: Line 14:
}}</pre>
}}</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=Person
{{#cargo_declare:_table=Persons
|Names=List (;) of String (hidden)
|Names=List (;) of String (hidden)
|Birth_date=Date|Death_date=Date
|Birth_date=Date
|Birth_place=String
|Death_date=Date
|Death_place=String
|Countries=List (;) of Page
|Countries=List (;) of Page
|Affiliations=List (;) of Page
|Affiliations=List (;) of Page
|Wikidata_id=Text
|Wikidata_id=Text
}}
}}</noinclude><includeonly>{{#cargo_store:_table=Persons
</noinclude><includeonly>
{{#cargo_store:_table=Person
|Names={{{Names|}}}
|Names={{{Names|}}}
|Birth_date={{{Birth date|}}}
|Birth_date={{{Birth date|}}}
|Birth_place={{{Birth place|}}}
|Death_date={{{Death date|}}}
|Death_date={{{Death date|}}}
|Death_place={{{Death place|}}}
|Countries={{{Countries|}}}
|Countries={{{Countries|}}}
|Affiliations={{{Affiliations|}}}
|Affiliations={{{Affiliations|}}}
|Wikidata_id={{{Wikidata id|}}}
|Wikidata_id={{{Wikidata id|}}}
}}
}}
{| class="wikitable"
'''{{{Names|}}}''' ({{#if: {{{Birth date|}}} | b. {{{Birth date|}}} | ? }}{{#if: {{{Birth place|}}} |  in {{{Birth place|}}} |}} – {{#if: {{{Death date|}}} | d. {{{Death date|}}} | ?}}{{#if: {{{Death place|}}} |  in {{{Death place|}}} |}}) {{#if: {{{Wikidata id|}}} | (&rarr; [https://wikidata.org/wiki/{{{Wikidata id|}}} WikiData]) | }}</includeonly>
! Names
| {{{Names|}}}
|-
! Birth date
| {{{Birth date|}}}
|-
! Death date
| {{{Death date|}}}
|-
! Countries
| {{#arraymap:{{{Countries|}}}|;|x|[[x]]}}
|-
! Affiliations
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
|-
! Wikidata id
| {{#if: {{{Wikidata id|}}} | [[w:d:{{{Wikidata id}}}|{{{Wikidata id}}}]] }}
|}  
[[Category:Person]]
</includeonly>
__NOTOC__
__NOEDITSECTION__

Latest revision as of 06:28, 9 August 2021

This is the "Person" template. It should be called in the following format:

{{Person
|Names=
|Birth date=
|Birth place=
|Death date=
|Death place=
|Countries=
|Affiliations=
|Wikidata id=
}}

Edit the page to see the template text. This template defines the table "Persons". View table.