Difference between revisions of "Template:Person"
Jump to navigation
Jump to search
(Qid should be in all the lists I think) |
(reformat per Sam Wilson's clarifications and use of #if (https://wikispore.wmflabs.org/w/index.php?title=Template:Organization&oldid=2905)) |
||
Line 12: | Line 12: | ||
|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|Names=List (;) of String (hidden)|Birth_date=Date|Death_date=Date|Countries=List (;) of Page|Locations=Text|Occupations=List (;) of Page|Tech_areas=List (;) of Page|Affiliations=List (;) of Page| | + | {{#cargo_declare:_table=Person |
− | </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|}}}| | + | |Names=List (;) of String (hidden) |
+ | |Birth_date=Date|Death_date=Date | ||
+ | |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 | ||
| {{{Names|}}} | | {{{Names|}}} | ||
Line 41: | Line 62: | ||
| {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}} | | {{#arraymap:{{{Affiliations|}}}|;|x|[[x]]}} | ||
|- | |- | ||
− | ! | + | ! Wikidata id |
− | | {{{ | + | | {{#if: {{{Wikidata id|}}} | [[d:{{{Wikidata id}}}|{{{Wikidata id}}}]] }} |
|} | |} | ||
[[Category:Person]] | [[Category:Person]] |
Revision as of 14:22, 8 September 2020
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.