Шаблон:S-hou/doc: различия между версиями

Перейти к навигации Перейти к поиску
Нет описания правки
Строка 1: Строка 1:
#REDIRECT [[Шаблон:ПозКарта Испания Альмерия]]
{{Docpage}}
{{устаревший шаблон|государственный деятель}}
 
This template creates a template topper to be used with [[Шаблон:S-start/doc|succession boxes]] for members of important families or dynasties
 
== Usage ==
 
=== Without parameter ===
The template defaults to PAGENAME and a break 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.
 
{{s-start}}
{{s-hou}}
| <code><nowiki>{{s-hou}}</nowiki></code>
{{s-end}}
 
=== With parameter ===
The format is <code><nowiki>{{</nowiki>s-hou|''parameter''|''parameter''|''parameter''|''parameter''|''parameter''|''parameter''|''name''}}</code>, where ''parameter'' is replaced by one of the parameter names shown in the following table.
 
1 = Person’s family name or regnal house<br>
2 = Person’s birth day<br>
3 = Person’s birth year<br>
4 = Person’s death day<br>
5 = Person’s death year<br>
6 = Person’s senior family name (if house is a part of a [[cadet branch]])<br>
name = The person’s name if it is not the same as the page title (this option is not required if the pagename fits the individual perfectly)
 
;Combinations:
 
{{tl|start}}
{{s-hou|Royal House|birth day|birth year|death day|death year|Senior house|name=Individual's name}}
| <code><nowiki>{{s-hou|Royal House|birth day|birth year|death day|death year|Senior house|name=Individual's name}}</nowiki></code>
 
{{s-hou|Royal House|birth day|birth year|death day|death year|name=Individual's name}}
| <code><nowiki>{{s-hou|Royal House|birth day|birth year|death day|death year}}</nowiki></code>
 
{{s-hou|Royal House||birth year||death year|name=Individual's name}}
| <code><nowiki>{{s-hou|Royal House|</nowiki><noinclude>''left blank''</noinclude><nowiki>|birth year|</nowiki><noinclude>''left blank''</noinclude><nowiki>|death year}}</nowiki></code>
 
{{s-hou|Royal House|birth day|birth year|name=Individual's name}}
| <code><nowiki>{{s-hou|Royal House|birth day|birth year|</nowiki><noinclude>''left blank''</noinclude><nowiki></nowiki><noinclude>}}</code>
 
{{s-hou|Royal House|||death day|death year|name=Individual's name}}
| <code><nowiki>{{s-hou|Royal House|</nowiki><noinclude>''left blank''</noinclude><noinclude><nowiki>|</nowiki><noinclude>''left blank''</noinclude><noinclude><nowiki>|death day|death year}}</nowiki></code>
 
{{s-hou|Royal house|||||Senior house|name=Individual's name}}
| <code><nowiki>{{s-hou|Royal house|</nowiki><noinclude>''left blank''</noinclude><noinclude><nowiki>|</nowiki><noinclude>''left blank''</noinclude><noinclude><nowiki>|</nowiki><noinclude>''left blank''</noinclude><noinclude><nowiki>|</nowiki><noinclude>''left blank''</noinclude><noinclude><nowiki>|Senior house|name=Individual's name}}</nowiki></code>
 
{{s-hou|Royal house|name=Individual's name}}
| <code><nowiki>{{s-hou|Royal house}}</nowiki></code>
{{end}}
 
This template should ALWAYS be followed with a succession list and requires the bookend templates, [[Шаблон:start]] and [[Шаблон:End]] or [[Шаблон:s-ref]], to work properly.
 
== Example ==
From the [[Henry VIII of England]] article:
<pre style="font-size:95%; overflow:auto;">
{{s-start}}
{{s-hou | [[House of Tudor]]| 28 June | 1491 | 28 January | 1547 }}
{{tl|s-reg}}
{{s-bef | before = [[Henry VII of England|Henry VII]] }}
{{s-ttl | title = [[List of English monarchs|King of England]] | years = 22 April 1509 – 28 January 1547 }}
{{s-aft | after = [[Edward VI of England|Edward VI]] }}
{{s-end}}
</pre>
{{s-start}}
{{s-hou | [[House of Tudor]] | 28 June | 1491 | 28 January | 1547 | name = Henry VIII of England}}
{{tl|s-reg}}
{{s-bef | before = [[Henry VII of England|Henry VII]] }}
{{s-ttl | title = [[List of English monarchs|King of England]] | years = 22 April 1509 – 28 January 1547 }}
{{s-aft | after = [[Edward VI of England|Edward VI]] }}
{{s-end}}
 
== See also ==
Documentation for creating succession boxes can be found at [[Шаблон:S-start/doc]].
 
{{rq|translate|topic=template}}
<includeonly>
[[Категория:ЭАНМ:Шаблоны-карточки:Наследование]]
[[Категория:Навигационные шаблоны:Заголовки для последовательностей]]
 
[[en:Template:S-hou]]
[[ca:Plantilla:S-hou]]
[[sl:Predloga:S-hou]]
[[tr:Şablon:S-hou]]
</includeonly>