Misplaced Pages

Template:Infobox royalty/doc: Difference between revisions

Article snapshot taken from Wikipedia with creative commons attribution-sharealike license. Give it a read and then ask your questions in the chat. We can research this topic together.
< Template:Infobox royalty Browse history interactively← Previous editNext edit →Content deleted Content addedVisualWikitext
Revision as of 10:46, 30 July 2014 view sourceSardanaphalus (talk | contribs)119,752 edits Parameters: hlists← Previous edit Revision as of 11:15, 30 July 2014 view source Sardanaphalus (talk | contribs)119,752 edits Generic template demo, own section for (updated) ExampleNext edit →
Line 1: Line 1:
{{Documentation subpage}} {{Documentation subpage}}
<!-------
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
Categories go at the bottom of this page and interwikis at Wikidata.
-------->


== Blank syntax ==
{{Infobox royalty
{{Generic template demo
| name = Henry VIII
|name |title |titletext |more |type |image |image_size={{{image_size}}}<br/> |imgw |alt |caption
| image = Workshop of Hans Holbein the Younger - Portrait of Henry VIII - Google Art Project.jpg
|succession |moretext |reign |reign-type |coronation |cor-type |predecessor |pre-type |regent |reg-type |successor |suc-type
| caption = King Henry VIII by ], Walker Art Gallery, Liverpool
|succession1 |moretext1 |reign1 |reign-type1 |coronation1 |cor-type1 |predecessor1 |pre-type1 |regent1 |reg-type1 |successor1 |suc-type1
| succession = ]; ]
|succession2 |moretext2 |reign2 |reign-type2 |coronation2 |cor-type2 |predecessor2 |pre-type2 |regent2 |reg-type2 |successor2 |suc-type2
| moretext = (])
|succession3 |moretext3 |reign3 |reign-type3 |coronation3 |cor-type3 |predecessor3 |pre-type3 |regent3 |reg-type3 |successor3 |suc-type3
| reign = {{nowrap|21 April 1509&nbsp;– 28 January 1547}}
|spouse |spouse-type |consort |issue |issue-link |issue-pipe
| coronation = 24 June 1509
|full name |era name |era dates |regnal name |posthumous name |temple name |house |house-type |father |mother
| predecessor = ]
|birth_date |birth_place |death_date |death_place |burial_date |burial_place
| successor = ]
|occupation |signature_type |signature={{{signature}}}<br/> |religion
| spouses = {{Plainlist|
* ]
* ]
* ]
* ]
* ]
* ]
}}
| issue = {{Plainlist|
* ]
* ] (illegitimate)
* ]
* ]
}}
| issue-link = #Marriages and issue
| issue-pipe = Among others
| house = ]
| father = ]
| mother = ]
| birth_date = {{Birth date|1491|6|28|df=yes}}
| birth_place = ], ]
| death_date = {{Death date and age|1547|1|28|1491|6|28|df=yes}}
| death_place = ], London
| place of burial = 4 February 1547 ]
| signature = HenryVIIISig.svg
| religion = Christian (],<br/> previously ])
}} }}

== Usage ==
=== Blank template ===
<pre style="overflow:auto;"> <pre style="overflow:auto;">
{{Infobox royalty {{Infobox royalty
| name = | name =
| title =
| title = | titletext =
| titletext = | more =
| more = | type =
| type = | image =
| image = | image_size =
| image_size = | imgw =
| imgw = | alt =
| alt = | caption =

| caption =
| succession = | succession =
| moretext = | moretext =
| reign = | reign =
| reign-type = | reign-type =
| coronation = | coronation =
| cor-type = | cor-type =
| predecessor = | predecessor =
| pre-type = | pre-type =
| regent = | regent =
| reg-type = | reg-type =
| successor = | successor =
| suc-type = | suc-type =

| succession1 = | succession1 =
| moretext1 = | moretext1 =
Line 78: Line 54:
| successor1 = | successor1 =
| suc-type1 = | suc-type1 =

| succession2 = | succession2 =
| moretext2 = | moretext2 =
Line 90: Line 67:
| successor2 = | successor2 =
| suc-type2 = | suc-type2 =

| succession3 = | succession3 =
| moretext3 = | moretext3 =
Line 102: Line 80:
| successor3 = | successor3 =
| suc-type3 = | suc-type3 =

| spouse =
| spouse-type = | spouse =
| spouse-type =
| consort = <!-- yes or no -->
| issue = | consort = <!-- yes or no -->
| issue-link = | issue =
| issue-pipe = | issue-link =
| full name = | issue-pipe =
| era name = | full name =
| era dates = | era name =
| regnal name = | era dates =
| regnal name =
| posthumous name = | posthumous name =
| temple name = | temple name =
| house = | house =
| house-type = | house-type =
| father = | father =
| mother = | mother =
| birth_date = <!-- {{Birth date and age|YYYY|MM|DD|df=y}} --> | birth_date = <!-- {{birth date and age|YYYY|MM|DD|df=y}} -->
| birth_place = | birth_place =
| death_date = <!-- {{Death date and age|YYYY|MM|DD|YYYY|MM|DD|df=y}} --> | death_date = <!-- {{death date and age|YYYY|MM|DD|YYYY|MM|DD|df=y}} -->
| death_place = | death_place =
| burial_date = | burial_date =
| burial_place = | burial_place =
| occupation = | occupation =
| signature_type = | signature_type =
| signature = | signature =
| religion = | religion =
}} }}
</pre> </pre>


