Difference between revisions of "Template:Succession"
Jump to navigation
Jump to search
(Add xxxx-raw parameters) |
(Make "hdg" optional; document "term" parameter) |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{| class="wikitable"</noinclude> | {| class="wikitable"</noinclude> | ||
| − | |- | + | {{#if:{{{hdg|}}}| |
| − | !colspan="2" | + | {{!-}} |
| − | {{#if:{{{term|}}}| | + | !colspan="2"{{!}}{{{hdg}}}| |
| + | }} | ||
| + | {{#if:{{{term|}}}|<small style="font-weight:normal">(Term {{{term}}})</small>|}} | ||
|- | |- | ||
|Succeeded||{{#if:{{{succ-raw|}}}|{{{succ-raw}}}|{{#if:{{{succ|}}}|[[{{{succ}}}]]|—}}}} | |Succeeded||{{#if:{{{succ-raw|}}}|{{{succ-raw}}}|{{#if:{{{succ|}}}|[[{{{succ}}}]]|—}}}} | ||
| Line 11: | Line 13: | ||
{{TemplateDoc|pages=Articles, inside infoxes|purpose=Succession links in infoboxes}} | {{TemplateDoc|pages=Articles, inside infoxes|purpose=Succession links in infoboxes}} | ||
{{Parms| | {{Parms| | ||
| − | {{parm|hdg|Heading of this section of infobox| | + | {{parm|hdg|Heading of this section of infobox|no|}} |
| + | {{parm|term|n-th term of office|no}} | ||
{{parm|succ|Person this person succeeded|no|Defaults to a dash}} | {{parm|succ|Person this person succeeded|no|Defaults to a dash}} | ||
{{parm|succ-raw|Person this person succeeded|no|See note A}} | {{parm|succ-raw|Person this person succeeded|no|See note A}} | ||
Revision as of 07:53, July 10, 2007
| Succeeded | — |
| Preceded | — |
| Template: Succession | |
|---|---|
| Use on | Articles, inside infoxes |
| Use for | Succession links in infoboxes |
| Category template applies to page | (none) |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| hdg | Heading of this section of infobox | no | |
| term | n-th term of office | no | |
| succ | Person this person succeeded | no | Defaults to a dash |
| succ-raw | Person this person succeeded | no | See note A |
| succ | Person this person succeeded | no | Defaults to a dash |
| prec-raw | Person this person preceded | no | See note A |
NOTE A: Parameters of the form xxxx-raw are alternatives to the non-raw form. These should be used instead of the non-raw form to (a) provide links where the article name is different to the displayed name, or (b) where a link is not wanted. For example, if the capital of a country is Washington, but the page name for that capital is Washington D.C., then you would type capital-raw=[[Washington D.C.|Washington]]. If, instead, the page name is simply Washington, then capital=Washington is all that is needed, and will automatically be linked. If both non-raw and raw forms are supplied, the non-raw form will be ignored.