Difference between revisions of "Template:Person"

From Inventing aviation
Jump to navigation Jump to search
(trying again to reduce whitespace)
(delink "Family name" so it doesn't show up as a wikilink)
 
(16 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>This "Person" template should be used on wiki pages with the following format:
This is the "Person" template.
 
It should be called in the following format:
 
 
<pre>
 
<pre>
 
{{Person
 
{{Person
|Name=
+
|Names=
 +
|Countries=
 +
|Locations=
 +
|Occupations=
 +
|Tech areas=
 +
|Accreditations=
 +
|Affiliations=
 +
|Family name=
 
|Birth date=
 
|Birth date=
 
|Death date=
 
|Death date=
|Country=
+
|Wikidata id=
|Location=
 
|Occupation=
 
|Tech areas=
 
|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
</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
+
|Countries=List (;) of Page
| {{{Name|}}}
+
|Locations=List (;) of Page
|-
+
|Occupations=List (;) of Page
! Birth date
+
|Tech_areas=List (;) of Page
| {{{Birth date|}}}
+
|Accreditations=List (;) of Page
 +
|Affiliations=List (;) of Page
 +
|Family_name=List (;) of String
 +
|Birth_date=Date|Death_date=Date
 +
|Wikidata_id=Text
 +
}}
 +
</noinclude><includeonly>
 +
{{#cargo_store:_table=Person
 +
|Names={{{Names|}}}
 +
|Countries={{{Countries|}}}
 +
|Locations={{{Locations|}}}
 +
|Occupations={{{Occupations|}}}
 +
|Tech_areas={{{Tech areas|}}}
 +
|Accreditations={{{Accreditations|}}}
 +
|Affiliations={{{Affiliations|}}}
 +
|Family_name={{{Family name|}}}
 +
|Birth_date={{{Birth date|}}}
 +
|Death_date={{{Death date|}}}
 +
|Wikidata_id={{{Wikidata id|}}}
 +
}}
 +
{| class="wikitable"
 +
! Names
 +
| {{{Names|}}}
 
|-
 
|-
! Death date
+
! Countries
| {{{Death date|}}}
+
| {{#arraymap:{{{Countries|}}}|;|x|[[x]]}}
 
|-
 
|-
! Country
+
! Locations
| {{#arraymap:{{{Country|}}}|;|x|[[x]]}}
+
| {{#arraymap:{{{Locations|}}}|;|x|[[x]] }}
 
|-
 
|-
! Location
+
! Occupations
| {{{Location|}}}
+
| {{#arraymap:{{{Occupations|}}}|;|x|[[x]] }}
|-
 
! Occupation
 
| {{#arraymap:{{{Occupation|}}}|;|x|{{#formredlink:form=Techtype|target=x}} }}
 
 
|-
 
|-
 
! Tech areas
 
! Tech areas
 
| {{#arraymap:{{{Tech areas|}}}|;|x|{{#formredlink:form=Techtype|target=x}} }}
 
| {{#arraymap:{{{Tech areas|}}}|;|x|{{#formredlink:form=Techtype|target=x}} }}
 +
|-
 +
! Accreditations
 +
| {{#arraymap:{{{Accreditations|}}}|;|x|[[x]]}}
 
|-
 
|-
 
! Affiliations
 
! Affiliations
 
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
 
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}}
 +
|-
 +
! Family name
 +
| {{{Family name|}}}
 +
|-
 +
! Birth date
 +
| {{{Birth date|}}}
 +
|-
 +
! Death date
 +
| {{{Death date|}}}
 +
|-
 +
! Wikidata id
 +
| {{#if: {{{Wikidata id|}}} | [[w:d:{{{Wikidata id}}}|{{{Wikidata id}}}]] }}
 
|}  
 
|}  
 +
[[Category:Person]]
 
</includeonly>
 
</includeonly>
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__

Latest revision as of 22:07, 26 December 2024

This "Person" template should be used on wiki pages with the following format:

{{Person
|Names=
|Countries=
|Locations=
|Occupations=
|Tech areas=
|Accreditations=
|Affiliations=
|Family name=
|Birth date=
|Death date=
|Wikidata id=
}}

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