Difference between revisions of "Template:Infobox manner of address"
Jump to navigation
Jump to search
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]
[[Category:Infobox templates|Template:Remove first word]]
imported>Frietjes (Update unknown parameter tracking through Category:Pages using infobox manner of address with unknown parameters using Module:check for unknown parameters) |
imported>Frietjes (move doc to doc page) |
||
| Line 3: | Line 3: | ||
| bodyclass = vcard | | bodyclass = vcard | ||
| abovestyle = font-weight: normal; background-color: {{#if:{{{background|}}}|{{{background}}}|#DEDEDE}}; {{#if:{{{color|{{{colour|}}}}}}|color: {{{color|{{{colour}}}}}};}} | | abovestyle = font-weight: normal; background-color: {{#if:{{{background|}}}|{{{background}}}|#DEDEDE}}; {{#if:{{{color|{{{colour|}}}}}}|color: {{{color|{{{colour}}}}}};}} | ||
| − | | above = <span style="font-size:80%">{{#if:{{{type|}}}|{{{type}}} styles|Styles}} of</span><br>'''<span class="fn">{{{royal name|{{{name}}}}}}</span>'''{{#if:{{{consort|}}}|<span style="font-size:80%"> as consort</span>}} | + | | above = <includeonly><span style="font-size:80%">{{#if:{{{type|}}}|{{{type}}} styles|Styles}} of</span><br>'''<span class="fn">{{{royal name|{{{name|{{PAGENAMEBASE}}}}}}}}</span>'''{{#if:{{{consort|}}}|<span style="font-size:80%"> as consort</span>}}</includeonly> |
| title = {{#if:{{{child|}}}{{{embed|}}}|<div style="background-color: {{#if:{{{background|}}}|{{{background}}}|#DEDEDE}}; {{#if:{{{color|{{{colour|}}}}}}|color: {{{color|{{{colour}}}}}};}}">'''{{#if:{{{type|}}}|{{{type}}} styles|Styles}}'''</div>}} | | title = {{#if:{{{child|}}}{{{embed|}}}|<div style="background-color: {{#if:{{{background|}}}|{{{background}}}|#DEDEDE}}; {{#if:{{{color|{{{colour|}}}}}}|color: {{{color|{{{colour}}}}}};}}">'''{{#if:{{{type|}}}|{{{type}}} styles|Styles}}'''</div>}} | ||
| image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|alt={{{image_alt|}}}|size={{{image_size|{{{size|}}}}}} }} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|alt={{{image2_alt|}}}|size={{{image2_size|{{{size2|{{{image_size|{{{size|}}}}}}}}}}}} }} | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|alt={{{image_alt|}}}|size={{{image_size|{{{size|}}}}}} }} {{#invoke:InfoboxImage|InfoboxImage|image={{{image2|}}}|alt={{{image2_alt|}}}|size={{{image2_size|{{{size2|{{{image_size|{{{size|}}}}}}}}}}}} }} | ||
| caption = {{{caption|}}} | | caption = {{{caption|}}} | ||
| label1 = [[Style (manner of address)|Reference style]] | | label1 = [[Style (manner of address)|Reference style]] | ||
| − | | data1 = {{{dipstyle|{{{reference | + | | data1 = {{{dipstyle|{{{reference|}}}}}} |
| label2 = Spoken style | | label2 = Spoken style | ||
| − | | data2 = {{{offstyle|{{{spoken | + | | data2 = {{{offstyle|{{{spoken|}}}}}} |
| label3 = Religious style | | label3 = Religious style | ||
| − | | data3 = {{{relstyle|{{{religious | + | | data3 = {{{relstyle|{{{religious|}}}}}} |
| label4 = Posthumous style | | label4 = Posthumous style | ||
| − | | data4 = {{{deathstyle|{{{posthumous | + | | data4 = {{{deathstyle|{{{posthumous|}}}}}} |
| label5 = Alternative style | | label5 = Alternative style | ||
| − | | data5 = {{{altstyle|{{{alternative | + | | data5 = {{{altstyle|{{{alternative|}}}}}} |
| label6 = Informal style | | label6 = Informal style | ||
| − | | data6 = {{{informal | + | | data6 = {{{informal|}}} |
| label7 = [[Episcopal see|See]] | | label7 = [[Episcopal see|See]] | ||
| − | | data7 = {{{see | + | | data7 = {{{see|}}} |
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox manner of address with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox manner of address]] with unknown parameter "_VALUE_"|ignoreblank=y| alternative | altstyle | background | caption | child | color | colour | consort | deathstyle | dipstyle | embed | image | image_alt | image_size | image2 | image2_alt | image2_size | informal | name | offstyle | posthumous | reference | religious | relstyle | royal name | see | size | size2 | spoken | type }}<noinclude> | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox manner of address with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox manner of address]] with unknown parameter "_VALUE_"|ignoreblank=y| alternative | altstyle | background | caption | child | color | colour | consort | deathstyle | dipstyle | embed | image | image_alt | image_size | image2 | image2_alt | image2_size | informal | name | offstyle | posthumous | reference | religious | relstyle | royal name | see | size | size2 | spoken | type }}<noinclude> | ||
{{documentation}}<!-- add categories and interwikis to Template:Infobox manner of address/doc --> | {{documentation}}<!-- add categories and interwikis to Template:Infobox manner of address/doc --> | ||
</noinclude> | </noinclude> | ||
Latest revision as of 14:56, 10 November 2018
[[Category:Infobox templates|Template:Remove first word]]
| This template uses Lua: |
Contents
Usage
Template:Parameter names example
{{Infobox manner of address
| type = <!-- default is "Styles of" -->
| name =
| consort =
| image =
| image_size =
| image_alt =
| image2 =
| image2_size =
| image2_alt =
| caption =
| reference =
| spoken =
| religious =
| posthumous =
| alternative =
| informal =
| see =
}}
Parameters
- child or embed
- Allows this template to be embedded in another template; see Wikipedia:WikiProject Infoboxes/embed
- background
- An alternative color for overriding the default grey background color
- color or colour
- An alternative text color for overriding the default black text color
- type
- Can be set to "Monarchial" for "Monarchial styles" or "Papal" for "Papal styles", default is "Styles of".
- name or royal name
- Name which appears at top of infobox
- consort
- if defined, adds "as consort" after name
- image
- (optional) Coat of arms image
- image_size
- (optional) size of the image
- image_alt
- (optional, but recommended) alt text for accessibility
- image2
- (optional) second image
- image2_size
- (optional) size of second image
- image2_alt
- (optional, but recommended) alt text for accessibility
- caption
- (optional) caption text displayed below image(s)
- reference or dipstyle
- Reference style (originally labeled: Diplomatic style)
- spoken or offstyle
- Spoken style (originally labeled: Official spoken style)
- religious or relstyle
- Religious style
- posthumous or deathstyle
- Posthumous style
- alternative or altstyle
- Alternative style (originally labeled: Alternative spoken style)
- informal
- Informal style
- see
- See
Examples
Belgium
| Styles of Queen Fabiola of Belgium | |
|---|---|
| State Coat of Arms of Belgium | |
| Reference style | Her Majesty |
| Spoken style | Your Majesty |
{{Infobox manner of address
| name = Queen Fabiola of Belgium
| image = State Coat of Arms of Belgium.svg
| image_size = 50px
| image_alt = State Coat of Arms of Belgium
| reference = [[Majesty|Her Majesty]]
| spoken = Your Majesty
}}
Brazil
| Styles of Pedro II, Emperor of Brazil | |
|---|---|
| CoA Empire of Brazil (1870-1889) | |
| Reference style | His Imperial Majesty |
| Spoken style | Your Imperial Majesty |
| Alternative style | Sire |
{{Infobox manner of address
| name = Pedro II, Emperor of Brazil
| image = CoA Empire of Brazil (1870-1889).svg
| image_size = 60px
| image_alt = CoA Empire of Brazil (1870-1889)
| reference = [[Imperial Majesty (style)|His Imperial Majesty]]
| spoken = Your Imperial Majesty
| alternative = Sire
}}
Greece
| Styles of King Alexander of the Hellenes | |
|---|---|
| Reference style | His Majesty |
| Spoken style | Your Majesty |
{{Infobox manner of address
| name = King Alexander of the Hellenes
| image = Royal Arms of Greece (1863-1936).svg
| image_size = 40px
| image_alt = Royal Arms of Greece (1863-1936)
| reference = [[Majesty|His Majesty]]
| spoken = Your Majesty
}}
Tracking category
See also
- List of articles this template
- Additional information on styles
- Templates which use this one
- Template:Infobox royal styles
- Religious
- Template:Infobox consort styles
- Template:Infobox president styles
- Template:Infobox viceroy styles
| The above documentation is transcluded from Template:Infobox manner of address/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |