Difference between revisions of "Template:Infobox manner of address"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
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&nbsp;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&nbsp;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<includeonly>|</includeonly>}}}}}}
+
| data1      = {{{dipstyle|{{{reference|}}}}}}
 
| label2    = Spoken style
 
| label2    = Spoken style
| data2      = {{{offstyle|{{{spoken<includeonly>|</includeonly>}}}}}}
+
| data2      = {{{offstyle|{{{spoken|}}}}}}
 
| label3    = Religious style
 
| label3    = Religious style
| data3      = {{{relstyle|{{{religious<includeonly>|</includeonly>}}}}}}
+
| data3      = {{{relstyle|{{{religious|}}}}}}
 
| label4    = Posthumous style
 
| label4    = Posthumous style
| data4      = {{{deathstyle|{{{posthumous<includeonly>|</includeonly>}}}}}}
+
| data4      = {{{deathstyle|{{{posthumous|}}}}}}
 
| label5    = Alternative style
 
| label5    = Alternative style
| data5      = {{{altstyle|{{{alternative<includeonly>|</includeonly>}}}}}}
+
| data5      = {{{altstyle|{{{alternative|}}}}}}
 
| label6    = Informal style
 
| label6    = Informal style
| data6      = {{{informal<includeonly>|</includeonly>}}}
+
| data6      = {{{informal|}}}
 
| label7    = [[Episcopal see|See]]
 
| label7    = [[Episcopal see|See]]
| data7      = {{{see<includeonly>|</includeonly>}}}
+
| 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]]

Template documentation[view] [edit] [history] [purge]

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 styleHer Majesty
Spoken styleYour Majesty
[[Category:Infobox templates|Template:Remove first word]]

Queen Fabiola of Belgium

{{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 styleHis Imperial Majesty
Spoken styleYour Imperial Majesty
Alternative styleSire
[[Category:Infobox templates|Template:Remove first word]]

Pedro II of Brazil

{{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
Royal Arms of Greece (1863-1936)
Reference styleHis Majesty
Spoken styleYour Majesty
[[Category:Infobox templates|Template:Remove first word]]

Alexander of Greece (king)

{{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

Additional information on styles
Templates which use this one