Difference between revisions of "Template:Infobox royal styles/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Jon Kolbert
(Create sandbox version of Template:Infobox royal styles)
 
imported>Jon Kolbert
(test with extra image parameters)
 
Line 3: Line 3:
 
| colour      = #000066
 
| colour      = #000066
 
| name        = {{{name<includeonly>|{{{royal name|}}}</includeonly>}}}
 
| name        = {{{name<includeonly>|{{{royal name|}}}</includeonly>}}}
| image      = {{{image<includeonly>|</includeonly>}}}
+
| image      = {{#invoke:InfoboxImage|InfoboxImage |image={{{image}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|}}}}}
 
| reference  = {{{reference<includeonly>|{{{dipstyle|}}}</includeonly>}}}
 
| reference  = {{{reference<includeonly>|{{{dipstyle|}}}</includeonly>}}}
 
| spoken      = {{{spoken<includeonly>|{{{offstyle|}}}</includeonly>}}}
 
| spoken      = {{{spoken<includeonly>|{{{offstyle|}}}</includeonly>}}}
 
| alternative = {{br separated entries | {{{alternative<includeonly>|{{{altstyle|}}}</includeonly>}}} | {{{{{|safesubst:}}}#if:{{{lang|}}}| {{{lang}}}: {{{altlang|}}} }} }}
 
| alternative = {{br separated entries | {{{alternative<includeonly>|{{{altstyle|}}}</includeonly>}}} | {{{{{|safesubst:}}}#if:{{{lang|}}}| {{{lang}}}: {{{altlang|}}} }} }}
 
}}<noinclude>{{documentation}}</noinclude>
 
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 20:37, 28 September 2017

Styles of
{{{name}}}
[[File:{{{image}}}|frameless]]
Reference style{{{reference}}}
Spoken style{{{spoken}}}
Alternative style{{{alternative}}}
Template documentation[view] [edit] [history] [purge]

Template:Wraps infobox

Usage

Blank template

{{Infobox royal styles
| name        =
| image       =
| image_size  =
| reference   = 
| spoken      = 
| alternative = 
}}

Parameters

  • name or royal name
Name which appears at top of infobox
  • image
(optional) Coat of arms image, should be in format Imagefilename.png
  • image_size
(optional) Image size, generally between 50-100px
  • reference or dipstyle
Reference style (originally labeled: Diplomatic style)
  • spoken or offstyle
Spoken style (originally labeled: Official spoken style)
  • alternative or altstyle
Alternative style (originally labeled: Alternative spoken style)

Examples

Commonwealth Realms

Styles of
Queen Elizabeth II
Personal flag of Queen Elizabeth II.svg
Reference styleHer Majesty
Spoken styleYour Majesty

Elizabeth II

{{Infobox royal styles
| name        = Queen Elizabeth II
| image       = Personal flag of Queen Elizabeth II.svg
| image_size  = 75px
| reference   = [[Majesty|Her Majesty]]
| spoken      = Your Majesty
}}

Brazil

Styles of
Pedro II, Emperor of Brazil
Coat of Arms of the Empire of Brazil (1853-1889).svg
Reference styleHis Imperial Majesty
Spoken styleYour Imperial Majesty

Pedro II of Brazil

{{Infobox royal styles
| name        = Pedro II, Emperor of Brazil
| image       = CoA Empire of Brazil (1870-1889).svg
| image_size  = 60px
| reference   = [[Imperial Majesty (style)|His Imperial Majesty]]
| spoken      = Your Imperial Majesty
}}

Greece

Styles of
King Alexander I of the Hellenes
Royal Arms of Greece (1863-1936).svg
Reference styleHis Majesty
Spoken styleYour Majesty

Alexander of Greece (king)

{{Infobox royal styles
| name        = King Alexander I of the Hellenes
| image       = Royal Arms of Greece (1863-1936).svg
| image_size  = 60px
| reference   = [[Majesty|His Majesty]]
| spoken      = Your Majesty
}}

See also

Additional information on styles
Core template
Similar templates