Difference between revisions of "Template:Infobox monarchy/doc"
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}} | ||
| − | <!-- | + | <!-- 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 == | ||
| − | {{ | + | {{Parameter names example |
| − | + | |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. --> | ||
| − | | | + | | 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 | ||
| − | | | + | | 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|| |
| − | {{ | + | <!-- Categories below this line; interwikis at Wikidata --> |
| − | <!-- | ||
[[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
| 40px | This is a documentation subpage for Template:Infobox monarchy. It contains usage information, categories and other content that is not part of the original template page. |
| 30px | This template uses Lua: |
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 | |
| Style | His Majesty |
| Heir apparent | Princess Elisabeth, Duchess of Brabant |
| First monarch | Leopold I |
| Formation | 21 July 1831 |
| Website | The 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
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