Difference between revisions of "Template:Person"
Jump to navigation
Jump to search
(add Wikidata Qid) |
(delink "Family name" so it doesn't show up as a wikilink) |
||
(9 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 | ||
− | |||
<pre> | <pre> | ||
{{Person | {{Person | ||
|Names= | |Names= | ||
− | |||
− | |||
|Countries= | |Countries= | ||
|Locations= | |Locations= | ||
|Occupations= | |Occupations= | ||
|Tech areas= | |Tech areas= | ||
+ | |Accreditations= | ||
|Affiliations= | |Affiliations= | ||
− | | | + | |Family name= |
+ | |Birth date= | ||
+ | |Death date= | ||
+ | |Wikidata id= | ||
}}</pre> | }}</pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
− | {{#cargo_declare:_table=Person|Names=List (;) of String (hidden) | + | {{#cargo_declare:_table=Person |
− | </noinclude><includeonly>{{#cargo_store:_table=Person|Names={{{Names|}}}| | + | |Names=List (;) of String (hidden) |
+ | |Countries=List (;) of Page | ||
+ | |Locations=List (;) of Page | ||
+ | |Occupations=List (;) of Page | ||
+ | |Tech_areas=List (;) of Page | ||
+ | |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 | ||
| {{{Names|}}} | | {{{Names|}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|- | |- | ||
! Countries | ! Countries | ||
Line 30: | Line 49: | ||
|- | |- | ||
! Locations | ! Locations | ||
− | | {{{Locations|}}} | + | | {{#arraymap:{{{Locations|}}}|;|x|[[x]] }} |
|- | |- | ||
! Occupations | ! Occupations | ||
− | | {{#arraymap:{{{Occupations|}}}|;|x| | + | | {{#arraymap:{{{Occupations|}}}|;|x|[[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]] | [[Category:Person]] |
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.