Template:Infobox king: Difference between revisions

From Guild of Archivists
mNo edit summary
(Replaced manual table with infobox template. Moving documentation to separate page.)
Line 1: Line 1:
<includeonly>
{{Infobox
{| class="infobox"
| bodyclass = archivists
! colspan="2" style="text-align: center;font-size:1.1em;" | {{{name}}}
| title = {{{name|{{PAGENAME}}}}}
|-
| image = {{ #if: {{{image|}}} | [[File:{{{image}}}|200px]] }}
|class="center" colspan="2"|{{{image|}}}
| caption = {{{imagecaption|}}}
|-
! Race
| {{{race|unknown}}}
|-
!style="background-color: #ccc;font-weight:bold;text-align:center;" colspan="2"| {{{ordinal}}} [[List of D'ni Kings|King of D'ni]]
|-
! Reign
| {{{reign}}}
|-
! Coronation
| {{{coronation-date}}}
|-
! Preceded by
| {{{predecessor|''none''}}}
|-
! Succeeded by
| {{{successor|''none''}}}
|-
!style="background-color: #ccc;font-weight:bold;text-align:center;" colspan="2"| Personal details
|-
! Born
| {{{born|unknown}}}
|-
! Died
| {{{died|unknown}}}
|- {{#if: {{{father|}}} | | style="display: none;" }}
! Father
| {{{father}}}
|- {{#if: {{{mother|}}} | | style="display: none;" }}
! Mother
| {{{mother}}}
|- {{#if: {{{spouse|}}} | | style="display: none;" }}
! Spouse
| {{{spouse}}}
|- {{#if: {{{children|}}} | | style="display: none;" }}
! Children
| {{{children}}}
|-
! Name in [[D'ni (language)|D'ni]]
| {{{dni-name}}}
|}
</includeonly>
<noinclude>
==Usage==
Include this template when creating an article about a D'ni King. This is a specialized version of the generic [[Template:Sidebar-person]] template. Below is a list of all parameters and how they should be used.


{| class="wikitable"
| label1 = Race
! name
| data1 = {{{race|unknown}}}
| The name of the king as used in the page title.
 
|-
| header2 = {{{ordinal}}} [[List of D'ni Kings|King of D'ni]]
! image
 
| ''Optional''<br />An image of the king, if available. Be sure to caption the image with the game or other media it's from, and set the size to 200px.
| label3 = Reign
|-
| data3 = {{{reign}}}
! race
 
| The character's race. For characters of mixed lineage, list their races by approximate fraction (e.g. 1/2 [[D'ni (race)|D'ni]], 1/2 Human)
| label4 = Coronation
|-
| data4 = {{{coronation-date}}}
! ordinal
 
| Use this to indicate which king it is (e.g. "Twentieth").
| label5 = Preceded by
|-
| data5 = {{{predecessor|''none''}}}
! reign
 
| The beginning and ending dates of the king's rule.
| label6 = Succeeded by
|-
| data6 = {{{successor|''none''}}}
! coronation-date
 
| The date, with as much accuracy as possible, when the king was coronated.
| header7 = Personal details
|-
 
! predecessor
| label8 = Born
| Link to the previous king. If no predecessor is available, leave blank and "none" will be used.
| data8 = {{{born|unknown}}}
|-
 
! successor
| label9 = Died
| Link to the next king. If no successor is available, leave blank and "none" will be used.
| data9 = {{{died|unknown}}}
|-
 
! born
| label10 = Father
| The date of the person's birth. If left blank, "unknown" will be included automatically.
| data10 = {{{father|}}}
|-
 
! died
| label11 = Mother
| The date of the person's death. If left blank, "unknown" will be included automatically.
| data11 = {{{mother|}}}
|-
 
! father
| label12 = Spouse
| ''Optional''<br />The person's father, if known.
| data12 = {{{spouse|}}}
|-
 
! mother
| label13 = Children
| ''Optional''<br />The person's mother, if known.
| data13 = {{{children|}}}
|-
 
! spouse
| label14 = Name in [[D'ni (language)|D'ni]]
| ''Optional''<br />The person's spouse, if known.
| data14 = <d'ni>{{{dni-name}}}</d'ni>
|-
}}<noinclude>
! children
 
| ''Optional''<br />If this person had any children, list them here.
{{documentation}}
|-
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
! dni-name
| Provide the text of the king's name using the [[Help:Using the D'ni font|D'ni font]] transliteration, and it will be included in D'ni text.
|}
</noinclude>
</noinclude>

Revision as of 05:44, 5 August 2016

Infobox king
Race unknown
{{{ordinal}}} King of D'ni
Reign {{{reign}}}
Coronation {{{coronation-date}}}
Preceded by none
Succeeded by none
Personal details
Born unknown
Died unknown
Name in D'ni <d'ni>{{{dni-name}}}</d'ni>
Template documentation[view] [edit] [history] [purge]

Usage

Include this template when creating an article about a D'ni King. This is a specialized version of the generic {{Infobox person}} template. Below is a list of all parameters and how they should be used.

name Optional
The name of the king as used in the page title. By default this will use the page name if not provided.
image Optional
An image of the king, if available. Be sure to caption the image with the game or other media it's from, and set the size to 200px.
race The character's race. For characters of mixed lineage, list their races by approximate fraction (e.g. 1/2 D'ni, 1/2 Human)
ordinal Use this to indicate which king it is (e.g. "Twentieth").
reign The beginning and ending dates of the king's rule.
coronation-date The date, with as much accuracy as possible, when the king was coronated.
predecessor Link to the previous king. If no predecessor is available, leave blank and "none" will be used.
successor Link to the next king. If no successor is available, leave blank and "none" will be used.
born The date of the person's birth. If left blank, "unknown" will be included automatically.
died The date of the person's death. If left blank, "unknown" will be included automatically.
father Optional
The person's father, if known.
mother Optional
The person's mother, if known.
spouse Optional
The person's spouse, if known.
children Optional
If this person had any children, list them here.
dni-name Provide the text of the king's name using the D'ni font transliteration, and it will be included in D'ni text.