=== Notes === == Example ==

''A note on peer wikilinks:'' the wikilinks of substantive peers (or those in another kind of numbered succession) should always show that number (eg ] rather than Richard, Earl of Cornwall), unless other conventions say otherwise (such as that one should always see ], never Prince Edward, 2nd Duke of Kent). Generally, use the article's title, omitting surplus fore- and surnames or disambiguation.
{{Hidden begin |showhide=left |style=<!--For larger link:-->font-size:110%;}}

{{Infobox royalty
| name = Henry VIII
| image = Workshop of Hans Holbein the Younger - Portrait of Henry VIII - Google Art Project.jpg
| caption = Portrait by ] (Walker Art Gallery, Liverpool).
| succession = {{hlist |] |]}}
| moretext = (])
| reign = {{nowrap|21 April 1509 – 28 January 1547}}
| coronation = 24 June 1509
| predecessor = ]
| successor = ]
| spouses = {{startplainlist}}
* ]
* ]
* ]
* ]
* ]
* ]
{{endplainlist}}
| issue = {{startplainlist}}
* ]
* '']''
* ]
* ]
{{endplainlist}}
| issue-link = #Marriages and issue
| issue-pipe = Among others
| house = ]
| father = ]
| mother = ]
| birth_date = {{birth date|1491|6|28|df=yes}}
| birth_place = ], ]
| death_date = {{death date and age|1547|1|28|1491|6|28|df=yes}}
| death_place = ], London
| burial_date = 4 February 1547
| burial_place = ]
| signature = HenryVIIISig.svg
| religion = Christian (] then ])
}}
<pre style="overflow:auto;">
{{Infobox royalty
| name = Henry VIII
| image = Workshop of Hans Holbein the Younger - Portrait of Henry VIII - Google Art Project.jpg
| caption = Portrait by ] (Walker Art Gallery, Liverpool).
| succession = {{hlist |] |]}}
| moretext = (])
| reign = {{nowrap|21 April 1509 – 28 January 1547}}
| coronation = 24 June 1509
| predecessor = ]
| successor = ]
| spouses = {{startplainlist}}
* ]
* ]
* ]
* ]
* ]
* ]
{{endplainlist}}
| issue = {{startplainlist}}
* ]
* '']''
* ]
* ]
{{endplainlist}}
| issue-link = #Marriages and issue
| issue-pipe = Among others
| house = ]
| father = ]
| mother = ]
| birth_date = {{birth date|1491|6|28|df=yes}}
| birth_place = ], ]
| death_date = {{death date and age|1547|1|28|1491|6|28|df=yes}}
| death_place = ], London
| burial_date = 4 February 1547
| burial_place = ]
| signature = HenryVIIISig.svg
| religion = Christian (] then ])
}}
</pre>

{{Hidden end}}
{{clear}}

== Parameters ==


=== Parameters ===
All parameters are optional (even "name" can be taken from PAGENAME). All parameters are optional (even "name" can be taken from PAGENAME).

{| class="wikitable" {| class="wikitable"
|- |-
Line 300: Line 364:
|} |}


==Microformats== == Notes ==

; Peer wikilinks
: The wikilinks of substantive peers (or those in another kind of numbered succession) should always show that number (eg ] rather than Richard, Earl of Cornwall), unless other conventions say otherwise (such as that one should always see ], never Prince Edward, 2nd Duke of Kent). Generally, use the article's title, omitting surplus fore- and surnames or disambiguation.

== Microformats ==
{{UF-hcard-person}} {{UF-hcard-person}}


