Difference between revisions of "Template:PM"

From Conservapedia
Jump to navigation Jump to search
(Another bug)
m (Removed protection from "Template:PM")
 
(27 intermediate revisions by 7 users not shown)
Line 1: Line 1:
−
<includeonly>{| class="wikitable" style="float:right; font-size:85%"
+
<includeonly>
 +
{{Bio header
 +
|name={{{name|}}}
 +
|image={{{image|}}}
 +
|image-width={{{image-width|}}}
 +
|yob={{{yob|}}}
 +
|dob={{{dob|}}}
 +
|age={{{age|}}}
 +
|yod={{{yod|}}}
 +
|dod={{{dod|}}}
 +
|husband={{{husband|}}}
 +
|husband-raw={{{husband-raw|}}}
 +
|wife={{{wife|}}}
 +
|wife-raw={{{wife-raw|}}}
 +
}}
 
<!--
 
<!--
−
     NAME
+
     PARTY
 
-->
 
-->
−
{{!-}}
+
{{t row if|Party|{{{party|}}}|link=yes|col2txt={{{party-raw|}}}}}
−
!colspan="2"{{!}}<big>{{{name|{{PAGENAME}}}}}</big>
 
−
<!--
 
−
    BIRTH
 
−
-->
 
−
{{t row if|Date of birth|col2txt={{2if1|{{{dob|}}}{{{yob|}}}|[[{{{dob}}}]] [[{{{yob}}}]]}}}}
 
−
{{t row if|Birthplace|{{{birthplace|}}}|link=yes|col2txt={{{birthplace-raw|}}}}}
 
−
<!--
 
−
    DEATH
 
−
-->
 
−
{{t row if|Date of death|col2txt={{2if1|{{{dod|}}}{{{yod|}}}|[[{{{dod}}}]] [[{{{yod}}}]]}}}}
 
−
<!--
 
−
    SPOUSE
 
−
-->
 
−
{{t row if|Husband|{{{husband|}}}|col2txt={{{husband-raw|}}}}}
 
−
{{t row if|Wife|{{{wife|}}}|col2txt={{{wife-raw|}}}}}
 
 
<!--
 
<!--
 
     SUCCESSION
 
     SUCCESSION
 
-->
 
-->
−
{{!-}}
+
{{#if:{{{succ|}}}|{{{succ}}}}}
−
{{!}}Succeeded{{!}}{{!}}{{#if:{{{succ|}}}|[[{{{succ}}}]]|&mdash;}}
 
−
{{!-}}
 
−
{{!}}Preceded{{!}}{{!}}{{#if:{{{pred|}}}|[[{{{pred}}}]]|&mdash;}}
 
−
<!--
 
−
    PARTY
 
−
-->
 
−
{{t row if|Party|{{{party|}}}|link=yes|col2txt={{{party-raw|}}}}}
 
 
|}
 
|}
 
</includeonly><noinclude>
 
</includeonly><noinclude>
−
{{TemplateDoc|pages=Country articles|purpose=Info box|cat=}}
+
{{TemplateDoc|pages=Prime Minister articles|purpose=Info box|cat=}}
 
{{Parms|
 
{{Parms|
 
  {{Parm|name|name of Prime Minister|no|Defaults to page name}}
 
  {{Parm|name|name of Prime Minister|no|Defaults to page name}}
−
  {{Parm|yob|Year of birth|no|Is automatically linked|See note B}}
+
{{Parm|image|Name of image|no|}}
−
  {{Parm|dob|Date and Month of birth|no|Is automatically linked|See note B}}
+
{{Parm|image-width|Width of image|no|Defaults to 200px}}
−
  {{Parm|yod|Year of death|no|Is automatically linked|See note B}}
+
  {{Parm|yob|Year of birth|no|See note B}}
−
  {{Parm|dod|Date and month of death|no|Is automatically linked|See note B}}
+
  {{Parm|dob|Date and Month of birth|no|See note B}}
 +
{{Parm|birthplace|Place of birth|no}}
 +
  {{Parm|yod|Year of death|no|See note B}}
 +
  {{Parm|dod|Date and month of death|no|See note B}}
 
  {{Parm|husband|Name of husband|no|}}
 
  {{Parm|husband|Name of husband|no|}}
 
  {{Parm|husband-raw|Name of husband|no|See note A}}
 
  {{Parm|husband-raw|Name of husband|no|See note A}}
 
  {{Parm|wife|Name of wife|no}}
 
  {{Parm|wife|Name of wife|no}}
 
  {{Parm|wife-raw|Name of wife|no|See note A}}
 
  {{Parm|wife-raw|Name of wife|no|See note A}}
−
  {{Parm|pred|Name of previous Prime Minister|no|Is automaticall linked}}
+
  {{Parm|party|Name of party|no}}
−
  {{Parm|succ|Name of next Prime Minister|no|Is automaticall linked}}
+
{{Parm|party-raw|Name of party|no|See note A}}
 +
  {{Parm|succ|Predecessors and successors|no|One or more {{tl|Succession}} templates}}
 
}}
 
}}
−
'''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.
+
{{raw parm doc}}
 +
'''NOTE B:'''  The date of birth/death rows will display if ''either'' the year or date is provided. The full date (day of month, month, and year) should be provided for the sake of accuracy.
  
−
'''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.
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:11, June 23, 2021


Template: PM
Use on Prime Minister 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
image Name of image no
image-width Width of image no Defaults to 200px
yob Year of birth no See note B
dob Date and Month of birth no See note B
birthplace Place of birth no
yod Year of death no See note B
dod Date and month of death no See note B
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
party Name of party no
party-raw Name of party no See note A
succ Predecessors and successors no One or more {{Succession}} templates

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. The full date (day of month, month, and year) should be provided for the sake of accuracy.