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

From blackwiki
Jump to navigation Jump to search
imported>DrKay
(restore current parameters)
imported>Funandtrvl
(→‎Usage: fix spacing)
 
(40 intermediate revisions by 20 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS 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}}
  
 
== Usage ==
 
== Usage ==
<pre>
+
{{Parameter names example
{{Infobox Monarchy
+
|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;">
 +
{{Infobox monarchy
 
| royal_title        = <!-- Required. No wikilinks. -->
 
| royal_title        = <!-- Required. No wikilinks. -->
 
| realm              = <!-- Required. No wikilinks. -->
 
| realm              = <!-- Required. No wikilinks. -->
Line 10: 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 / other2 / other3 / other4 / saudi -->
+
  Accepted values: commonwealth / non-commonwealth / other / other1 / other2 / other3 / other4 / saudi
| his/her            = <!-- Required. -->
+
 
 +
                            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              = <!-- Optional. Just the image name, no File: or Image: coding -->
 +
| image_size        =
 +
| alt                =
 +
| caption            = <!-- Optional. -->
 
| incumbent          = <!-- Required. -->
 
| incumbent          = <!-- Required. -->
 
| incumbentsince    = <!-- Optional. Enthronement date. -->
 
| incumbentsince    = <!-- Optional. Enthronement date. -->
 
| 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_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_apparent      = <!-- Optional. -->
 +
| heir_presumptive  = <!-- Optional. -->
 
| first_monarch      = <!-- Required. -->
 
| first_monarch      = <!-- Required. -->
| date              = <!-- Required. Formation date. -->
+
| last_monarch      = <!-- Optional. -->
| residence          = <!-- Optional. -->
+
| formation          = <!-- Required. Formation date. -->
 +
| abolition          = <!-- Optional. -->
 +
| residence         = <!-- Optional, or | residences = -->
 +
| appointer         = <!-- Optional. -->
 +
| pretender          = <!-- Optional. -->
 +
| titlenote          =
 
| website            = <!-- Optional. -->
 
| website            = <!-- Optional. -->
 
}}
 
}}
 
</pre>
 
</pre>
  
 +
== Example ==
 +
 +
{{Infobox monarchy{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
 +
| 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]
 +
}}
 +
<pre style="overflow: auto;">
 +
{{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]
 +
}}
 +
</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 AND INTERWIKIS HERE, THANKS -->
+
<!-- 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 hCard microformats]]
+
[[Category:Templates generating hCards]]
 
+
[[Category:Templates that add a tracking category]]
[[mk:Шаблон:Инфокутија-Монархија]]
+
}}</includeonly>
[[tl:Suleras:Infobox Kaharian]]
 
</includeonly>
 

Latest revision as of 21:53, 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

No description.

Template parameters

ParameterDescriptionTypeStatus
Residenceresidence

no description

Unknownoptional
Residencesresidences

no description

Unknownoptional

Tracking category

See also

Template:Organization infoboxes