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 23:20, 9 March 2009 view sourceDBD (talk | contribs)Autopatrolled, Extended confirmed users, New page reviewers, Pending changes reviewers, Rollbackers85,557 editsm Usage← Previous edit Revision as of 20:10, 11 March 2009 view source J JMesserly (talk | contribs)Extended confirmed users9,138 edits birth and death date syntax changeNext edit →
Line 270: Line 270:
| style="align: right; text-align: right; vertical-align: top;" | date of birth = | style="align: right; text-align: right; vertical-align: top;" | date of birth =
| |
*for dead persons, <nowiki>{{birth date|yyyy|mm|dd|df=yes}}</nowiki> (''m.m.'' per ] and ]) *for dead persons, <nowiki>{{Birth-date| birth date }}</nowiki> (''m.m.'' per ] and ])
*for living persons aged 3 years or over, <nowiki>{{birth date and age|yyyy|mm|dd|df=yes}}</nowiki> (''m.m.'' per ] and ]) *for living persons aged 3 years or over, <nowiki>{{Birth-date and age| birth date }}</nowiki> (''m.m.'' per ] and ])
*for living persons up to 3 years old, <nowiki>{{birth date|yyyy|mm|dd|df=yes}} (age {{age for infant|abbr=yes|yyyy|mm|dd|df=yes}})</nowiki> (''m.m.'' per ], ] and ]) *for living persons up to 3 years old, <nowiki>{{Birth-date| birth date }} (age {{age for infant|abbr=yes|yyyy|mm|dd|df=yes}})</nowiki> (''m.m.'' per ], ] and ])
|- |-
| style="align: right; text-align: right; vertical-align: top;" | place of birth = | style="align: right; text-align: right; vertical-align: top;" | place of birth =
Line 288: Line 288:
| style="align: right; text-align: right; vertical-align: top;" | date of death = | style="align: right; text-align: right; vertical-align: top;" | date of death =
| |
*for those who died aged 3 years old or over, <nowiki>{{death date and age|YYYY|MM|DD|yyyy|mm|dd|df=yes}}</nowiki> (dd/mm/yyyy being DoB; ''m.m.'' per ] and ]) *for those who died aged 3 years old or over, <nowiki>{{Death-date and age| death date | birth date }}</nowiki> (dd/mm/yyyy being DoB; ''m.m.'' per ] and ])
*for those who died aged under 3 years old, <nowiki>{{death date|YYYY|MM|DD|df=yes}} (aged {{age for infant|abbr=yes|yyyy|mm|dd|YYYY|MM|DD|df=yes}})</nowiki> (dd/mm/yyyy being DoB; ''m.m.'' per ], ] and ]) *for those who died aged under 3 years old, <nowiki>{{Death-date| death date }} (aged {{age for infant|abbr=yes|yyyy|mm|dd|YYYY|MM|DD|df=yes}})</nowiki> (dd/mm/yyyy being DoB; ''m.m.'' per ], ] and ])
|- |-
| style="align: right; text-align: right; vertical-align: top;" | place of death = | style="align: right; text-align: right; vertical-align: top;" | place of death =

Revision as of 20:10, 11 March 2009

Template:Template doc page Blurb

Usage

Empty example

{{Infobox Royalty
| type =
| consort = 
| name = 
| native name = 
| title = 
| titletext = 
| more = 
| image = 
| imgw = 
| 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 = 
| spouse1 =
| spouse-type1 = 
| spouse2 =
| spouse-type2 = 
| spouse3 =
| spouse-type3 = 
| spouse4 =
| spouse-type4 = 
| issue = 
| issue-link = 
| issue-pipe = 
| full name = 
| styles = 
| era name = 
| era dates = 
| posthumous name = 
| temple name =
| house = 
| house-type = 
| anthem = 
| anthem-type = 
| father = 
| mother = 
| date of birth = 
| place of birth = 
| date of christening = 
| place of christening = 
| christening-type =
| date of death = 
| place of death = 
| date of burial = 
| place of burial = 
| occupation = 
| signature = 
| religion =
}}

Notes

A note on 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.

Parameters

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

type =
  • monarch
  • majesty
consort =
  • yes, if the subject is the consort of any monarch — effects "spouse"
  • no, which is the default if the field is omitted
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.)
native name = Most common name in the subject's native tongue, especially if it's in another alphabet/script
title = Principal title(s) in use (e.g. King of England; prev. Duke of Edinburgh, Prince Henry of Wales (without preliminary style (e.g. HRH))) (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:
imgw = A value for the width of the image; for images smaller than the default width of 210px (e.g. "120" (no units (e.g. px)); dependent upon "image")
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")
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
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); "consort"=yes (above) produces 'Consort to' here (dependent upon "spouse", effected by "consort")
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)
styles = A list of all primary common shorthand title through time, with preceding styles (shortened forms, e.g. HH not His Highness; The Hon not The Honourable; Lady not The Lady), listed most recent first, with line breaks (<br />) (has the hidden deprecated alias "titles" from previous versions of T:IBR)

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)
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-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")
anthem = Any royal or personal anthem attached to the subject (formerly "royal anthem")
anthem-type = Optional alternative text for 'Royal anthem' (dependent upon "anthem")
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.
date of birth =
place of birth = Residence, Town/City/County/Region/Country (although almost invariably Country is obvious) HOWEVER, TAKE CARE TO AVOID FLAGCRUFT (dependent upon "date of birth")
date of christening = DD Month YYYY (or other appropriate format per MOS:DATE#Dates)
place of christening = See "place of birth", m.m. (dependent upon "date of christening")
christening-type = Optional alternative text for 'Baptised' (dependent upon "date of christening")
date of death =
place of death = See "place of birth", m.m. (dependent upon "date of death")
date of burial = See "date of christening", m.m.
place of burial = See "place of birth", m.m. (dependent upon "date of burial")
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 = X.jpg, being an image of the subject's personal signature
religion = The subject's religion(s) — may be listed with dates (in chronological order) if applicable

Microformats

hCard

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.

hCalendar

Template:UF-hcal-person

Categories: