Template:S-reg-ajax/doc: Difference between revisions

Jump to navigation Jump to search
(Created page with "|- ! colspan="3" style="border-top: 5px solid #ACE777;" | {{#if:{{{1}}}||Regnal titles}}{{#switch:{{{1}}} |#default={{#if:{{{1}}}|Regnal titles}} |ge=Nobility of Gelonia|G...")
 
No edit summary
 
Line 1: Line 1:
|-
{{Documentation subpage}}
! colspan="3" style="border-top: 5px solid #ACE777;" | {{#if:{{{1}}}||Regnal titles}}{{#switch:{{{1}}}
This template creates a header to be used with [[Template:S-start|succession boxes]] for [[regnal name]]s, titles of [[nobility]], and [[peerage]]. As all succession boxes, these only include actual successions; [[Life peer|life peerages]] are therefore excluded.
|#default={{#if:{{{1}}}|Regnal titles}}
 
|ge=[[Nobility of Gelonia|Gelonian nobility]]
==Usage==
|la=[[Peerages in Latium|Peerages of Latium]]
 
|sy-dm=[[Vassals of the Sydalene Crown|Sydalene nobility]]
=== Without parameter ===
|sy-pr=[[Nobility of Sydalon|Sydalene nobility]]
 
|other=Titles of nobility
The template defaults to {{s-start}}
}}<noinclude>
{{s-reg}}
{{documentation}}
{{s-end}} if no parameter is given. In the following table, the first column contains the header and the second column shows the template call used to create it.
<!-- Add categories and interwikis to the /doc subpage, not here. -->
 
</noinclude>
{{s-start}}
{{s-reg}}
| <code><nowiki>{{s-reg}}</nowiki></code>
{{s-end}}
 
=== With parameter ===
 
The format is <code><nowiki>{{</nowiki>s-reg|''parameter''}}</code>, where ''parameter'' is replaced by one of the parameter names shown in the following table. The first column displays the header and the second column contains the parameter name. Comments (if any) are shown in the third column.
 
{{s-start}}
{{s-reg|ge}}
| ge
{{s-reg|la}}
| la
{{s-reg|sy-dm}}
| sy-dm
{{s-reg|sy-pr}}
| sy-pr
{{s-reg|other}}
| other
{{s-end}}
 
== Example ==
 
From the [[Hirohito]] article:
<pre style="font-size:95%; width:95%; overflow:auto;">
{{s-start}}
{{s-reg}}
{{s-bef|before=[[Emperor Taishō|Emperor Taishō <br><small>(Yoshihito)</small>]]}}
{{s-ttl|title=[[List of Emperors of Japan|Emperor of Japan]]
      |years=December 25, 1926 – January 7, 1989}}
{{s-aft|after=[[Akihito|Akihito<br><small>present emperor</small>]]}}
{{s-end}}
</pre>
{{s-start}}
{{s-reg|}}
{{s-bef|before=[[Emperor Taishō|Emperor Taishō <br><small>(Yoshihito)</small>]]}}
{{s-ttl|title=[[List of Emperors of Japan|Emperor of Japan]]
      |years=December 25, 1926 – January 7, 1989}}
{{s-aft|after=[[Akihito|Akihito<br><small>present emperor</small>]]}}
{{s-end}}
 
== Former background colors ==
 
# <span style="background: #F9F9F9; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #F9F9F9 &ndash; added 7 December 2005<br/><br/>
# <span style="background: #FFDAB9; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #FFDAB9 &ndash; changed 7 December 2005<br/><br/>
# <span style="background: #EEDDFF; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #EEDDFF &ndash; changed 7 December 2005<br/><br/>
# <span style="background: #CCFFCC; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #CCFFCC &ndash; changed 7 December 2005<br/><br/>
# <span style="background: #8FBC8F; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #8FBC8F &ndash; changed 23 February 2007<br/><br/>
# <span style="background: #8ED874; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #8ED874 &ndash; changed 10 June 2007<br/><br/>
# <span style="background: #A3D874; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #A3D874 &ndash; changed 10 June 2007<br/><br/>
# <span style="background: #9BEC52; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #9BEC52 &ndash; changed 20 June 2007<br/><br/>
# <span style="background: #77DC1E; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #77DC1E &ndash; changed 20 June 2007<br/><br/>
# <span style="background: #91EB41; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #91EB41 &ndash; changed 20 June 2007<br/><br/>
# <span style="background: #B3DAA9; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #B3DAA9 &ndash; changed 25 July 2007<br/><br/>
# <span style="background: #ACE777; border: 1px #aaa solid; padding: 0.2em;">&nbsp;'''Regnal titles'''&nbsp;</span> &ndash; #ACE777 &ndash; current as of 27 July 2007<br/><br/>
 
== See also ==
* [[Template:S-hon]]
* Documentation for creating succession boxes can be found at [[Template:S-start]].
<includeonly>
[[Category:Succession header templates|{{PAGENAME}}]]
[[Category:Exclude in print]]
</includeonly>

Latest revision as of 00:35, 22 January 2019

This template creates a header to be used with succession boxes for regnal names, titles of nobility, and peerage. As all succession boxes, these only include actual successions; life peerages are therefore excluded.

Usage

Without parameter

The template defaults to

Regnal titles

if no parameter is given. In the following table, the first column contains the header and the second column shows the template call used to create it.

Regnal titles {{s-reg}}

With parameter

The format is {{s-reg|parameter}}, where parameter is replaced by one of the parameter names shown in the following table. The first column displays the header and the second column contains the parameter name. Comments (if any) are shown in the third column.

Regnal titles ge
Regnal titles la
Regnal titles sy-dm
Regnal titles sy-pr
Titles of nobility other

Example

From the Hirohito article:

{{s-start}}
{{s-reg}}
{{s-bef|before=[[Emperor Taishō|Emperor Taishō <br><small>(Yoshihito)</small>]]}}
{{s-ttl|title=[[List of Emperors of Japan|Emperor of Japan]]
       |years=December 25, 1926 – January 7, 1989}}
{{s-aft|after=[[Akihito|Akihito<br><small>present emperor</small>]]}}
{{s-end}}
Regnal titles
Preceded by
Emperor Taishō
(Yoshihito)
Emperor of Japan
December 25, 1926 – January 7, 1989
Succeeded by
Akihito
present emperor

Former background colors

  1.  Regnal titles  – #F9F9F9 – added 7 December 2005

  2.  Regnal titles  – #FFDAB9 – changed 7 December 2005

  3.  Regnal titles  – #EEDDFF – changed 7 December 2005

  4.  Regnal titles  – #CCFFCC – changed 7 December 2005

  5.  Regnal titles  – #8FBC8F – changed 23 February 2007

  6.  Regnal titles  – #8ED874 – changed 10 June 2007

  7.  Regnal titles  – #A3D874 – changed 10 June 2007

  8.  Regnal titles  – #9BEC52 – changed 20 June 2007

  9.  Regnal titles  – #77DC1E – changed 20 June 2007

  10.  Regnal titles  – #91EB41 – changed 20 June 2007

  11.  Regnal titles  – #B3DAA9 – changed 25 July 2007

  12.  Regnal titles  – #ACE777 – current as of 27 July 2007

See also