Difference between revisions of "Template:Person"

From Inventing aviation
Jump to navigation Jump to search
(Nationality -> Country ; Home -> Location; Occupation links to pages; multiple countries possible)
(removed vertical space, unfortunately ; too much white space is appearing above and below the template when it's used)
Line 12: Line 12:
 
|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|Country=Page|Location=Text|Occupation=List (;) of Page|Tech_areas=List (;) of Page|Affiliations=List (;) of Page}}
 
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<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|}}} }}
 
{{#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"
 
{| class="wikitable"
 
! Name
 
! Name
Line 49: Line 43:
 
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
 
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
 
|}
 
|}
 
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
 
</includeonly>
 
</includeonly>

Revision as of 18:44, 19 May 2018

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

{{Person
|Name=
|Birth date=
|Death date=
|Country=
|Location=
|Occupation=
|Tech areas=
|Affiliations=
}}

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