=== Template Data === == TemplateData ==
{{TemplateDataHeader}} {{TemplateDataHeader}}
<templatedata>{ <templatedata>{

Revision as of 11:15, 30 July 2014

This is a documentation subpage for Template:Infobox royalty.
It may contain usage information, categories and other content that is not part of the original template page.

Blank syntax

{{{name}}}
{{{title}}} {{{titletext}}}
]{{{caption}}}
{{{succession}}} {{{moretext}}}
{{{reign-type}}}{{{reign}}}
{{{cor-type}}}{{{coronation}}}
{{{pre-type}}}{{{predecessor}}}
{{{suc-type}}}{{{successor}}}
{{{reg-type}}}{{{regent}}}
{{{succession1}}} {{{moretext1}}}
{{{reign-type1}}}{{{reign1}}}
{{{cor-type1}}}{{{coronation1}}}
{{{pre-type1}}}{{{predecessor1}}}
{{{suc-type1}}}{{{successor1}}}
{{{reg-type1}}}{{{regent1}}}
{{{succession2}}} {{{moretext2}}}
{{{reign-type2}}}{{{reign2}}}
{{{cor-type2}}}{{{coronation2}}}
{{{pre-type2}}}{{{predecessor2}}}
{{{suc-type2}}}{{{successor2}}}
{{{reg-type2}}}{{{regent2}}}
{{{succession3}}} {{{moretext3}}}
{{{reign-type3}}}{{{reign3}}}
{{{cor-type3}}}{{{coronation3}}}
{{{pre-type3}}}{{{predecessor3}}}
{{{suc-type3}}}{{{successor3}}}
{{{reg-type3}}}{{{regent3}}}
Born{{{birth_date}}}
{{{birth_place}}}
Died{{{death_date}}}
{{{death_place}}}
Burial{{{burial_date}}}
{{{burial_place}}}
{{{spouse-type}}}{{{spouse}}}
Issue
]
{{{issue}}}
Names
{{{full name}}}
Era name and dates
{{{era name}}}: {{{era dates}}}
Regnal name
{{{regnal name}}}
Posthumous name
{{{posthumous name}}}
Temple name
{{{temple name}}}
{{{house-type}}}{{{house}}}
Father{{{father}}}
Mother{{{mother}}}
Religion{{{religion}}}
Occupation{{{occupation}}}
{{{signature_type}}}]
{{Infobox royalty
| name  = 
| title = 
| titletext = 
| more  = 
| type  = 
| image = 
| image_size = 
| imgw  = 
| alt   = 
| caption = 
| succession  = 
| moretext    = 
| reign       = 
| reign-type  = 
| coronation  = 
| cor-type    = 
| predecessor = 
| pre-type    = 
| regent      = 
| reg-type    = 
| successor   = 
| suc-type    = 
| succession1  = 
| moretext1    = 
| reign1       = 
| reign-type1  = 
| coronation1  = 
| cor-type1    = 
| predecessor1 = 
| pre-type1    = 
| regent1      = 
| reg-type1    = 
| successor1   = 
| suc-type1    = 
| succession2  = 
| moretext2    = 
| reign2       = 
| reign-type2  = 
| coronation2  = 
| cor-type2    = 
| predecessor2 = 
| pre-type2    = 
| regent2      = 
| reg-type2    = 
| successor2   = 
| suc-type2    = 
| succession3  = 
| moretext3    = 
| reign3       = 
| reign-type3  = 
| coronation3  = 
| cor-type3    = 
| predecessor3 = 
| pre-type3    = 
| regent3      = 
| reg-type3    = 
| successor3   = 
| suc-type3    = 
| spouse      = 
| spouse-type = 
| consort     =  <!-- yes or no -->
| issue       = 
| issue-link  = 
| issue-pipe  = 
| full name   = 
| era name    = 
| era dates   = 
| regnal name = 
| posthumous name = 
| temple name = 
| house       = 
| house-type  = 
| father      = 
| mother      = 
| birth_date  =  <!-- {{birth date and age|YYYY|MM|DD|df=y}} -->
| birth_place = 
| death_date  =  <!-- {{death date and age|YYYY|MM|DD|YYYY|MM|DD|df=y}} -->
| death_place = 
| burial_date = 
| burial_place = 
| occupation  = 
| signature_type = 
| signature   = 
| religion    = 
}}

Example


