Anonymous user
Template:Infobox officeholder/doc: Difference between revisions
Jump to navigation
Jump to search
Restored revision 1148601354 by Cedar101 (talk): Rvv
Richardpruen (talk | contribs) m (1 revision imported) |
imported>Nikkimaria |
||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
{{Person infobox header}} | {{Person infobox header}} | ||
{{ | {{High-use|demo={{ROOTPAGENAME}}}} | ||
{{Notice|Please note that in June 2017, the {{para|religion}} parameter was removed from Infobox officeholder as a result of [[Template talk:Infobox officeholder/Archive 21#Religion in officeholder infoboxes|this discussion]].}} | {{Notice|Please note that in June 2017, the {{para|religion}} parameter was removed from Infobox officeholder as a result of [[Template talk:Infobox officeholder/Archive 21#Religion in officeholder infoboxes|this discussion]].}} | ||
Line 87: | Line 87: | ||
{{Generic template demo | {{Generic template demo | ||
| honorific_prefix | | honorific_prefix | ||
| name | | name<!-- defaults to article title when left blank --> | ||
| native_name | | native_name | ||
| native_name_lang | | native_name_lang | ||
Line 155: | Line 155: | ||
{{Infobox officeholder | {{Infobox officeholder | ||
| honorific_prefix = | | honorific_prefix = | ||
| name = | | name = <!-- defaults to article title when left blank --> | ||
| native_name = <!--The person's name in their own language, if different.--> | | native_name = <!--The person's name in their own language, if different.--> | ||
| native_name_lang = <!--ISO 639-1 code, e.g., "fr" for French. If more than one, use {{lang}} in |native_name= instead.--> | | native_name_lang = <!--ISO 639-1 code, e.g., "fr" for French. If more than one, use {{lang}} in |native_name= instead.--> | ||
| honorific_suffix = | | honorific_suffix = | ||
| image = | | image = | ||
| image_size = | | image_size = | ||
| image_upright = | | image_upright = | ||
| smallimage = <!--If this is specified, "image" should not be.--> | | smallimage = <!--If this is specified, "image" should not be.--> | ||
| smallimage_alt = | | smallimage_alt = | ||
| alt = | | alt = | ||
Line 168: | Line 168: | ||
| order = | | order = | ||
| office = | | office = | ||
| status = <!--If this is specified, overrides Incumbent.--> | | status = <!--If this is specified, overrides Incumbent.--> | ||
| term_start = | | term_start = | ||
| term_end = <!-- Add data only when the actual term has ended, not for terms which will end in the future. (Per usage guideline.) --> | | term_end = <!-- Add data only when the actual term has ended, not for terms which will end in the future. (Per usage guideline.) --> | ||
| subterm = | | subterm = | ||
| suboffice = | | suboffice = | ||
| alongside = <!--For two or more people serving in the same position from the same district. (e.g. United States senators.)--> | | alongside = <!--For two or more people serving in the same position from the same district. (e.g. United States senators.)--> | ||
| monarch = | | monarch = | ||
| president = | | president = | ||
Line 186: | Line 186: | ||
| deputy = | | deputy = | ||
| lieutenant = | | lieutenant = | ||
| succeeding = <!--For President-elect or equivalent--> | | succeeding = <!--For President-elect or equivalent--> | ||
| parliamentarygroup = | | parliamentarygroup = | ||
| constituency = | | constituency = | ||
| majority = | | majority = | ||
| predecessor = | | predecessor = | ||
| successor = | | successor = <!-- should not be filled until the successor takes office--> | ||
| prior_term = | | prior_term = | ||
| order2 = <!--Can be repeated up to 16 times by changing the number--> | | order2 = <!--Can be repeated up to 16 times by changing the number--> | ||
Line 806: | Line 806: | ||
| term_start2 = | | term_start2 = | ||
| term_end2 = | | term_end2 = | ||
| office3 = <!--Can be repeated up to 16 times by adding a number--> | | office3 = <!--Can be repeated up to 16 times by adding a number--> | ||
| convocation3 = <!--Can be repeated up to 16 times by adding a number--> | | convocation3 = <!--Can be repeated up to 16 times by adding a number--> | ||
| constituency3 = <!--Can be repeated up to 16 times by adding a number--> | | constituency3 = <!--Can be repeated up to 16 times by adding a number--> | ||
| term_start3 = <!--Can be repeated up to 16 times by adding a number--> | | term_start3 = <!--Can be repeated up to 16 times by adding a number--> | ||
| term_end3 = <!--Can be repeated up to 16 times by adding a number--> | | term_end3 = <!--Can be repeated up to 16 times by adding a number--> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 817: | Line 817: | ||
{{Generic template demo | {{Generic template demo | ||
| pronunciation | | pronunciation | ||
| birth_name | | birth_name <!-- only use if different from name --> | ||
| birth_date | | birth_date | ||
| birth_place | | birth_place | ||
| death_date | | death_date | ||
| death_place | | death_place | ||
| death_cause | | death_cause <!-- should only be included when the cause of death has significance for the subject's notability --> | ||
| resting_place | | resting_place | ||
| resting_place_coordinates | | resting_place_coordinates | ||
| citizenship | | citizenship <!-- use only when necessary per [[WP:INFONAT]] --> | ||
| nationality <!-- use only when necessary per [[WP:INFONAT]] --> | | nationality <!-- use only when necessary per [[WP:INFONAT]] --> | ||
| party | | party | ||
Line 890: | Line 890: | ||
<syntaxhighlight lang="html" style="overflow:auto;"> | <syntaxhighlight lang="html" style="overflow:auto;"> | ||
| pronunciation = | | pronunciation = | ||
| birth_name = | | birth_name = <!-- only use if different from name --> | ||
| birth_date = <!-- {{Birth date and age|YYYY|MM|DD}} --> | | birth_date = <!-- {{Birth date and age|YYYY|MM|DD}} --> | ||
| birth_place = | | birth_place = | ||
| death_date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} --> | | death_date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD}} --> | ||
| death_place = | | death_place = | ||
| death_cause = | | death_cause = <!-- should only be included when the cause of death has significance for the subject's notability --> | ||
| resting_place = | | resting_place = | ||
| resting_place_coordinates = | | resting_place_coordinates = | ||
| citizenship = | | citizenship = <!-- use only when necessary per [[WP:INFONAT]] --> | ||
| nationality = <!-- use only when necessary per [[WP:INFONAT]] --> | | nationality = <!-- use only when necessary per [[WP:INFONAT]] --> | ||
| party = | | party = | ||
| otherparty = <!--For additional political affiliations--> | | otherparty = <!--For additional political affiliations--> | ||
Line 936: | Line 936: | ||
| signature_size = | | signature_size = | ||
| website = | | website = | ||
| nickname = | |||
<!--Military service--> | <!--Military service--> | ||
| allegiance = | | allegiance = | ||
| branch = | | branch = | ||
Line 966: | Line 966: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{clear}} | {{clear}} | ||
<code>nationality</code> is [[Wikipedia:Manual of Style/Infoboxes#Nationality and citizenship|not displayed]] if the corresponding country is mentioned in <code>birth_place</code>, for example <code>|birth_place = Tokyo, Japan |nationality = Japanese</code>. | |||
== Embedding other templates == | == Embedding other templates == | ||
Line 984: | Line 986: | ||
Many officeholders are known for more than just their appointments (e.g., [[Clint Eastwood]]), and hence it may be desirable to merge this infobox with another one, like {{tl|Infobox person}}. By adding {{para|embed|yes}} to the first line of the infobox code, one can embed this infobox into another, creating the illusion of one continuous infobox. Though the process is a little complicated, it is possible to insert this infobox into most if not all other infoboxes. For {{tl|Infobox person}}, this infobox is passed as a "module" using the {{para|module}} syntax. | Many officeholders are known for more than just their appointments (e.g., [[Clint Eastwood]]), and hence it may be desirable to merge this infobox with another one, like {{tl|Infobox person}}. By adding {{para|embed|yes}} to the first line of the infobox code, one can embed this infobox into another, creating the illusion of one continuous infobox. Though the process is a little complicated, it is possible to insert this infobox into most if not all other infoboxes. For {{tl|Infobox person}}, this infobox is passed as a "module" using the {{para|module}} syntax. | ||
<syntaxhighlight lang=" | <syntaxhighlight lang="wikitext" style="overflow: auto"> | ||
{{Infobox person | {{Infobox person | ||
| name = John Infobox | | name = John Infobox | ||
Line 1,056: | Line 1,058: | ||
"label": "Image", | "label": "Image", | ||
"description": "Filename for the image (e.g. 'Example.jpg').", | "description": "Filename for the image (e.g. 'Example.jpg').", | ||
"type": "wiki- | "type": "wiki-file-name", | ||
"required": false | "required": false | ||
}, | }, | ||
Line 2,062: | Line 2,064: | ||
"description": "The person's nationality, use only when necessary per [[WP:INFONAT]]", | "description": "The person's nationality, use only when necessary per [[WP:INFONAT]]", | ||
"type": "line", | "type": "line", | ||
"example": " | "example": "Canadian" | ||
}, | }, | ||
"otherparty": { | "otherparty": { | ||
Line 2,072: | Line 2,074: | ||
"description": "Spouse(s), if notable", | "description": "Spouse(s), if notable", | ||
"type": "line", | "type": "line", | ||
"required": false | "required": false, | ||
"aliases": [ | |||
"spouses" | |||
] | |||
}, | }, | ||
"partner": { | "partner": { | ||
Line 2,292: | Line 2,297: | ||
* <!-- [[Template:Infobox officeholder/Personal data]] --> | * <!-- [[Template:Infobox officeholder/Personal data]] --> | ||
<includeonly> | <includeonly>{{Sandbox other|| | ||
{{ | |||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Infobox templates|Officeholder]] | |||
[[Category:Politics and government infobox templates|Officeholder]] | [[Category:Politics and government infobox templates|Officeholder]] | ||
[[Category:People and person infobox templates|Officeholder]] | [[Category:People and person infobox templates|Officeholder]] | ||
Line 2,300: | Line 2,305: | ||
[[Category:Biographical templates usable as a module|Officeholder]] | [[Category:Biographical templates usable as a module|Officeholder]] | ||
[[Category:Templates that add a tracking category]] | [[Category:Templates that add a tracking category]] | ||
}} | |||
</includeonly> | }}</includeonly> |