Difference between revisions of "Template:Person"
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 | ||
− | |||
<pre> | <pre> | ||
{{Person | {{Person | ||
− | | | + | |Names= |
+ | |Countries= | ||
+ | |Locations= | ||
+ | |Occupations= | ||
+ | |Tech areas= | ||
+ | |Accreditations= | ||
+ | |Affiliations= | ||
+ | |Family name= | ||
|Birth date= | |Birth date= | ||
|Death 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| | + | {{#cargo_declare:_table=Person |
− | </noinclude><includeonly>{{#cargo_store:_table=Person| | + | |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|}}} | ||
|- | |- | ||
− | ! | + | ! Countries |
− | | {{{ | + | | {{#arraymap:{{{Countries|}}}|;|x|[[x]]}} |
|- | |- | ||
− | ! | + | ! Locations |
− | | {{#arraymap:{{{ | + | | {{#arraymap:{{{Locations|}}}|;|x|[[x]] }} |
|- | |- | ||
− | ! | + | ! Occupations |
− | + | | {{#arraymap:{{{Occupations|}}}|;|x|[[x]] }} | |
− | |||
− | |||
− | | {{#arraymap:{{{ | ||
|- | |- | ||
! 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.