Difference between revisions of "Template:Person"

From Inventing aviation
Jump to navigation Jump to search
(trying again to reduce whitespace)
(pluralize some fields)
Line 7: Line 7:
 
|Birth date=
 
|Birth date=
 
|Death date=
 
|Death date=
|Country=
+
|Countries=
|Location=
+
|Locations=
|Occupation=
+
|Occupations=
 
|Tech areas=
 
|Tech areas=
 
|Affiliations=
 
|Affiliations=
 
}}</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|Name=List (;) of String (hidden)|Birth_date=Date|Death_date=Date|Countries=Page|Locations=Text|Occupations=List (;) of Page|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|}}}|Country={{{Country|}}}|Location={{{Location|}}}|Occupation={{{Occupation|}}}|Tech_areas={{{Tech areas|}}}|Affiliations={{{Affiliations|}}} }} {| class="wikitable"
+
</noinclude><includeonly>{{#cargo_store:_table=Person|Name={{{Name|}}}|Birth_date={{{Birth date|}}}|Death_date={{{Death date|}}}|Countries={{{Countries|}}}|Locations={{{Locations|}}}|Occupations={{{Occupations|}}}|Tech_areas={{{Tech areas|}}}|Affiliations={{{Affiliations|}}} }} {| class="wikitable"
 
! Name
 
! Name
 
| {{{Name|}}}
 
| {{{Name|}}}
Line 25: Line 25:
 
| {{{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|{{#formredlink:form=Techtype|target=x}} }}
 
|-
 
|-
 
! Tech areas
 
! Tech areas

Revision as of 11:54, 24 May 2018

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

{{Person
|Name=
|Birth date=
|Death date=
|Countries=
|Locations=
|Occupations=
|Tech areas=
|Affiliations=
}}

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