Difference between revisions of "Template:Person"

From Inventing aviation
Jump to navigation Jump to search
(trying again to reduce whitespace)
(don't try to use Form:Occupations (although we could try that again))
 
(10 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=
|Country=
+
|Countries=
|Location=
+
|Locations=
|Occupation=
+
|Occupations=
 
|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|Country=Page|Location=Text|Occupation=List (;) of Page|Tech_areas=List (;) of Page|Affiliations=List (;) of Page}}
+
{{#cargo_declare:_table=Person
</noinclude><includeonly>{{#cargo_store:_table=Person|Name={{{Name|}}}|Birth_date={{{Birth date|}}}|Death_date={{{Death date|}}}|Country={{{Country|}}}|Location={{{Location|}}}|Occupation={{{Occupation|}}}|Tech_areas={{{Tech areas|}}}|Affiliations={{{Affiliations|}}} }} {| class="wikitable"
+
|Names=List (;) of String (hidden)
! Name
+
|Birth_date=Date|Death_date=Date
| {{{Name|}}}
+
|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|}}}
 
|-
 
|-
 
! Birth date
 
! Birth date
Line 25: Line 47:
 
| {{{Death date|}}}
 
| {{{Death date|}}}
 
|-
 
|-
! Country
+
! Countries
| {{#arraymap:{{{Country|}}}|;|x|[[x]]}}
+
| {{#arraymap:{{{Countries|}}}|;|x|[[x]]}}
 
|-
 
|-
! Location
+
! Locations
| {{{Location|}}}
+
| {{{Locations|}}}
 
|-
 
|-
! Occupation
+
! Occupations
| {{#arraymap:{{{Occupation|}}}|;|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]]
 
</includeonly>
 
</includeonly>
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__

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.