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

en>Celia Homeford
(Example)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 11:03, 21 October 2018

Lua error: Internal error: The interpreter exited with status 127. Lua error: Internal error: The interpreter exited with status 127.

This template may be used for anyone having royal connections. This template is only for historic biographies and must not be used for mythical / legendary characters or creatures. You can use other templates like {{Infobox character}} for them.

Blank syntax

Lua error: Internal error: The interpreter exited with status 127.

{{Infobox royalty
| embed          = 
| name           = 
| title          = 
| titletext      = 
| more           = 
| type           = 
| image          = 
| image_size     = 
| alt            = 
| caption        = 

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

| succession1    = 
| moretext1      = 
| reign1         = 
| reign-type1    = 
| coronation1    = 
| cor-type1      = 
| predecessor1   = 
| pre-type1      = 
| successor1     = 
| suc-type1      = 
| regent1        = 
| reg-type1      = 

| succession2    = 
| moretext2      = 
| reign2         = 
| reign-type2    = 
| coronation2    = 
| cor-type2      = 
| predecessor2   = 
| pre-type2      = 
| successor2     = 
| suc-type2      = 
| regent2        = 
| reg-type2      = 

| succession3    = 
| moretext3      = 
| reign3         = 
| reign-type3    = 
| coronation3    = 
| cor-type3      = 
| predecessor3   = 
| pre-type3      = 
| successor3     = 
| suc-type3      = 
| regent3        = 
| reg-type3      = 

<!-- succession4 to succession9 are also available -->   

| birth_name     = 
| birth_date     = <!-- For Gregorian dates: {{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_place   = 
| spouse         = 
| spouse-type    = 
| consort        = <!-- yes or no -->
| issue          = <!--list children in order of birth. Use {{plainlist}} or {{unbulleted list}} -->
| issue-link     = 
| issue-pipe     = 
| issue-type     = 
| full name      = 
| era name       = 
| era dates      = 
| regnal name    = 
| posthumous name= 
| temple name    = 
| house          = 
| house-type     = 
| father         = 
| mother         = 

| religion       =
| occupation     = 
| signature_type = 
| signature      = 

| module         = 
}}

Example

Lua error: Internal error: The interpreter exited with status 127.Lua error: Internal error: The interpreter exited with status 127.

{{Infobox royalty
| name = Henry VIII
| image = Workshop of Hans Holbein the Younger - Portrait of Henry VIII - Google Art Project.jpg
| caption = {{longitem|Portrait by [[Hans Holbein the Younger]]<br/>(Walker Art Gallery, Liverpool).}}
| succession = {{hlist |[[List of English monarchs|King of England]] |[[List of Irish monarchs|Lord/King of Ireland]]}}
| moretext = ([[Style of the English sovereigns|more...]])
| reign = {{nowrap|21 April 1509 – 28 January 1547}}
| coronation = 24 June 1509
| predecessor = [[Henry VII of England|Henry VII]]
| successor = [[Edward VI of England|Edward VI]]
| spouses = {{plainlist|
* [[Catherine of Aragon]]
* [[Anne Boleyn]]
* [[Jane Seymour]]
* [[Anne of Cleves]]
* [[Catherine Howard]]
* [[Catherine Parr]]
}}
| issue = {{plainlist|
* [[Mary I of England]]
* [[Henry FitzRoy, 1st Duke of Richmond and Somerset|Henry Fitzroy]] ''(illegitimate)''
* [[Elizabeth I of England]]
* [[Edward VI of England]]
}}
| issue-link = #Marriages and issue
| issue-pipe = (among others)
| house = [[House of Tudor|Tudor]]
| father = [[Henry VII of England]]
| mother = [[Elizabeth of York]]
| birth_date = 28 June 1491
| birth_place = [[Palace of Placentia|Greenwich Palace]], [[Greenwich]]
| death_date = {{death date and age|1547|1|28|1491|6|28|df=yes}}
| death_place = [[Palace of Whitehall]], London
| burial_place = {{nowrap|[[St George's Chapel, Windsor Castle]]}}
| signature = HenryVIIISig.svg
| religion = {{longitem|Christian ([[Catholic Church|Roman Catholic]] then [[Anglo-Catholicism#History|Anglican]])}}
}}

Parameters

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

name / title / type / image
name = Most common name in English-language sources (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 text — 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
Lua error: Internal error: The interpreter exited with status 127.
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 text — 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:
Lua error: Internal error: The interpreter exited with status 127.
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, using {{unbulleted list}}.
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–9
birth_name = If different from name or full name
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_place = See "birth_place", m.m. (dependent upon "burial_place")
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, using {{unbulleted list}}, and dates if needed, e.g. (m. 2004; div. 2006). 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–9
issue = Children in order of birth, using {{unbulleted list}}; 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, using {{unbulleted list}} (e.g. {{unbulleted list|[[House of Saxe-Coburg and Gotha|Saxe-Coburg and Gotha]] | [[House of Windsor|Windsor]] }}) (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 (hānai). See also note for 'predecessor'.
mother = As "father", m.m.
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
signature_type = A label to replace the default 'Signature', e.g. Tughra for Ottoman sultans
signature_alt = Alt text for signature
religion = The subject's religion(s) may be listed with dates (in chronological order) if relevant, sourced and uncontroversial

Use as a child template

The embed parameter is used when embedding this infobox into another.

This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.

{{Infobox person
| name = 
| image = 
| caption = 
| birth_date = 
| birth_place = 
| <!-- etc. -->
| module = 
  {{Infobox royalty | embed=yes
  | parameter-1 = 
  | parameter-2 = 
  | parameter-3 = 
  | parameter-4 = 
  | <!-- etc. -->
  }}
}}

Embedding other templates

The module parameter is used for embedding other templates into this infobox (see Wikipedia:Infobox modules).

{{Infobox royalty
| name = 
| <!-- etc. -->
| module = 
  {{Infobox military person | embed=yes
  | <!-- etc. -->
  }}
}}

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 Wikipedia 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 Wikipedia, 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 documentation for this template used by VisualEditor and other tools; see the monthly error report for this template.

TemplateData for Infobox royalty

<templatedata>{

 "description": "An infobox for royalty.",
"params": {
 "name": {
     "label": "Name",
     "description": "Most common name in English-language sources.",
     "type": "string",
     "default": "",
     "required": false
   },
   "title": {
     "label": "Title",
     "description": "Principal substantive title(s) in use.",
     "type": "string",
     "default": "",
     "required": false
   },
   "titletext": {
     "label": "Titletext",
     "description": "An explanatory note about 'title', already in small text — such as a link to full titles (dependent upon 'title').",
     "type": "string",
     "default": "",
     "required": false
   },
   "more": {
     "label": "More",
     "description": "Automatically-generated alternative to 'titletext', only appears if 'titletext' is undefined/empty and 'realm' is defined.",
     "type": "string",
     "default": "",
     "required": false
   },
   "image": {
     "label": "Image",
     "description": "i.e. X.jpg, that is to say no [[Image:",
     "type": "string",
     "default": "",
     "required": false
   },
   "image_size ": {
     "label": "Image size ",
     "description": "Size to display image: 200px (set width), x300px (set height), or 200x300px (max width & max height).",
     "type": "string",
     "default": "220px",
     "required": false
   },
   "alt": {
     "label": "Alt",
     "description": "Alt text for the image.",
     "type": "string",
     "default": "",
     "required": false
   },
   "caption": {
     "label": "Caption",
     "description": "Details of artist and year.",
     "type": "string",
     "default": "",
     "required": false
   },
   "succession": {
     "label": "Succession",
     "description": "Primary substantive hereditary title (regarding the following fields, 'reign' 'til 'suc-type'; omit the 'title' field if the two would be identical)",
     "type": "string",
     "default": "",
     "required": false
   },
   "moretext": {
     "label": "moretext",
     "description": "An explanatory note about the 'succession', already in small text — such as a link to full titles (dependent upon 'succession')",
     "type": "string",
     "default": "",
     "required": false
   },
   "reign": {
     "label": "Reign",
     "description": "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))",
     "type": "string",
     "default": "",
     "required": false
   },
   "reign-type": {
     "label": "Reign-type",
     "description": "Optional alternative text for 'Reign' (dependent upon 'reign')",
     "type": "string",
     "default": "",
     "required": false
   },
   "coronation": {
     "label": "Coronation",
     "description": "D Month YYYY (or other appropriate format per MOS:DATE#Dates; for monarchs and their consorts)",
     "type": "string",
     "default": "",
     "required": false
   },
   "cor-type": {
     "label": "Coronation-type",
     "description": "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.",
     "type": "string",
     "default": "",
     "required": false
   },
   "predecessor": {
     "label": "Predecessor",
     "description": "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'.",
     "type": "string",
     "default": "",
     "required": false
   },
   "pre-type": {
     "label": "Predecessor-type",
     "description": "Optional alternative text for 'Predecessor' (dependent upon 'predecessor')",
     "type": "string",
     "default": "",
     "required": false
   },
   "regent": {
     "label": "Regent",
     "description": "Any regents of the monarch in their role in this succession only; listed by most common name/title, most recent first, using {{unbulleted list}}",
     "type": "string",
     "default": "",
     "required": false
   },
   "reg-type": {
     "label": "Regent-type",
     "description": "Optional alternative text for 'Regent' (dependent upon 'regent')",
     "type": "string",
     "default": "",
     "required": false
   },
   "successor": {
     "label": "Successor",
     "description": "As predecessor, mutatis mutandis",
     "type": "string",
     "default": "",
     "required": false
   },
   "suc-type": {
     "label": "Successor-type",
     "description": "Optional alternative text for 'Successor'. e.g. 'Heir apparent' or 'Heir presumptive' (dependent upon 'successor')",
     "type": "string",
     "default": "",
     "required": false
   },
   "birth_name": {
     "label": "Birth name",
     "description": "If different from name or full name.",
     "type": "string",
     "default": "",
     "required": false
   },
   "birth_date": {
     "label": "Birth date",
     "description": "for dead people with dates in the Gregorian calendar, Template:Birth date (m.m. per MOS:DATE#Dates and Template:Birth date), for living persons, Lua error: Internal error: The interpreter exited with status 127. (m.m. per MOS:DATE#Dates and Template:Birth date and age)",
     "type": "string",
     "default": "",
     "required": false
   },
   "birth_place": {
     "label": "Birth place",
     "description": "Residence, Town/City/County/Region/Country (although almost invariably Country is obvious) HOWEVER, TAKE CARE TO AVOID FLAGCRUFT (dependent upon 'date of birth')",
     "type": "string",
     "default": "",
     "required": false
   },
   "death_date": {
     "label": "Death date",
     "description": "for those who died aged 3 years old or over, Expression error: Unrecognized word "dd". YYYY(YYYY-Expression error: Unrecognized word "mm".-DD) (aged Lua error: Internal error: The interpreter exited with status 127.)Expression error: Unrecognized word "yyyy".Expression error: Unrecognized word "mm".Expression error: Unrecognized word "dd". (dd/mm/yyyy being DoB; m.m. per MOS:DATE#Dates and Template:Death date and age), for those who died aged under 3 years old, Template:Death date (aged Template:Age for infant) (dd/mm/yyyy being DoB; m.m. per MOS:DATE#Dates, Template:Death date and Template:age for infant)",
     "type": "string",
     "default": "",
     "required": false
   },
   "death_place": {
     "label": "Death place",
     "description": "See 'birth_place', m.m. (dependent upon 'death_date')",
     "type": "string",
     "default": "",
     "required": false
   },
   "burial_place": {
     "label": "Burial place",
     "description": "See 'birth_place', m.m. (dependent upon 'burial_place')",
     "type": "string",
     "default": "",
     "required": false
   },
   "consort": {
     "label": "Consort",
     "description": "yes, if the subject is the consort of any monarch — effects 'reign' no, which is the default if the field is omitted",
     "type": "string",
     "default": "",
     "required": false
   },
   "spouse": {
     "label": "Spouse",
     "description": "Husbands/wives only; listed by most common name/title, in chronological order, using {{unbulleted list}}, and dates if needed, e.g. (m. 2004; div. 2006). Break dates onto a new line if more visually appropriate.",
     "type": "string",
     "default": "",
     "required": false
   },
   "spouse-type": {
     "label": "Spouse-type",
     "description": "Optional alternative text for 'Spouse' (no plurals needed).",
     "type": "string",
     "default": "",
     "required": false
   },
   "issue": {
     "label": "Issue",
     "description": "Children in order of birth, separated using {{unbulleted list}}; 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'.",
     "type": "string",
     "default": "",
     "required": false
   },
   "issue-link": {
     "label": "Issue-link",
     "description": "Creates small link to a section in the article for further details on offspring (dependent upon 'issue')",
     "type": "string",
     "default": "",
     "required": false
   },
   "issue-pipe": {
     "label": "Issue-pipe",
     "description": "Changes the output text of the above link (dependent upon 'issue-link')",
     "type": "string",
     "default": "",
     "required": false
   },
   "full name": {
     "label": "Full name",
     "description": "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 Template:Lang-XX Multilingual support template)",
     "type": "string",
     "default": "",
     "required": false
   },
   "era name": {
     "label": "Era name",
     "description": "For Asian era names, wikilinked if appropriate (dependent upon 'era dates')",
     "type": "string",
     "default": "",
     "required": false
   },
   "era dates": {
     "label": "Era dates",
     "description": "The dates of the monarch's era (per the above)",
     "type": "string",
     "default": "",
     "required": false
   },
   "regnal name": {
     "label": "Regnal name",
     "description": "The monarch's regnal name",
     "type": "string",
     "default": "",
     "required": false
   },
   "posthumous name": {
     "label": "Posthumous name",
     "description": "The posthumous name given to monarchs in certain traditions",
     "type": "string",
     "default": "",
     "required": false
   },
   "temple name": {
     "label": "Temple name",
     "description": "As 'posthumous name' m.m.",
     "type": "string",
     "default": "",
     "required": false
   },
   "house": {
     "label": "House",
     "description": "The houses, dynasties, or families to which the subject belonged/s (by birth, marriage or otherwise), listed chronologically first to last, using {{unbulleted list}} (e.g. {{unbulleted list|[[House of Saxe-Coburg and Gotha]] | [[House of Windsor]] }}) (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)",
     "type": "string",
     "default": "",
     "required": false
   },
   "house-type": {
     "label": "House-type",
     "description": "Optional alternative text for 'Royal house', such as 'Dynasty' or 'Family' (dependent upon 'house')",
     "type": "string",
     "default": "",
     "required": false
   },
   "father": {
     "label": "Father",
     "description": "Most common shorthand title, no need for preceding styles (e.g. HM). May include multiple individuals, such as (biological), (adoptive) or (hānai). See also note for 'predecessor'.",
     "type": "string",
     "default": "",
     "required": false
   },
   "mother": {
     "label": "Mother",
     "description": "As 'father', m.m.",
     "type": "string",
     "default": "",
     "required": false
   },
   "occupation": {
     "label": "Occupation",
     "description": "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).",
     "type": "string",
     "default": "",
     "required": false
   },
   "signature ": {
     "label": "Signature",
     "description": "X.jpg, being an image of the subject's personal signature",
     "type": "string",
     "default": "",
     "required": false
   },
   "signature_type": {
     "label": "Signature type",
     "description": "A label to replace the default 'Signature', e.g. 'Tughra' for Ottoman sultans",
     "type": "string",
     "default": "",
     "required": false
   },
   "signature_alt": {
     "label": "Signature alt",
     "description": "Alt text for signature",
     "type": "string",
     "default": "",
     "required": false
   },
   "religion": {
     "label": "Religion",
     "description": "The subject's religion(s) may be listed with dates (in chronological order) if relevant, sourced and uncontroversial",
     "type": "string",
     "default": "",
     "required": false
   }
} 

}</templatedata>

Tracking categories

See also