Difference between revisions of "Template:Infobox monarchy/doc"
Jump to navigation
Jump to search
imported>TheInfernoX m (→Example) |
imported>Funandtrvl (→Usage: fix spacing) |
||
| (5 intermediate revisions by 4 users not shown) | |||
| 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}} | |
| + | |||
| + | == 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 | ||
}} | }} | ||
| − | |||
| − | |||
<pre style="overflow: auto;"> | <pre style="overflow: auto;"> | ||
| Line 13: | 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 / other1 / other2 / other3 / other4 / saudi | |
| − | + | ||
commonwealth: Majesty, | commonwealth: Majesty, | ||
non-commonwealth: Majesty, | non-commonwealth: Majesty, | ||
| Line 26: | 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 33: | 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 43: | 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 78: | 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 84: | Line 93: | ||
}} | }} | ||
</pre> | </pre> | ||
| − | + | {{clear}} | |
== Microformat == | == Microformat == | ||
{{UF-hcard-person}} | {{UF-hcard-person}} | ||
| + | |||
| + | ==TemplateData== | ||
| + | {{TemplateData header}} | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "residence": {}, | ||
| + | "residences": {} | ||
| + | } | ||
| + | } | ||
| + | </templatedata> | ||
| + | |||
| + | == Tracking category == | ||
| + | * {{clc|Pages using infobox monarchy with unknown parameters}} | ||
== See also == | == See also == | ||
{{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]] | ||
[[Category:Templates generating hCards]] | [[Category:Templates generating hCards]] | ||
| + | [[Category:Templates that add a tracking category]] | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 21:53, 27 September 2020
| 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. |
| 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 | |
|---|---|
| Incumbent | |
![]() | |
| 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
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Residence | residence | no description | Unknown | optional |
| Residences | residences | no description | Unknown | optional |
Tracking category
See also
Template:Organization infoboxes
