Difference between revisions of "Template:Infobox former monarchy/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Thumperward
(here too)
imported>BabelStone
(try to make coatofarms optional)
Line 2: Line 2:
 
! colspan=2 style="text-align: center; font-size: 125%" | {{{royal_title}}} of {{{realm}}}
 
! colspan=2 style="text-align: center; font-size: 125%" | {{{royal_title}}} of {{{realm}}}
 
|-
 
|-
! colspan=2 style="text-align: center; text-transform: uppercase; font-size:90%; line-height:110%; color:rgb(206, 91, 192); background:rgb(155, 9, 137)" | Former monarchy
+
! colspan=2 style="text-align: center; text-transform: uppercase; font-size:90%; line-height:110%;" | Former Monarchy
 
|-
 
|-
|colspan="2" style="text-align: center; font-family:serif; font-weight:bold; text-transform:uppercase; font-size:90%; line-height:110%; color:{{#switch:{{{border|}}}|provincial=rgb(106,150,212)|federal=rgb(237,112,112)|imperial=rgb(213,115,111)}}; background:{{#switch:{{{border|}}}|provincial=rgb(44,94,165)|federal=rgb(212,36,36)|imperial=rgb(68,15,102)}};"|{{#switch:{{{border|}}}|provincial=Provincial/State|federal=Federal|imperial=Imperial}}
+
|colspan="2" style="text-align: center; font-family:serif; font-weight:bold; text-transform:uppercase; font-size:90%; line-height:110%;"|{{#switch:{{{border|}}}|provincial=Provincial/State|federal=Federal|imperial=Imperial}}
 
|-
 
|-
| colspan=2 style="text-align: center" | [[File:{{{coatofarms}}}|{{#if:{{{coatofarmssize|}}}|{{{coatofarmssize}}}|frameless}}]]
+
{{#if:{{{coatofarms|}}}|
 +
{{!}} colspan=2 style="text-align: center" {{!}} [[File:{{{coatofarms}}}|{{#if:{{{coatofarmssize|}}}|{{{coatofarmssize}}}|120px}}]]
 +
{{!}}-
 +
}}
 
|-
 
|-
| colspan=2 style="text-align: center; border-bottom: solid 1px #ccd2d9" | {{{coatofarmscaption}}}
+
{{#if:{{{coatofarmscaption|}}}|
 +
{{!}} colspan=2 style="text-align: center" {{!}} {{{coatofarmscaption}}}
 +
{{!}}-
 +
}}
 
|-
 
|-
 
{{#if:{{{image|}}}|
 
{{#if:{{{image|}}}|
{{!}} colspan=2 style="text-align: center" {{!}} [[File:{{{image}}}{{!}}frameless]]
+
{{!}} colspan=2 style="text-align: center" {{!}} [[File:{{{image}}}{{!}}120px]]
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Revision as of 08:37, 1 September 2012

{{{royal_title}}} of {{{realm}}}
Former Monarchy
{{{caption}}}
First monarch {{{first_monarch}}}
Last monarch {{{last_monarch}}}
Style {{{style}}}
Official residence {{{residence}}}
Appointer {{{appointer}}}
Monarchy started {{{began}}}
Monarchy ended {{{ended}}}
Current pretender {{{pretender}}}
Template documentation[view] [edit] [history] [purge]

Usage

{{Infobox former monarchy
| royal_title       = <!-- Required. -->
| realm             = <!-- Required. -->
| border            = <!-- Optional. Accepted values: provincial / federal / imperial -->
| coatofarms        = <!-- Optional. Just the image name, no File: or Image: coding -->
| coatofarmssize    = <!-- Optional. Default: 120px -->
| coatofarmscaption = <!-- Optional. -->
| image             = <!-- Optional. Just the image name, no File: or Image: coding -->
| caption           = <!-- Optional. -->
| first_monarch     = <!-- Required. -->
| last_monarch      = <!-- Required. -->
| style             = <!-- Optional. -->
| residence         = <!-- Optional. -->
| appointer         = <!-- Optional. -->
| began             = <!-- Required. -->
| ended             = <!-- Required. -->
| pretender         = <!-- Optional. -->
}}