Henry VIII
Portrait by Hans Holbein the Younger (Walker Art Gallery, Liverpool).
(more...)
Reign21 April 1509 – 28 January 1547
Coronation24 June 1509
PredecessorHenry VII
SuccessorEdward VI
Born(1491-06-28)28 June 1491
Greenwich Palace, Greenwich
Died28 January 1547(1547-01-28) (aged 55)
Palace of Whitehall, London
Burial4 February 1547
St George's Chapel, Windsor Castle
Spouses
Issue
Among others
HouseHouse of Tudor
FatherHenry VII of England
MotherElizabeth of York
ReligionChristian (Roman Catholic then Anglican)
SignatureHenry VIII's signature
{{Infobox royalty
| name = Henry VIII 
| image = Workshop of Hans Holbein the Younger - Portrait of Henry VIII - Google Art Project.jpg 
| caption = Portrait by ] (Walker Art Gallery, Liverpool).
| succession = {{hlist |] |]}}
| moretext = (]) 
| reign = {{nowrap|21 April 1509 – 28 January 1547}} 
| coronation = 24 June 1509 
| predecessor = ] 
| successor = ] 
| spouses = {{startplainlist}}
* ] 
* ] 
* ] 
* ] 
* ] 
* ] 
{{endplainlist}}
| issue = {{startplainlist}}
* ] 
* '']''
* ] 
* ] 
{{endplainlist}}
| issue-link = #Marriages and issue 
| issue-pipe = Among others 
| house = ] 
| father = ] 
| mother = ] 
| birth_date = {{birth date|1491|6|28|df=yes}} 
| birth_place = ], ] 
| death_date = {{death date and age|1547|1|28|1491|6|28|df=yes}} 
| death_place = ], London 
| burial_date = 4 February 1547
| burial_place = ]
| signature = HenryVIIISig.svg 
| religion = Christian (] then ])
}}

Parameters

All parameters are optional (even "name" can be taken from PAGENAME).

name / title / type / image
name = Most common English/Anglicised name (e.g. George III; Prince William (not William, Duke of Cumberland); Sophie (neither Princess Edward nor Princess Sophie); Elizabeth Bowes-Lyon (rather than Queen Elizabeth); Prince William (rather than Prince William of Wales) etc.)
title = Principal substantive title(s) in use (e.g. King of England; prev. Duke of Edinburgh) (omit this field if any one "succession(X)" field would be identical to it)
titletext = An explanatory note about "title", already in <small>s — such as a link to full titles (dependent upon "title")
more = Automatically-generated alternative to "titletext"; only appears if "titletext" is undefined/empty and "realm" is defined
  • austria
  • belgium
  • britain
  • china
  • cyprus
  • denmark
  • en-sco
  • england
  • ethiopia
  • france
  • hre
  • hungary
  • italy
  • jerusalem
  • luxembourg
  • malaysia
  • monaco
  • netherlands
  • norway
  • parma
  • portugal
  • russia
  • scotland
  • sicilies
  • spain-crown
  • spain-heir
  • sweden
