Difference between revisions of "Template:Infobox monarchy/doc"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
m (add links to module used and tracking category)
imported>Funandtrvl
(sync w/template, copy edit)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!----PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE---->
+
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
 
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
 
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
  
 
== Usage ==
 
== Usage ==
{{Generic template demo
+
{{Parameter names example
|native_name |coatofarms |coa_alt |armsnote|image |image_alt |caption |incumbent |incumbentsince |other |image2 |image2_alt |caption2 |incumbent2 |incumbent2since |other2 |heir_apparent |heiress_apparent |heir_presumptive |heiress_presumptive |first_monarch |last_monarch |formation |abolition |residence={{longitem|{{{residence}}}<br/>or {{{residences}}}}} |appointer |pretender |website
+
|royal_title |realm |native_name |coatofarms |coatofarms_size |coa_alt |coatofarms_article |coatofarmscaption |type  |his/her |image |image_size |alt |caption |incumbent |incumbentsince |other |image2 |image2_size |image2_alt |caption2 |incumbent2 |incumbent2since |other2 |heir_apparent |heir_presumptive |first_monarch |last_monarch |formation |abolition |residence={{longitem|{{{residence}}}<br/>or {{{residences}}}}} |appointer |pretender |titlenote |website
 
}}
 
}}
  
Line 15: Line 15:
 
| border            = <!-- Optional. Accepted values: provincial / federal / imperial -->
 
| border            = <!-- Optional. Accepted values: provincial / federal / imperial -->
 
| coatofarms        = <!-- Optional. Just the image name, no File: or Image: coding. -->
 
| coatofarms        = <!-- Optional. Just the image name, no File: or Image: coding. -->
 +
| coatofarms_size    =
 +
| coa_alt            =
 
| coatofarms_article = <!-- Required if {{{coatofarms}}} field is used. -->
 
| coatofarms_article = <!-- Required if {{{coatofarms}}} field is used. -->
| coatofarms_link    = <!-- Optional. If {{{coatofarms}}} field is used. -->
+
| coatofarmscaption  =  
 
| type              = <!-- Optional. Type of style used by monarch.
 
| type              = <!-- Optional. Type of style used by monarch.
 
                             Accepted values: commonwealth / non-commonwealth / other /
 
                             Accepted values: commonwealth / non-commonwealth / other /
Line 28: Line 30:
 
                             other4: Serene Highness,
 
                             other4: Serene Highness,
 
                             saudi: Custodian of the Two Holy Mosques -->
 
                             saudi: Custodian of the Two Holy Mosques -->
| his/her            = <!-- Required. -->
+
| his/her            = <!-- Required, or | style = -->
 
| image              = <!-- Optional. Just the image name, no File: or Image: coding -->
 
| image              = <!-- Optional. Just the image name, no File: or Image: coding -->
 +
| image_size        =
 +
| alt                =
 
| caption            = <!-- Optional. -->
 
| caption            = <!-- Optional. -->
 
| incumbent          = <!-- Required. -->
 
| incumbent          = <!-- Required. -->
Line 35: Line 39:
 
| other              = <!-- Optional. Other caption below incumbent's name instead of enthronement date. -->
 
| other              = <!-- Optional. Other caption below incumbent's name instead of enthronement date. -->
 
| image2            = <!-- Optional. Just the image name, no File: or Image: coding -->
 
| image2            = <!-- Optional. Just the image name, no File: or Image: coding -->
 +
| image2_size        =
 +
| image2_alt        =
 
| caption2          = <!-- Optional. -->
 
| caption2          = <!-- Optional. -->
 
| incumbent2        = <!-- Optional. for a co-principality -->
 
| incumbent2        = <!-- Optional. for a co-principality -->
Line 45: Line 51:
 
| formation          = <!-- Required. Formation date. -->
 
| formation          = <!-- Required. Formation date. -->
 
| abolition          = <!-- Optional. -->
 
| abolition          = <!-- Optional. -->
| residence          = <!-- Optional. -->
+
| residence          = <!-- Optional, or | residences = -->
 
| appointer          = <!-- Optional. -->
 
| appointer          = <!-- Optional. -->
 
| pretender          = <!-- Optional. -->
 
| pretender          = <!-- Optional. -->
 +
| titlenote          =
 
| website            = <!-- Optional. -->
 
| website            = <!-- Optional. -->
 
}}
 
}}
Line 80: Line 87:
 
| incumbentsince = 21 July 2013
 
| incumbentsince = 21 July 2013
 
| his/her = His
 
| his/her = His
| heiress_apparent = [[Princess Elisabeth, Duchess of Brabant]]
+
| heir_apparent = [[Princess Elisabeth, Duchess of Brabant]]
 
