Template:Infobox official post: Difference between revisions

From Shut Down
Jump to navigation Jump to search
(Created page with "{{#invoke:infobox|infoboxTemplate |style = width:{{#if:{{{width|}}}|{{{width}}}|17.5em}}; |above = <includeonly>{{{name|{{{post}}} <!-- -->{{#if:{{{body|}}} | of {{{body}}} }} }}}</includeonly> |abovestyle = font-size: 125%; |subheader = {{{native_name|}}} |subheaderstyle = font-size: 125%; font-weight: normal; |image = {{#invoke:InfoboxImage|InfoboxImage|image={{{insignia|}}}...")
 
No edit summary
Line 1: Line 1:
{{#invoke:infobox|infoboxTemplate
<templatedata>
|style        = width:{{#if:{{{width|}}}|{{{width}}}|17.5em}};
{
 
"params": {
|above        = <includeonly>{{{name|{{{post}}} <!--
"post": {
              -->{{#if:{{{body|}}}
"label": "Post",
                  | of {{{body}}}
"description": "Name of the post, do not include links",
                }}
"example": "President",
                }}}</includeonly>
"type": "string",
|abovestyle  = font-size: 125%;
"required": true,
 
"aliases": [
|subheader    = {{{native_name|}}}
"name"
|subheaderstyle = font-size: 125%; font-weight: normal;
]
 
},
 
"body": {
|image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{insignia|}}}|size={{{insigniasize|}}}|alt={{{insigniaalt|}}}|sizedefault=120px}}
"label": "Body",
|imagestyle  = padding-bottom:0.4em; border-bottom:solid 1px #ccd2d9;
"description": "Name of the body which the post is for",
|caption      = {{{insigniacaption|}}}
"example": "the European Commission",
 
"type": "string",
|image2      = {{#invoke:InfoboxImage|InfoboxImage|image={{{flag|}}}|size={{{flagsize|}}}|alt={{{flagalt|}}}|sizedefault=120px|border={{{flagborder|}}}}}
"suggested": true
|imagestyle2  = border-bottom:solid 1px #ccd2d9;
},
|caption2    = {{{flagcaption|}}}
"native_name": {
 
"label": "Native name",
|data1  = {{#if:{{{incumbent|}}}{{{image|}}}
"type": "line",
            | <div style="padding-bottom:0.4em; <!--
"description": "For non-English speaking countries, the native name of the post",
                      -->border-bottom:solid 1px #ccd2d9; line-height:1.4em;"><!--
"example": "{{lang|zh-hans|中华人民共和国主席}}"
              -->{{#if:{{{image|}}}
},
                  | <div style="padding-bottom:0.4em;"><!--
"flag": {
                      -->{{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{imagesize|}}}|sizedefault=frameless|alt={{{alt|}}}|border=yes|suppressplaceholder=yes}}</div>
"label": "Flag image",
                  }}<!--
"description": "A flag, positional color, or command sign associated with this post, if any",
              -->{{#if:{{{incumbent|}}}|'''{{{incumbentlabel|Incumbent}}}<br/>{{{incumbent}}}<br/><!--
"type": "wiki-file-name"
              -->{{#ifeq:{{{Acting|{{{acting|}}}}}}|yes|[[Acting (law)|Acting]]'''&nbsp;|{{#ifeq:{{{Acting|{{{acting|}}}}}}|y|<br/>[[Acting (law)|Acting]]'''&nbsp;|'''}}}}<!--
},
              -->{{#if:{{{incumbentsince|}}}
"flagsize": {
                  |since&nbsp;{{{incumbentsince}}}
"label": "Flag size",
                  }}|{{{imagecaption|}}}}}<!--
"example": "150px",
          --></div><!--
"description": "Size of the flag",
        -->}}
"type": "string"
|data2  = {{{department|}}}
},
|label3  = [[Style (form of address)|Style]]
"flagborder": {
|data3  = {{{style|}}}
"label": "Flag border",
|label4  = Type
"description": "Set to yes or no",
|data4  = {{{type|}}}
"example": "yes",
|label5  = Status
"type": "string"
|data5  = {{{status|}}}
},
|label6  = Abbreviation
"flagcaption": {
|data6  = {{{abbreviation|}}}
"label": "Flag caption",
 
"type": "content",
|label7  = Member of
"description": "A caption for the flag image"
|data7  = {{{member_of|{{{memberof|}}}}}}
},
|label8  = Reports to
"insignia": {
|data8  = {{{reports_to|{{{reportsto|}}}}}}
"label": "Insignia image",
|label9  = [[Official residence|Residence]]
"type": "wiki-file-name",
|data9  = {{{residence|}}}
"description": "Official insignia of the post",
|label10  = [[Seat (legal entity)|Seat]]
"example": "Seal of the United States Department of the Treasury.svg"
|data10  = {{{seat|}}}
},
|label11  = Nominator
"insigniasize": {
|data11  = {{{nominator|}}}
"label": "Insignia size",
|label12 = Appointer
"example": "150px",
|data12  = {{{appointer|}}}<!--
"description": "Size of the insignia image",
        -->{{#if:{{{appointer_qualified|}}}
"type": "string"
          | <br />{{{appointer_qualified}}}
},
          }}
"insigniacaption": {
|label13  = [[Term of office|Term length]]
"label": "Insignia caption",
|data13  = {{{termlength|}}}<!--
"type": "string",
        -->{{#if:{{{termlength_qualified|}}}
"description": "Description of the official insignia of the post",
          | <br />{{{termlength_qualified}}}
"example": "Seal of the Department of the Treasury"
          }}
},
|label14 = Constituting instrument
"image": {
|data14  = {{{constituting_instrument|}}}
"label": "Image",
|label15 = Precursor
"type": "wiki-file-name",
|data15  = {{{precursor|}}}
"description": "A picture of the incumbent of this post",
|label16 = Inaugural holder
"example": "Steven Mnuchin official photo (cropped).jpg",
|data16  = {{{inaugural|}}}
"suggested": true
|label17 = Formation
},
|data17  = {{{formation|}}}
"imagesize": {
|label18 = First holder
"label": "Image size",
|data18  = {{{first|}}}
"example": "150px",
|label19 = Final holder
"description": "Size of the image, in px format",
|data19  = {{{last|}}}
"type": "string"
|label20 = Abolished
},
|data20  = {{{abolished|}}}
"alt": {
|label21 = <span class="nowrap">Superseded by</span>
"label": "Alt text",
|data21  = {{{superseded_by|}}}
"description": "Alt text for image",
|label22 = Succession
"type": "string"
|data22  = {{{succession|}}}
},
|label23 = Unofficial names
"imagecaption": {
|data23  = {{{unofficial_names|}}}
"label": "Image caption",
|label24 = Deputy
"description": "Caption for image",
|data24  = {{{deputy|}}}
"type": "string"
|label25 = Salary
},
|data25  = {{{salary|}}}
"incumbent": {
|label26 = Website
"label": "Incumbent",
|data26  = {{{website|}}}
"type": "line",
|header27 = {{{footnotes_title|}}}
"description": "The name of the person who currently holds this role",
|data28  = {{{footnotes|}}}
"example": "[[Steven Mnuchin]]",
}}
"suggested": true
},
"acting": {
"label": "Acting",
"description": "Set to y or yes if the incumbent is acting",
"example": "yes",
"aliases": [
"Acting"
]
},
"incumbentsince": {
"label": "Incumbent since",
"description": "Date incumbent took office",
"type": "string"
},
"type": {
"label": "Type",
"type": "string"
},
"status": {
"label": "Status",
"type": "string"
},
"department": {
"label": "Department",
"description": "Entity this official heads or is part of",
"type": "string"
},
"style": {
"label": "Style",
"description": "Manner of address",
"example": "Mister Secretary",
"type": "string"
},
"member_of": {
"label": "Member of",
"description": "Group that this post is a part of",
"example": "Cabinet",
"type": "string",
"aliases": [
"memberof"
]
},
"reports_to": {
"label": "Reports to",
"description": "Immediate superior of this post",
"example": "The President",
"type": "string",
"aliases": [
"reportsto"
]
},
"residence": {
"label": "Residence",
"description": "Name of official residence",
"type": "string"
},
"seat": {
"label": "Seat",
"description": "Location of office",
"type": "string",
"example": "[[Washington, D.C.]]"
},
"nominator": {
"label": "Nominator",
"description": "Name of post or body, not incumbent",
"type": "string"
},
"appointer": {
"label": "Appointer",
"description": "Name of the post or body that appoints this position, not the incumbent",
"type": "string",
"example": "The [[President of the United States|President]]"
},
"appointer_qualified": {
"label": "Appointer qualification",
"example": "with [[United States Senate|Senate]] [[advice and consent]]",
"description": "A qualification message displayed under the name of the appointing office or body",
"type": "line"
},
"termlength": {
"label": "Term length",
"type": "string",
"description": "the length of a term of this official post",
"example": "4 years"
},
"termlength_qualified": {
"label": "Term length qualification",
"description": "A qualification message displayed under the length of terms",
"example": "No restriction on renewal",
"type": "line"
},
"constituting_instrument": {
"label": "Constituting instrument",
"description": "The official document(s) which provide the formal legal basis for the post",
"type": "string"
},
"precursor": {
"label": "Precursor",
"description": "Immediate precursor post",
"type": "string"
},
"formation": {
"label": "Date of formation",
"description": "Date of the creation of the post or the first officeholder taking office",
"type": "string"
},
"first": {
"label": "First holder",
"description": "The first person to hold this post",
"type": "string"
},
"last": {
"label": "Last holder",
"description": "The last person to hold this post",
"type": "string"
},
"abolished": {
"label": "Abolished",
"description": "Date abolished",
"type": "string"
},
"succession": {
"label": "Succession",
"type": "string",
"description": "Rank of succession of this office",
"example": "[[United States presidential line of succession|Fifth]]<ref>https://www.law.cornell.edu/uscode/text/3/19</ref>"
},
"abbreviation": {
"label": "Official abbreviation",
"type": "string"
},
"unofficial_names": {
"label": "Unofficial names",
"type": "string"
},
"deputy": {
"label": "Deputy",
"type": "string",
"description": "Wikilink to the office of this position's deputy",
"example": "[[Vice President of the People's Republic of China|Vice President]]"
},
"salary": {
"label": "Salary",
"type": "content",
"description": "The salary of this office",
"example": "[[Executive Schedule|Executive Schedule, level I]]<ref>{{UnitedStatesCode|5|5312}}</ref>"
},
"website": {
"label": "Website",
"type": "url"
},
"width": {},
"insigniaalt": {},
"flagalt": {},
"inaugural": {},
"footnotes_title": {},
"footnotes": {}
},
"description": "Infobox for official posts",
"format": "block"
}
</templatedata>

