| Line 11: |
Line 11: |
| | |To||{{2if1|{{{end-date|}}}|[[{{{end-date}}}]]}} {{2if1|{{{end-year|}}}|[[{{{end-year}}}]]}} | | |To||{{2if1|{{{end-date|}}}|[[{{{end-date}}}]]}} {{2if1|{{{end-year|}}}|[[{{{end-year}}}]]}} |
| | |- | | |- |
| − | |Succeeded||{{#if:{{{succ-raw|}}}|{{{succ-raw}}}|{{#if:{{{succ|}}}|[[{{{succ}}}]]|—}}}} | + | |Succeeded||{{#if:{{{prev-raw|}}}|{{{prev-raw}}}|{{#if:{{{prev|}}}|[[{{{prev}}}]]|—}}}} |
| | |- | | |- |
| − | |Preceded||{{#if:{{{prec-raw|}}}|{{{prec-raw}}}|{{#if:{{{prec|}}}|[[{{{prec}}}]]|—}}}} | + | |Preceded||{{#if:{{{next-raw|}}}|{{{next-raw}}}|{{#if:{{{next|}}}|[[{{{next}}}]]|—}}}} |
| | <noinclude>|} | | <noinclude>|} |
| | {{TemplateDoc|pages=Articles, inside infoxes|purpose=Succession links in infoboxes}} | | {{TemplateDoc|pages=Articles, inside infoxes|purpose=Succession links in infoboxes}} |
| Line 23: |
Line 23: |
| | {{parm|end-date|Date (not year) of end of term|no|}} | | {{parm|end-date|Date (not year) of end of term|no|}} |
| | {{parm|end-year|Year of end of term|no|}} | | {{parm|end-year|Year of end of term|no|}} |
| − | {{parm|succ|Person this person succeeded|no|Defaults to a dash}} | + | {{parm|prev|Previous person in this succession|no|Defaults to a dash}} |
| − | {{parm|succ-raw|Person this person succeeded|no|See note A}} | + | {{parm|prev-raw|Previous person in this succession|no|See note A}} |
| − | {{parm|succ|Person this person succeeded|no|Defaults to a dash}} | + | {{parm|next|Next person in this succession|no|Defaults to a dash}} |
| − | {{parm|prec-raw|Person this person preceded|no|See note A}} | + | {{parm|next-raw|Next person in this succession|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 {{tt|<nowiki>capital-raw=[[Washington D.C.|Washington]]</nowiki>}}. If, instead, the page name is simply ''Washington'', then {{tt|<nowiki>capital=Washington</nowiki>}} 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. | | '''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 {{tt|<nowiki>capital-raw=[[Washington D.C.|Washington]]</nowiki>}}. If, instead, the page name is simply ''Washington'', then {{tt|<nowiki>capital=Washington</nowiki>}} 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. |
| | </noinclude> | | </noinclude> |