Template:Person: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 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=Person
}}</noinclude><includeonly>{{#cargo_store:_table=Persons
|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|}}}
}}
}}
'''{{{Names|}}}''' ({{#if: {{{Birth date|}}} | {{{Birth date|}}} | ? }} – {{#if: {{{Death date|}}} | {{{Death date|}}} | ?}}) {{#if: {{{Wikidata id|}}} | [https://wikidata.org/wiki/{{{Wikidata id|}}} WikiData] | }}</includeonly>
'''{{{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>

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.