Difference between revisions of "Template:PM"
(Rename parameter) |
(Oops, missed one) |
||
| Line 25: | Line 25: | ||
{{!}}Succeeded{{!}}{{!}}{{#if:{{{succ|}}}|[[{{{succ}}}]]|—}} | {{!}}Succeeded{{!}}{{!}}{{#if:{{{succ|}}}|[[{{{succ}}}]]|—}} | ||
{{!-}} | {{!-}} | ||
| − | {{!}}Preceded{{!}}{{!}}{{#if:{{{prec|}}}|[[{{{ | + | {{!}}Preceded{{!}}{{!}}{{#if:{{{prec|}}}|[[{{{prec}}}]]|—}} |
<!-- | <!-- | ||
PARTY | PARTY | ||
Revision as of 05:15, July 10, 2007
| Template: PM | |
|---|---|
| Use on | Country articles |
| Use for | Info box |
| Category template applies to page | (none) |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| name | name of Prime Minister | no | Defaults to page name |
| yob | Year of birth | no | Is automatically linked |
| dob | Date and Month of birth | no | Is automatically linked |
| yod | Year of death | no | Is automatically linked |
| dod | Date and month of death | no | Is automatically linked |
| husband | Name of husband | no | |
| husband-raw | Name of husband | no | See note A |
| wife | Name of wife | no | |
| wife-raw | Name of wife | no | See note A |
| prec | Name of previous Prime Minister | no | Is automaticall linked |
| succ | Name of next Prime Minister | no | Is automaticall linked |
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.
NOTE B: The date of birth/death rows will display if either the year or date is provided, and will not display the information correctly if only one of the date or year are provided. So the full date (day of month, month, and year) need to be all provided or none provided.