Jump to content

Template:Infobox officeholder/doc

From Wikihoc

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#if:|
         |{{#ifexist:Template:Infobox officeholder
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  | 
                 }}
        }}
    | 
   }}

{{#ifeq:Template:Editnotices|{{ safesubst:#if:

 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|Template:Infobox officeholder/doc}}|1}}
 | {{ safesubst:#if:|{{{1}}}|Template:Infobox officeholder/doc}}

}}|}} {{Infobox officeholder}} is incorporated into the templates listed here. You are welcome to use the appropriate redirect when placing this template on a page, but it will not change in any way the displayed Infobox.

Usage

Paste the code for the relevant office and then add the personal data to the bottom. There are no required fields and some fields will not appear when others are in use. For instructions on how to implement multiple terms, see this page. For advice on alt text, see Wikipedia:Alternative text for images.

The parameter |{{SAFESUBST:#if:order|order=}} is used in conjunction with |{{SAFESUBST:#if:office|office=}} to state that the officeholder is the nth holder of the office, for example "42nd President of the United States". This should only be used when there is a well-established use of such numbering in reliable sources. Do not add numbers simply based on a Wikipedia list of holders of the office, because (1) the list may not be accurate and (2) even with a definite list, different numbering systems could be applied (as to how various categories of "irregular" officeholders should be counted, and as to the counting of those serving for multiple non-consecutive periods) making the numbers arbitrary; and even where such issues are not yet present, they are bound to be in the future, making this unsustainable. Per WP:SEAOFBLUE, it is not recommended to wikilink |{{SAFESUBST:#if:order|order=}} to a list of officeholders, even if such a list exists.

If |{{SAFESUBST:#if:order|order=}} is not specified, the value of |{{SAFESUBST:#if:office|office=}} can be wikilinked in the usual way, for example, "[[Ministry of Defence (Singapore)|Minister for Defence]]". However, if |{{SAFESUBST:#if:order|order=}} is specified together with |{{SAFESUBST:#if:office|office=}}, the value of |{{SAFESUBST:#if:office|office=}} is automatically linked to a Wikipedia article of the same name, whether such an article exists or not. Wikilinking cannot be used to redirect the link elsewhere, but a piped link can be created like this: "Ministry of Defence (Singapore){{!}}Minister for Defence" (note that the double square brackets have been omitted).

When both a start and an end term are given, you can instead specify the complete term using the parameters |{{SAFESUBST:#if:term|term=}}, |{{SAFESUBST:#if:term2|term2=}}, etc. This can be helpful for complicated terms that cannot be given as simple starting or ending dates, or if you prefer something other than the default term separator (an en dash, with spaces around it if the start or end is not a simple integer date).

Where a politician was redistricted into a new district, you can use |{{SAFESUBST:#if:prior_term|prior_term=}} to indicate which district(s) they were in before. This saves space in the infobox by not generating a completely new office each time redistricting happens. If you do this, it is recommended that you list the person who preceded the subject when the subject first took office and the person who succeeded the subject when the subject last left office. Where the use of "same district number" is used for determining "predecessor" and "successor" in any office, but where the area is so altered as to make such a "predecessor" or "successor" of little or no biographical value, the word "redistricted" should be used rather than using names of officeholders whose connection is accidental by virtue of district number, but unrelated to any election contests between officeholders.

Please do not re-purpose any fields to add decorative images, icons or flags. Template:Infobox viceroy styles or the like can be used for this. WP:INFOBOXFLAG applies here.

Per consensus in this RfC, the infobox for an incumbent officeholder should not mention an elected or designated successor, or the end date of the term, until the successor takes office.

General office

The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> The time allocated for running scripts has expired.{{#if:|{{#ifeq:{{#ifeq:|no|yes}}|yes||}} }}{{#if:|{{#ifeq:{{#ifeq:|no|yes}}|yes||}} }}{{#if:|{{#if:||{{#ifeq:{{#ifeq:|no|yes}}|yes||}}}} }}The time allocated for running scripts has expired.The time allocated for running scripts has expired. </syntaxhighlight> add personal data

Ambassador

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox ambassador

| honorific_prefix = 
| name        = 
| honorific_suffix = 
| image       = 
| alt         = 
| caption     =
| order       =  
| ambassador_from =  
| country     =  
| term_start  =  
| term_end    =  
| predecessor =  
| successor   =  
| president   =  

</syntaxhighlight> add personal data

Assembly member

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox AM

| honorific_prefix = 
| name        = 
| honorific_suffix = 
| image       = 
| alt         = 
| caption     = 
| constituency_AM =  
| assembly    =  
| majority    =  
| term_start  =  
| term_end    =  
| predecessor =  
| successor   =  
| prior_term  =

</syntaxhighlight> add personal data

Governor

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox governor

| honorific_prefix = 
| name        = 
| honorific_suffix = 
| image       = 
| alt         = 
| caption     =
| order       =  
| office      =  
| term_start  =  
| term_end    =  
| lieutenant  =  
| predecessor =  
| successor   =  

</syntaxhighlight> add personal data

If Governor was appointed by a President, add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| president   =  

</syntaxhighlight>

If Governor appointed by other, add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| appointer   =  

</syntaxhighlight>

Judge

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox judge

| honorific_prefix = 
| name        = 
| honorific_suffix = 
| image       = 
| alt         = 
| caption     = 
| office      =  
| term_start  =  
| term_end    =  
| nominator   =  
| appointer   =  
| predecessor =  
| successor   =  

</syntaxhighlight> add personal data

Member of Parliament

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox MP

| honorific_prefix = 
| name        = 
| honorific_suffix = 
| image       = 
| alt         = 
| caption     = 
| constituency_MP =  
| parliament  =  
| majority    =  
| term_start  =  
| term_end    =  
| predecessor =  
| successor   =  
| prior_term  =

</syntaxhighlight> add personal data

U.S. Representatives

U.S. Congressperson

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox Congressman

| honorific_prefix = 
| name        = 
| honorific_suffix = 
| image       = 
| alt         = 
| caption     =
| state       =  
| district    =  
| term_start  =  
| term_end    =  
| predecessor =  
| successor   =  
| prior_term  =

</syntaxhighlight> add personal data

If Congressperson served as Speaker of the House add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| speaker      =  
| term_start2  = 
| term_end2    = 
| predecessor2 = 
| successor2   = 

</syntaxhighlight>

If Congressman has been elected but not sworn in: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| succeeding   =  

</syntaxhighlight>

State Representative

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox state representative

| honorific_prefix = 
| name         = 
| honorific_suffix = 
| image        = 
| alt          = 
| caption      =
| state_house  =  
| district     =  
| term_start   =  
| term_end     =  
| predecessor  =  
| successor    =  
| prior_term   =

</syntaxhighlight> add personal data

For Representative from states that have an Assembly, instead of state_house use: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| state_assembly =  
| district       =  

</syntaxhighlight>

For Representative from states that have a House of Delegates, instead of state_house use: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| state_delegate =  
| district       =  

</syntaxhighlight>

For Representative from states that have a Legislature, instead of state_house use: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| state_legislature =  
| district          =  

</syntaxhighlight>

If Representative served as Speaker of the State House add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| speaker      =  
| state_house  = 
| term_start2  = 
| term_end2    = 
| predecessor2 = 
| successor2   = 

</syntaxhighlight>

U.S. Senators

U.S. Senator

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox senator

| honorific_prefix = 
| name        = 
| honorific_suffix = 
| image       = 
| image_size  = 
| image_upright =
| alt         = 
| caption     =
| jr/sr       =    Set to any value to display the "United States Senator from" header. If this parameter is missing or empty, "United States Senator from" will not be displayed.
| state       =  
| term_start  =  
| term_end    =  
| predecessor =  
| successor   =  

</syntaxhighlight> add personal data

The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| term_start  =
| alongside   =  

</syntaxhighlight>

If Senator has just been elected and is a Senator-Elect: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| succeeding  =  

</syntaxhighlight>

If Senator served as Senate Majority Leader add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| majority_leader3 =  
| term_start3  =  
| term_end3    =  
| predecessor3 =  
| successor3   =  

</syntaxhighlight>

If Senator served as Congressman add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| state3       =  
| district3    =  
| term_start3  =  
| term_end3    =  
| predecessor3 =  
| successor3   =  

</syntaxhighlight>

State Senator

The time allocated for running scripts has expired. The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox state senator

| honorific_prefix = 
| name         = 
| honorific_suffix = 
| image        = 
| alt          = 
| caption      =
| state_senate =  
| district     =  
| term_start   =  
| term_end     =  
| predecessor  =  
| successor    =  
| prior_term   =

</syntaxhighlight> add personal data

If State Senator served as Majority Leader of the State Senate add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| majority_leader3 =  
| term_start3  =  
| term_end3    =  
| predecessor3 =  
| successor3   =  

</syntaxhighlight>

If State Senator served as Minority Leader of the State Senate add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| minority_leader3 =  
| term_start3  =  
| term_end3    =  
| predecessor3 =  
| successor3   =  

</syntaxhighlight>

If State Senator served as Majority Floor Leader of the State Senate add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| majority_floor_leader3 =  
| term_start3  =  
| term_end3    =  
| predecessor3 =  
| successor3   =  

</syntaxhighlight>

If State Senator served as Minority Floor Leader of the State Senate add: The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;">

| minority_floor_leader3 =  
| term_start3  =  
| term_end3    =  
| predecessor3 =  
| successor3   =  

</syntaxhighlight>

Ukrainian legislative office

The time allocated for running scripts has expired.

The time allocated for running scripts has expired. <syntaxhighlight lang="wikitext" style="overflow:auto;"> Template:Infobox Ukrainian legislative office </syntaxhighlight>

nationality is not displayed if the corresponding country is mentioned in birth_place, for example |birth_place = Tokyo, Japan |nationality = Japanese.

Embedding other templates

The module parameters (module, module2, ... module5) may used to embed other templates into this infobox (see Wikipedia:Infobox modules).

<syntaxhighlight lang="wikitext" style="overflow: auto;"> The time allocated for running scripts has expired.{{#if:|{{#ifeq:{{#ifeq:|no|yes}}|yes||}} }}{{#if:|{{#ifeq:{{#ifeq:|no|yes}}|yes||}} }}{{#if:|{{#if:||{{#ifeq:{{#ifeq:|no|yes}}|yes||}}}} }}The time allocated for running scripts has expired.The time allocated for running scripts has expired. </syntaxhighlight>

Embedding within a different infobox

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 {{Infobox person}}. By adding |{{SAFESUBST:#if:embed|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 {{Infobox person}}, this infobox is passed as a "module" using the |{{SAFESUBST:#if:module|module=}} syntax.

<syntaxhighlight lang="wikitext" style="overflow: auto"> The time allocated for running scripts has expired.The time allocated for running scripts has expired.{{safesubst:#switch:

 {{safesubst:#if: 
 | {{{demospace}}}    
 | {{safesubst:#ifeq:Template|
   | main
   | other
   }} 
 }}

| main = {{#if:|}}{{#if:|}}

| other | #default = }}The time allocated for running scripts has expired.{{#ifeq:The time allocated for running scripts has expired.|yes||{{#if:{{#if:||Template}}Example.jpg||{{#if:{{#property:P18|from=}}|[[Category:The time allocated for running scripts has expired.]]}}}}}} </syntaxhighlight>

Microformat

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Wikipedia or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use Template:URL, specifying the url as the value of unnamed param 1; example:

{{URL|1=https://www.somedomain.com/foo/bar?q=weird_stuff&xyz=more_stuff}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

{{#if:
  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

|

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

}}The time allocated for running scripts has expired.

Please do not rename or remove these classes nor collapse nested elements which use them.{{#ifeq:doc|doc | |{{#ifeq:doc|sandbox | |}} }}

TemplateData

{{ safesubst:#if: |{{ safesubst:#ifeq:{{{demo}}} |no

|
|

}} |{{ safesubst:#ifeq:Template|Template

|
|

}}}}

Tracking categories

Hidden tracking/maintenance categories (in main and supporting templates) {{#ifexist: Category:Pages using The time allocated for running scripts has expired. with unknown parameters|

  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)}}{{#ifexist: Category:Pages using The time allocated for running scripts has expired. with deprecated parameters|
  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)}}{{#ifexist: Category:Pages using The time allocated for running scripts has expired. with conflicting parameters|
  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)}}
  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)
  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)
  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)
  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)
  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)
  • [[:Category:The time allocated for running scripts has expired.|{{#if:|{{{name}}}|Category:The time allocated for running scripts has expired.}}]] (0)

See also

Supporting templates