Difference between revisions of "Template:Person"

From Inventing aviation
Jump to navigation Jump to search
(make Countries a list of pages)
(don't try to use Form:Occupations (although we could try that again))
 
(6 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
|Tech areas=
 
|Tech areas=
 
|Affiliations=
 
|Affiliations=
 +
|Wikidata id=
 
}}</pre>
 
}}</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Person|Name=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|}}} }} {| 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 32: Line 54:
 
|-
 
|-
 
! Occupations
 
! Occupations
| {{#arraymap:{{{Occupations|}}}|;|x|{{#formredlink:form=Techtype|target=x}} }}
+
| {{#arraymap:{{{Occupations|}}}|;|x|[[x]] }}
 
|-
 
|-
 
! Tech areas
 
! Tech areas
Line 39: Line 61:
 
! Affiliations
 
! Affiliations
 
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
 
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
 +
|-
 +
! Wikidata id
 +
| {{#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.