image = i.e. X.jpg, that is to say no [[Image:
image_size = Size to display image: 200px (set width), x300px (set height), or 200x300px (max width & max height). This defaults to frameless (default is 220px, but logged in users can change this by clicking on "my preferences" and adjusting thumbnail size) if empty or omitted. This parameter should not normally need to be set.
alt = Alt text for the image, for visually impaired readers see WP:ALT
caption = Details of artist and year, for instance see WP:CAP
succession fields
succession = Primary substantive hereditary title (regarding the following fields, "reign" 'til "suc-type"; omit the "title" field if the two would be identical)
moretext = An explanatory note about the "succession", already in <small>s — such as a link to full titles (dependent upon "succession")
reign = D Month YYYY – D Month YYYY (or other appropriate format per MOS:DATE#Dates; for monarchs and their consorts (although dates may differ between the two))
reign-type = Optional alternative text for 'Reign' (dependent upon "reign")
coronation = D Month YYYY (or other appropriate format per MOS:DATE#Dates; for monarchs and their consorts)
cor-type = Optional alternative text for 'Coronation', such as 'Investiture' (dependent upon "coronation"). Automatically links to country-specific article if one of the following values is entered:
  • britain
  • france
  • hre
  • hungary
  • japan
  • malaysia
  • norway
  • ottoman
  • poland
  • russia
predecessor = For use in succession whose titles are entirely and directly hereditary. Link should be piped as appropriate — when it is reasonably clear that the person in context is a (e.g.) King of Scots, he may be linked as "James II" rather than "James II of Scotland".
pre-type = Optional alternative text for 'Predecessor' (dependent upon "predecessor")
regent = Any regents of the monarch in their role in this succession only; listed by most common name/title, most recent first, with line breaks (<br />)
reg-type = Optional alternative text for 'Regent' (dependent upon "regent")
successor = As predecessor, mutatis mutandis
suc-type = Optional alternative text for 'Successor'. e.g. 'Heir-Apparent' or 'Heir-Presumptive' (dependent upon "successor")
"succession" to "suc-type" repeated as "successionX" to "suc-typeX" for 1–3
spouse fields
consort =
  • yes, if the subject is the consort of any monarch — effects "reign"
  • no, which is the default if the field is omitted
spouse = Husbands/wives only; listed by most common name/title, in chronological order, with line breaks (<br />), and dates if needed, e.g. (m. 2004; div. 2006; dec. 2007; wid. 2008). Break dates onto a new line if more visually appropriate
spouse-type = Optional alternative text for 'Spouse' (no plurals needed)
repeated as "spouseX" and "spouseX-type" for 1–4
issue = Descending in order of birth, separated by line breaks (<br />); listed by name and highest shorthand title (e.g. Prince Edward, Earl of Wessex), no need for preceding styles (e.g. HM). Individuals without articles and/or who died as infants may be omitted from the list on an arbitrary basis. See also note for 'predecessor'.
issue-link = Creates small link to a section in the article for further details on offspring (dependent upon "issue")
issue-pipe = Changes the output text of the above link (dependent upon "issue-link")
full name = English/Anglicised full legal non-titular name (current/most recent), with maiden name '(née Whatever)' and translation in their native/official tongue(s) on a new line (each) underneath (use a ''{{lang-XX|}}'' Multilingual support template)

era name =

For Asian era names, wikilinked if appropriate (dependent upon "era dates")
era dates = The dates of the monarch's era (per the above)
regnal name = The monarch's regnal name
posthumous name = The posthumous name given to monarchs in certain traditions
temple name = As "posthumous name" m.m.
house = The Houses, Dynasties, or Families to which the subject belonged/s (by birth, marriage or otherwise), listed chronologically first to last, with line breaks (e.g. House of Saxe-Coburg and Gotha]<br />) (formerly called "house name" and listed last to first — it is strongly recommended that, for clarity, (by birth/marriage) or similar be included after each House's link)
house-type = Optional alternative text for 'Royal house', such as 'Dynasty' or 'Family' (dependent upon "house")
father = Most common shorthand title, no need for preceding styles (e.g. HM). May include multiple individuals, such as (Biological), (Adoptive) or (Hanai). See also note for 'predecessor'.
mother = As "father", m.m.
birth_date =
birth_place = Residence, Town/City/County/Region/Country (although almost invariably Country is obvious) HOWEVER, TAKE CARE TO AVOID FLAGCRUFT (dependent upon "date of birth")
death_date =
death_place = See "birth_place", m.m. (dependent upon "death_date")
burial_date = See "birth_date", m.m.
burial_place = See "birth_place", m.m. (dependent upon "burial_place")
occupation = Primary non-royal occupations, listed most recent first (if the subject is deceased there's no need for 'prev.') e.g. 'Theatre; prev. Broadcasting' (alive), or 'Military; Author' (dead)
signature_type = A label to replace the default 'Signature', e.g. Tughra for Ottoman sultans
signature = X.jpg, being an image of the subject's personal signature
signature_alt = Alt text for signature
religion = The subject's religion(s) — may be listed with dates (in chronological order) if applicable

Notes

Peer wikilinks
The wikilinks of substantive peers (or those in another kind of numbered succession) should always show that number (eg Richard, 1st Earl of Cornwall rather than Richard, Earl of Cornwall), unless other conventions say otherwise (such as that one should always see Prince Edward, Duke of Kent, never Prince Edward, 2nd Duke of Kent). Generally, use the article's title, omitting surplus fore- and surnames or disambiguation.

Microformats

The HTML markup produced by this template includes an hCard microformat, which makes the person's details parsable by computers, either acting automatically to catalogue articles across Misplaced Pages or via a browser tool operated by a reader, to (for example) add the subject to an address book or database. For more information about the use of microformats on Misplaced Pages, please see the microformat project.

Sub-templates

Date-of-birth ("bday") information will only be included in the microformat if {{birth date}}, or {{birth date and age}} are used in the infobox. (Do not use these if the date is before 1583). Be cautious about using these if the person is still living, per WP:DOB.

To include a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • bday
  • birthplace
  • category
  • country-name
  • deathdate
  • deathplace
  • extended-address
  • family-name
  • fn (required)
  • given-name
  • honorific-prefix
  • honorific-suffix
  • label
  • locality
  • n
  • nickname
  • note
  • org
  • role
  • url
  • vcard

Please do not rename or remove these classes nor collapse nested elements which use them.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Infobox royalty in articles based on its TemplateData.

TemplateData for Infobox royalty

Parameter names cannot be empty. To document unnamed parameters use their internal numbers "1", "2", and so on.

See also