| first_monarch = [[Leopold I of Belgium|Leopold I]]
 
| first_monarch = [[Leopold I of Belgium|Leopold I]]
 
| date = 21 July 1831
 
| date = 21 July 1831
Line 86: Line 93:
 
}}
 
}}
 
</pre>
 
</pre>
 
+
{{clear}}
 
== Microformat ==
 
== Microformat ==
 
{{UF-hcard-person}}
 
{{UF-hcard-person}}
 +
 +
==TemplateData==
 +
{{TemplateData header}}
  
 
== Tracking category ==
 
== Tracking category ==
Line 96: Line 106:
 
{{Organization infoboxes}}
 
{{Organization infoboxes}}
  
<includeonly>
+
<includeonly>{{sandbox other||
{{Basepage subpage|
+
<!-- Categories below this line; interwikis at Wikidata -->
<!-- CATEGORIES HERE, THANKS -->
 
 
[[Category:Royalty and nobility infobox templates|Monarchy]]  
 
[[Category:Royalty and nobility infobox templates|Monarchy]]  
 
[[Category:Politics and government infobox templates|Monarchy]]
 
[[Category:Politics and government infobox templates|Monarchy]]

Revision as of 21:33, 27 September 2020

Usage

Template:Parameter names example

{{Infobox monarchy
| royal_title        = <!-- Required. No wikilinks. -->
| realm              = <!-- Required. No wikilinks. -->
| native_name        = <!-- Optional. -->
| border             = <!-- Optional. Accepted values: provincial / federal / imperial -->
| coatofarms         = <!-- Optional. Just the image name, no File: or Image: coding. -->
| coatofarms_size    =
| coa_alt            =
| coatofarms_article = <!-- Required if {{{coatofarms}}} field is used. -->
| coatofarmscaption  = 
| type               = <!-- Optional. Type of style used by monarch.
                            Accepted values: commonwealth / non-commonwealth / other /
                                             other1 / other2 / other3 / other4 / saudi
                            commonwealth: Majesty,
                            non-commonwealth: Majesty,
                            other: Majesty,
                            other1: Imperial Majesty,
                            other2: Highness,
                            other3: Royal Highness,
                            other4: Serene Highness,
                            saudi: Custodian of the Two Holy Mosques -->
| his/her            = <!-- Required, or | style = -->
| image              = <!-- Optional. Just the image name, no File: or Image: coding -->
| image_size         =
| alt                =
| caption            = <!-- Optional. -->
| incumbent          = <!-- Required. -->
| incumbentsince     = <!-- Optional. Enthronement date. -->
| other              = <!-- Optional. Other caption below incumbent's name instead of enthronement date. -->
| image2             = <!-- Optional. Just the image name, no File: or Image: coding -->
| image2_size        =
| image2_alt         =
| caption2           = <!-- Optional. -->
| incumbent2         = <!-- Optional. for a co-principality -->
| incumbent2since    = <!-- Optional. Enthronement date. -->
| other2             = <!-- Optional. Other caption below co-incumbent's name instead of enthronement date. -->
| heir_apparent      = <!-- Optional. -->
| heir_presumptive   = <!-- Optional. -->
| first_monarch      = <!-- Required. -->
| last_monarch       = <!-- Optional. -->
| formation          = <!-- Required. Formation date. -->
| abolition          = <!-- Optional. -->
| residence          = <!-- Optional, or | residences = -->
| appointer          = <!-- Optional. -->
| pretender          = <!-- Optional. -->
| titlenote          =
| website            = <!-- Optional. -->
}}

Example

King of the Belgians
120px
Incumbent
200px
Philippe
since 21 July 2013
Details
StyleHis Majesty
Heir apparentPrincess Elisabeth, Duchess of Brabant
First monarchLeopold I
Formation21 July 1831
WebsiteThe Belgian Monarchy
{{Infobox monarchy
| royal_title = King
| realm = the Belgians
| coatofarms = Great Coat of Arms of Belgium.svg
| coatofarms_article = Coat of arms of Belgium
| type = non-commonwealth
| image = Koning Filip van België.jpg
| incumbent = [[Philippe of Belgium|Philippe]]
| incumbentsince = 21 July 2013
| his/her = His
| heir_apparent = [[Princess Elisabeth, Duchess of Brabant]]
| first_monarch = [[Leopold I of Belgium|Leopold I]]
| date = 21 July 1831
| website = [http://www.monarchie.be/en/ The Belgian Monarchy]
}}

Microformat

Template:UF-hcard-person

TemplateData

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Infobox monarchy

Tracking category

See also

Template:Organization infoboxes