Revision as of 23:57, 28 January 2023

<templatedata> { "params": { "post": { "label": "Post", "description": "Name of the post, do not include links", "example": "President", "type": "string", "required": true, "aliases": [ "name" ] }, "body": { "label": "Body", "description": "Name of the body which the post is for", "example": "the European Commission", "type": "string", "suggested": true }, "native_name": { "label": "Native name", "type": "line", "description": "For non-English speaking countries, the native name of the post", "example": "中华人民共和国主席" }, "flag": { "label": "Flag image", "description": "A flag, positional color, or command sign associated with this post, if any", "type": "wiki-file-name" }, "flagsize": { "label": "Flag size", "example": "150px", "description": "Size of the flag", "type": "string" }, "flagborder": { "label": "Flag border", "description": "Set to yes or no", "example": "yes", "type": "string" }, "flagcaption": { "label": "Flag caption", "type": "content", "description": "A caption for the flag image" }, "insignia": { "label": "Insignia image", "type": "wiki-file-name", "description": "Official insignia of the post", "example": "Seal of the United States Department of the Treasury.svg" }, "insigniasize": { "label": "Insignia size", "example": "150px", "description": "Size of the insignia image", "type": "string" }, "insigniacaption": { "label": "Insignia caption", "type": "string", "description": "Description of the official insignia of the post", "example": "Seal of the Department of the Treasury" }, "image": { "label": "Image", "type": "wiki-file-name", "description": "A picture of the incumbent of this post", "example": "Steven Mnuchin official photo (cropped).jpg", "suggested": true }, "imagesize": { "label": "Image size", "example": "150px", "description": "Size of the image, in px format", "type": "string" }, "alt": { "label": "Alt text", "description": "Alt text for image", "type": "string" }, "imagecaption": { "label": "Image caption", "description": "Caption for image", "type": "string" }, "incumbent": { "label": "Incumbent", "type": "line", "description": "The name of the person who currently holds this role", "example": "Steven Mnuchin", "suggested": true }, "acting": { "label": "Acting", "description": "Set to y or yes if the incumbent is acting", "example": "yes", "aliases": [ "Acting" ] }, "incumbentsince": { "label": "Incumbent since", "description": "Date incumbent took office", "type": "string" }, "type": { "label": "Type", "type": "string" }, "status": { "label": "Status", "type": "string" }, "department": { "label": "Department", "description": "Entity this official heads or is part of", "type": "string" }, "style": { "label": "Style", "description": "Manner of address", "example": "Mister Secretary", "type": "string" }, "member_of": { "label": "Member of", "description": "Group that this post is a part of", "example": "Cabinet", "type": "string", "aliases": [ "memberof" ] }, "reports_to": { "label": "Reports to", "description": "Immediate superior of this post", "example": "The President", "type": "string", "aliases": [ "reportsto" ] }, "residence": { "label": "Residence", "description": "Name of official residence", "type": "string" }, "seat": { "label": "Seat", "description": "Location of office", "type": "string", "example": "Washington, D.C." }, "nominator": { "label": "Nominator", "description": "Name of post or body, not incumbent", "type": "string" }, "appointer": { "label": "Appointer", "description": "Name of the post or body that appoints this position, not the incumbent", "type": "string", "example": "The President" }, "appointer_qualified": { "label": "Appointer qualification", "example": "with Senate advice and consent", "description": "A qualification message displayed under the name of the appointing office or body", "type": "line" }, "termlength": { "label": "Term length", "type": "string", "description": "the length of a term of this official post", "example": "4 years" }, "termlength_qualified": { "label": "Term length qualification", "description": "A qualification message displayed under the length of terms", "example": "No restriction on renewal", "type": "line" }, "constituting_instrument": { "label": "Constituting instrument", "description": "The official document(s) which provide the formal legal basis for the post", "type": "string" }, "precursor": { "label": "Precursor", "description": "Immediate precursor post", "type": "string" }, "formation": { "label": "Date of formation", "description": "Date of the creation of the post or the first officeholder taking office", "type": "string" }, "first": { "label": "First holder", "description": "The first person to hold this post", "type": "string" }, "last": { "label": "Last holder", "description": "The last person to hold this post", "type": "string" }, "abolished": { "label": "Abolished", "description": "Date abolished", "type": "string" }, "succession": { "label": "Succession", "type": "string", "description": "Rank of succession of this office", "example": "Fifth[1]" }, "abbreviation": { "label": "Official abbreviation", "type": "string" }, "unofficial_names": { "label": "Unofficial names", "type": "string" }, "deputy": { "label": "Deputy", "type": "string", "description": "Wikilink to the office of this position's deputy", "example": "Vice President" }, "salary": { "label": "Salary", "type": "content", "description": "The salary of this office", "example": "Executive Schedule, level I[2]" }, "website": { "label": "Website", "type": "url" }, "width": {}, "insigniaalt": {}, "flagalt": {}, "inaugural": {}, "footnotes_title": {}, "footnotes": {} }, "description": "Infobox for official posts", "format": "block" } </templatedata>