Difference between revisions of "Template:Person"

From Inventing aviation
Jump to navigation Jump to search
m
(don't try to use Form:Occupations (although we could try that again))
 
(16 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Person
 
{{Person
|Name=
+
|Names=
 
|Birth date=
 
|Birth date=
 
|Death date=
 
|Death date=
|Nationality=
+
|Countries=
|Home=
+
|Locations=
|Occupation=
+
|Occupations=
 
|Tech areas=
 
|Tech areas=
 
|Affiliations=
 
|Affiliations=
 +
|Wikidata id=
 +
}}</pre>
 +
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
 +
|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|}}}
 
}}
 
}}
 
</pre>
 
 
Edit the page to see the template text.
 
{{#cargo_declare:_table=Person|Name=List (;) of String (hidden)|Birth_date=Date|Death_date=Date|Nationality=Page|Home=Text|Occupation=Text|Tech_areas=List (;) of Page|Affiliations=List (;) of Page}}
 
 
</noinclude>
 
<includeonly>
 
 
{{#cargo_store:_table=Person|Name={{{Name|}}}|Birth_date={{{Birth date|}}}|Death_date={{{Death date|}}}|Nationality={{{Nationality|}}}|Home={{{Home|}}}|Occupation={{{Occupation|}}}|Tech_areas={{{Tech areas|}}}|Affiliations={{{Affiliations|}}} }}
 
 
 
{| class="wikitable"
 
{| class="wikitable"
! Name
+
! Names
| {{{Name|}}}
+
| {{{Names|}}}
 
|-
 
|-
 
! Birth date
 
! Birth date
Line 34: Line 47:
 
| {{{Death date|}}}
 
| {{{Death date|}}}
 
|-
 
|-
! Nationality
+
! Countries
| {{{Nationality}}}
+
| {{#arraymap:{{{Countries|}}}|;|x|[[x]]}}
 
|-
 
|-
! Home
+
! Locations
| {{{Home|}}}
+
| {{{Locations|}}}
 
|-
 
|-
! Occupation
+
! Occupations
| {{{Occupation|}}}
+
| {{#arraymap:{{{Occupations|}}}|;|x|[[x]] }}
 
|-
 
|-
 
! Tech areas
 
! Tech areas
Line 48: 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]]
 +
</includeonly>
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
[[Category:Organizations]]
 
</includeonly>
 

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.