Difference between revisions of "Template:Person"

From Inventing aviation
Jump to navigation Jump to search
(add Wikidata Qid)
(don't try to use Form:Occupations (although we could try that again))
 
(3 intermediate revisions by one other user not shown)
Line 12: Line 12:
 
|Tech areas=
 
|Tech areas=
 
|Affiliations=
 
|Affiliations=
|Qid=
+
|Wikidata id=
 
}}</pre>
 
}}</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Person|Names=List (;) of String (hidden)|Birth_date=Date|Death_date=Date|Countries=List (;) of Page|Locations=Text|Occupations=List (;) of Page|Tech_areas=List (;) of Page|Affiliations=List (;) of Page}}
+
{{#cargo_declare:_table=Person
</noinclude><includeonly>{{#cargo_store:_table=Person|Names={{{Names|}}}|Birth_date={{{Birth date|}}}|Death_date={{{Death date|}}}|Countries={{{Countries|}}}|Locations={{{Locations|}}}|Occupations={{{Occupations|}}}|Tech_areas={{{Tech areas|}}}|Affiliations={{{Affiliations|}}}|Qid={{{Qid|}}} }} {| class="wikitable"
+
|Names=List (;) of String (hidden)
 +
|Birth_date=Date|Death_date=Date
 +
|Countries=List (;) of Page
 +
|Locations=Text
 +
|Occupations=List (;) of Page
 +
|Tech_areas=List (;) of Page
 +
|Affiliations=List (;) of Page
 +
|Wikidata_id=Text
 +
}}
 +
</noinclude><includeonly>
 +
{{#cargo_store:_table=Person
 +
|Names={{{Names|}}}
 +
|Birth_date={{{Birth date|}}}
 +
|Death_date={{{Death date|}}}
 +
|Countries={{{Countries|}}}
 +
|Locations={{{Locations|}}}
 +
|Occupations={{{Occupations|}}}
 +
|Tech_areas={{{Tech areas|}}}
 +
|Affiliations={{{Affiliations|}}}
 +
|Wikidata_id={{{Wikidata id|}}}
 +
}}
 +
{| class="wikitable"
 
! Names
 
! Names
 
| {{{Names|}}}
 
| {{{Names|}}}
Line 33: Line 54:
 
|-
 
|-
 
! Occupations
 
! Occupations
| {{#arraymap:{{{Occupations|}}}|;|x|{{#formredlink:form=Occupation|target=x}} }}
+
| {{#arraymap:{{{Occupations|}}}|;|x|[[x]] }}
 
|-
 
|-
 
! Tech areas
 
! Tech areas
Line 41: Line 62:
 
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
 
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
 
|-
 
|-
! Qid
+
! Wikidata id
| {{{Qid|}}}
+
| {{#if: {{{Wikidata id|}}} | [[w:d:{{{Wikidata id}}}|{{{Wikidata id}}}]] }}
 
|}  
 
|}  
 
[[Category:Person]]
 
[[Category:Person]]

Latest revision as of 18:18, 29 December 2021

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

{{Person
|Names=
|Birth date=
|Death date=
|Countries=
|Locations=
|Occupations=
|Tech areas=
|Affiliations=
|Wikidata id=
}}

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