Difference between revisions of "Template:President"

From Conservapedia
Jump to: navigation, search
(Sample Data Block: format example)
(add age template - hope I got the format right, it's tricky)
 
(36 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{| class="infobox bordered" style="float: right; margin: 0 0 0.5em 0.5em; text-align: left; font-size: 85%; margin-left:5px" border=0 align="right" cellpadding="2" cellspacing="0" width="250"
+
{| class="infobox bordered" style="border:2px solid black; float: width:23em; right; margin: 0 0 0.5em 0.5em; text-align: left; font-size: 85%; margin-left:5px" border=0 align="right" cellpadding="2" cellspacing="0" width="250"
 
|-
 
|-
!colspan="2" align="center" style="color: white; font-size: 120%; height: 20px; background: DarkOrchid no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''
+
!colspan="2" align="center" style="color: white; font-size: 120%; height: 20px; background: Royalblue no-repeat scroll top left;"| '''{{{name|{{PAGENAME}}}}}'''
 
|-
 
|-
 
<!----------Image---------->
 
<!----------Image---------->
Line 10: Line 10:
 
{{#ifeq: {{{office|}}} | vice |<!--then:-->
 
{{#ifeq: {{{office|}}} | vice |<!--then:-->
  
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: thistle no-repeat scroll top left;" <hr/>{{!}} '''{{#ifeq: {{#expr: {{{seq|}}} = 11 or {{{seq|}}} = 12 or {{{seq|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq|}}} mod 10}}| 1 | {{{seq|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq|}}} mod 10}} | 2 | {{{seq|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq|}}} mod 10}}| 3 | {{{seq|}}}<sup>rd</sup> | {{{seq|}}}<sup>th</sup>  }}  }} }} | {{{seq|}}}<sup>th</sup> }} Vice-President of {{{country|the United States}}}''' | <!--else-->
+
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: thistle no-repeat scroll top left;"{{!}} '''{{#ifeq: {{#expr: {{{seq|}}} = 11 or {{{seq|}}} = 12 or {{{seq|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq|}}} mod 10}}| 1 | {{{seq|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq|}}} mod 10}} | 2 | {{{seq|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq|}}} mod 10}}| 3 | {{{seq|}}}<sup>rd</sup> | {{{seq|}}}<sup>th</sup>  }}  }} }} | {{{seq|}}}<sup>th</sup> }} Vice-President of {{{country|the United States}}}''' | <!--else-->
  
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: plum no-repeat scroll top left;" <hr/>{{!}} '''{{#ifeq: {{#expr: {{{seq|}}} = 11 or {{{seq|}}} = 12 or {{{seq|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq|}}} mod 10}}| 1 | {{{seq|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq|}}} mod 10}} | 2 | {{{seq|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq|}}} mod 10}}| 3 | {{{seq|}}}<sup>rd</sup> | {{{seq|}}}<sup>th</sup>  }}  }} }} | {{{seq|}}}<sup>th</sup> }} President of {{{country|the United States}}}'''
+
{{!}}colspan="2" align="center" style="color: white; font-size: 120%; height: 24px; background: darkblue no-repeat scroll top left;"{{!}} '''{{#ifeq: {{#expr: {{{seq|}}} = 11 or {{{seq|}}} = 12 or {{{seq|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq|}}} mod 10}}| 1 | {{{seq|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq|}}} mod 10}} | 2 | {{{seq|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq|}}} mod 10}}| 3 | {{{seq|}}}<sup>rd</sup> | {{{seq|}}}<sup>th</sup>  }}  }} }} | {{{seq|}}}<sup>th</sup> }} President of {{{country|the United States}}}'''
 
}}
 
}}
 
}}
 
}}
Line 46: Line 46:
 
{{!-}}
 
{{!-}}
 
<!-----Successor---------->
 
<!-----Successor---------->
{{#if:{{{next|}}} | <!--then:-->
+
{{#if:{{{next|}}}| <!--then:-->
 
{{!}}'''Succeeded by'''
 
{{!}}'''Succeeded by'''
 
{{!}} [[{{{next|}}}]] |<!--else-->
 
{{!}} [[{{{next|}}}]] |<!--else-->
Line 54: Line 54:
 
{{#if:{{{seq2|}}} | <!--then:-->
 
{{#if:{{{seq2|}}} | <!--then:-->
 
{{#ifeq: {{{office2|}}} | vice |<!--then:-->
 
{{#ifeq: {{{office2|}}} | vice |<!--then:-->
 
+
{{!}}colspan="2" align="center" style="color: black ; font-size: 120%; height: 24px; background: thistle no-repeat scroll top left;"{{!}} '''{{#ifeq: {{#expr: {{{seq2|}}} = 11 or {{{seq2|}}} = 12 or {{{seq2|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}}| 1 | {{{seq2|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}} | 2 | {{{seq2|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}}| 3 | {{{seq2|}}}<sup>rd</sup> | {{{seq2|}}}<sup>th</sup>  }}  }} }}| {{{seq2|}}}<sup>th</sup> }} Vice-President of {{{country|the United States}}}''' |<!--else-->
{{!}}colspan="2" align="center" style="color: black ; font-size: 120%; height: 24px; background: thistle no-repeat scroll top left;" <hr/>{{!}} '''{{#ifeq: {{#expr: {{{seq2|}}} = 11 or {{{seq2|}}} = 12 or {{{seq2|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}}| 1 | {{{seq2|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}} | 2 | {{{seq2|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}}| 3 | {{{seq2|}}}<sup>rd</sup> | {{{seq2|}}}<sup>th</sup>  }}  }} }}| {{{seq2|}}}<sup>th</sup> }} Vice-President of {{{country|the United States}}}''' |<!--else-->
+
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: plum no-repeat scroll top left;"{{!}} '''{{#ifeq: {{#expr: {{{seq2|}}} = 11 or {{{seq2|}}} = 12 or {{{seq2|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}}| 1 | {{{seq2|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}} | 2 | {{{seq2|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}}| 3 | {{{seq2|}}}<sup>rd</sup> | {{{seq2|}}}<sup>th</sup>  }}  }} }}| {{{seq2|}}}<sup>th</sup> }} President of {{{country|the United States}}}'''}}}}
 
+
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: plum no-repeat scroll top left;" <hr/>{{!}} '''{{#ifeq: {{#expr: {{{seq2|}}} = 11 or {{{seq2|}}} = 12 or {{{seq2|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}}| 1 | {{{seq2|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}} | 2 | {{{seq2|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq2|}}} mod 10}}| 3 | {{{seq2|}}}<sup>rd</sup> | {{{seq2|}}}<sup>th</sup>  }}  }} }}| {{{seq2|}}}<sup>th</sup> }} President of {{{country|the United States}}}'''
+
}}
+
}}
+
 
{{!-}}
 
{{!-}}
 
<!----------Term---------->
 
<!----------Term---------->
Line 100: Line 96:
 
{{#ifeq: {{{office3|}}} |  vice | <!--then:-->
 
{{#ifeq: {{{office3|}}} |  vice | <!--then:-->
  
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: thistle no-repeat scroll top left;" <hr/>{{!}} '''{{#ifeq: {{#expr: {{{seq3|}}} = 11 or {{{seq3|}}} = 12 or {{{seq3|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}}| 1 | {{{seq3|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}} | 2 | {{{seq3|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}}| 3 | {{{seq3|}}}<sup>rd</sup> | {{{seq3|}}}<sup>th</sup>  }}  }} }}| {{{seq3|}}}<sup>th</sup> }} Vice-President of {{{country|the United States}}}''' |<!--else-->
+
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: thistle no-repeat scroll top left;"{{!}} '''{{#ifeq: {{#expr: {{{seq3|}}} = 11 or {{{seq3|}}} = 12 or {{{seq3|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}}| 1 | {{{seq3|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}} | 2 | {{{seq3|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}}| 3 | {{{seq3|}}}<sup>rd</sup> | {{{seq3|}}}<sup>th</sup>  }}  }} }}| {{{seq3|}}}<sup>th</sup> }} Vice-President of {{{country|the United States}}}''' |<!--else-->
  
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: plum no-repeat scroll top left;" <hr/>{{!}} '''{{#ifeq: {{#expr: {{{seq3|}}} = 11 or {{{seq3|}}} = 12 or {{{seq3|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}}| 1 | {{{seq3|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}} | 2 | {{{seq3|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}}| 3 | {{{seq3|}}}<sup>rd</sup> | {{{seq3|}}}<sup>th</sup>  }}  }} }}| {{{seq3|}}}<sup>th</sup> }} President of {{{country|the United States}}}'''
+
{{!}}colspan="2" align="center" style="color: black; font-size: 120%; height: 24px; background: plum no-repeat scroll top left;"{{!}} '''{{#ifeq: {{#expr: {{{seq3|}}} = 11 or {{{seq3|}}} = 12 or {{{seq3|}}} = 13 }} | 0 | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}}| 1 | {{{seq3|}}}<sup>st</sup> | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}} | 2 | {{{seq3|}}}<sup>nd</sup> | {{#ifeq: {{#expr: {{{seq3|}}} mod 10}}| 3 | {{{seq3|}}}<sup>rd</sup> | {{{seq3|}}}<sup>th</sup>  }}  }} }}| {{{seq3|}}}<sup>th</sup> }} President of {{{country|the United States}}}'''
 
}}
 
}}
 
}}
 
}}
Line 143: Line 139:
 
<!----------Life & death ---------->
 
<!----------Life & death ---------->
 
{{#if:{{{birth_date|}}} | <!--then:-->
 
{{#if:{{{birth_date|}}} | <!--then:-->
{{!}}colspan="2"{{!}}<hr/>
 
{{!-}}
 
 
{{!}} '''Born'''
 
{{!}} '''Born'''
{{!}} {{{birth_date}}} {{#if:{{{birth_place|}}} | <br>[[{{{birth_place|}}}]] | }}| <!--else-->
+
{{!}} {{{birth_date}}} {{#if:{{{birth_place|}}} |<br>[[{{{birth_place|}}}]] | }}| <!--else-->
 +
}}
 +
{{!-}}
 +
{{#if:{{{age|}}} | <!--then:-->
 +
{{!}} '''Age'''
 +
{{!}} {{{age}}}| <!--else-->
 
}}
 
}}
 
{{!-}}
 
{{!-}}
Line 164: Line 163:
 
{{!}} {{{religion}}} | <!--else-->
 
{{!}} {{{religion}}} | <!--else-->
 
}}
 
}}
{{!-}}
 
 
|}<noinclude>
 
|}<noinclude>
  
Line 250: Line 248:
 
The following may be copied and pasted at the top of the page being edited
 
The following may be copied and pasted at the top of the page being edited
 
<pre>
 
<pre>
<nowiki>{{</nowiki>President<br>
+
<nowiki>{{</nowiki>President
|name=<br>
+
|name=
|image=<br>
+
|image=
|office=<br>
+
|office=
|seq=<br>
+
|seq=
|country=<br>
+
|country=
|term_start=<br>
+
|term_start=
|term_end=<br>
+
|term_end=
|party=<br>
+
|party=
|vp=<br>
+
|vp=
|vp_dates=<br>
+
|vp_dates=
|2vp=<br>
+
|2vp=
|2vp_dates=<br>
+
|2vp_dates=
|3vp=<br>
+
|3vp=
|3vp_dates=<br>
+
|3vp_dates=
|4vp=<br>
+
|4vp=
|4vp_dates=<br>
+
|4vp_dates=
|pres=<br>
+
|pres=
|pres_dates=<br>
+
|pres_dates=
|2pres=<br>
+
|2pres=
|2pres_dates=<br>
+
|2pres_dates=
|3pres=<br>
+
|3pres=
|3pres_dates=<br>
+
|3pres_dates=
|4pres=<br>
+
|4pres=
|4pres_dates=<br>
+
|4pres_dates=
|previous=<br>
+
|previous=
|next=<br>
+
|next=
|office2=<br>
+
|office2=
|seq2=<br>
+
|seq2=
|term_start2=<br>
+
|term_start2=
|term_end2=<br>
+
|term_end2=
|party2=<br>
+
|party2=
|vp2=<br>
+
|vp2=
|vp_dates2=<br>
+
|vp_dates2=
|2vp2=<br>
+
|2vp2=
|2vp_dates2=<br>
+
|2vp_dates2=
|3vp2=<br>
+
|3vp2=
|3vp_dates2=<br>
+
|3vp_dates2=
|4vp2=<br>
+
|4vp2=
|4vp_dates2=<br>
+
|4vp_dates2=
|pres2=<br>
+
|pres2=
|pres_dates2=<br>
+
|pres_dates2=
|2pres2=<br>
+
|2pres2=
|2pres_dates2=<br>
+
|2pres_dates2=
|3pres2=<br>
+
|3pres2=
|3pres_dates2=<br>
+
|3pres_dates2=
|4pres2=<br>
+
|4pres2=
|4pres_dates2=<br>
+
|4pres_dates2=
|previous2=<br>
+
|previous2=
|next2=<br>
+
|next2=
|office3=<br>
+
|office3=
|seq3=<br>
+
|seq3=
|term_start3=<br>
+
|term_start3=
|term_end3=<br>
+
|term_end3=
|party3=<br>
+
|party3=
|vp3=<br>
+
|vp3=
|vp_dates3=<br>
+
|vp_dates3=
|2vp3=<br>
+
|2vp3=
|2vp_dates3=<br>
+
|2vp_dates3=
|3vp3=<br>
+
|3vp3=
|3vp_dates3=<br>
+
|3vp_dates3=
|4vp3=<br>
+
|4vp3=
|4vp_dates3=<br>
+
|4vp_dates3=
|pres3=<br>
+
|pres3=
|pres_dates3=<br>
+
|pres_dates3=
|2pres3=<br>
+
|2pres3=
|2pres_dates3=<br>
+
|2pres_dates3=
|3pres3=<br>
+
|3pres3=
|3pres_dates3=<br>
+
|3pres_dates3=
|4pres3=<br>
+
|4pres3=
|4pres_dates3=<br>
+
|4pres_dates3=
|previous3=<br>
+
|previous3=
|next3=<br>
+
|next3=
|birth_date=<br>
+
|birth_date=
|birth_place=<br>
+
|birth_place=
|birth_date=<br>
+
|birth_date=
|birth_place=<br>
+
|birth_place=
|death_date=<br>
+
|death_date=
|death_place=<br>
+
|death_place=
|spouse=<br>
+
|spouse=
|spouse2=<br>
+
|spouse2=
|religion=<br>
+
|religion=
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</pre>
 
</pre>
  
 
</noinclude>
 
</noinclude>

Latest revision as of 19:46, March 21, 2009

President

Template: President
Use on Article pages
Use for Country presidents
Category template applies to page (none)
Template Parameters
(See using templates).
Name Purpose Required? Comment
name Name of president no defaults to page name
image Picture of president no Only the file name is required
country Country no defaults to United States
office President or Vice no vice (default is president)
seq Sequential number no
term_start First date of office no
term_end Last date of office no
vp 1st Vice president no Name of VP - linked
vp_dates 1st Vice president term no Dates in office
2vp 2nd Vice president no Name of VP - linked
2vp_dates 2nd Vice president term no Dates in office
3vp 3rd Vice president no Name of VP - linked
3vp_dates 3rd Vice president term no Dates in office
4vp 4th Vice president no Name of VP - linked
4vp_dates 4th Vice president term no Dates in office
pres 1st president no Name of pres - linked
pres_dates 1st president term no Dates in office
2pres 2nd president no Name of pres - linked
2pres_dates 2nd president term no Dates in office
3pres 3rd president no Name of pres - linked
3pres_dates 3rd president term no Dates in office
4pres 4th president no Name of pres - linked
4pres_dates 4th president term no Dates in office
previous Predecessor no linked
next Successor no linked
office2 President or Vice no vice (default is president)
seq2 Sequential number no
term_start2 First date of office no
term_end2 Last date of office no
vp2 1st Vice president no Name of VP - linked
vp_dates2 1st Vice president term no Dates in office
2vp2 2nd Vice president no Name of VP - linked
2vp_dates2 2nd Vice president term no Dates in office
3vp2 3rd Vice president no Name of VP - linked
3vp_dates2 3rd Vice president term no Dates in office
4vp2 4th Vice president no Name of VP - linked
4vp_dates2 4th Vice president term no Dates in office
pres2 1st president no Name of pres - linked
pres_dates2 1st president term no Dates in office
2pres2 2nd president no Name of pres - linked
2pres_dates2 2nd president term no Dates in office
3pres2 3rd president no Name of pres - linked
3pres_dates2 3rd president term no Dates in office
4pres2 4th president no Name of pres - linked
4pres_dates2 4th president term no Dates in office
previous2 Predecessor no linked
next2 Successor no linked
office3 President or Vice no vice (default is president)
seq3 Sequential number no
term_start3 First date of office no
term_end3 Last date of office no
vp3 1st Vice president no Name of VP - linked
vp_dates3 1st Vice president term no Dates in office
2vp3 2nd Vice president no Name of VP - linked
2vp_dates3 2nd Vice president term no Dates in office
3vp3 3rd Vice president no Name of VP - linked
3vp_dates3 3rd Vice president term no Dates in office
4vp3 4th Vice president no Name of VP - linked
4vp_dates3 4th Vice president term no Dates in office
pres3 1st president no Name of pres - linked
pres_dates3 1st president term no Dates in office
2pres3 2nd president no Name of pres - linked
2pres_dates3 2nd president term no Dates in office
3pres3 3rd president no Name of pres - linked
3pres_dates3 3rd president term no Dates in office
4pres3 4th president no Name of pres - linked
4pres_dates3 4th president term no Dates in office
previous3 Predecessor no linked
next3 Successor no linked
birth_date Date of birth no
birth_place Place of birth no linked
death_date Date of death no
death_place Place of death no linked
spouse Spouse no
spouse2 Spouse no second spouse
religion Religion no linked


Sample Data Block

The following may be copied and pasted at the top of the page being edited

{{President
|name=
|image=
|office=
|seq=
|country=
|term_start=
|term_end=
|party=
|vp=
|vp_dates=
|2vp=
|2vp_dates=
|3vp=
|3vp_dates=
|4vp=
|4vp_dates=
|pres=
|pres_dates=
|2pres=
|2pres_dates=
|3pres=
|3pres_dates=
|4pres=
|4pres_dates=
|previous=
|next=
|office2=
|seq2=
|term_start2=
|term_end2=
|party2=
|vp2=
|vp_dates2=
|2vp2=
|2vp_dates2=
|3vp2=
|3vp_dates2=
|4vp2=
|4vp_dates2=
|pres2=
|pres_dates2=
|2pres2=
|2pres_dates2=
|3pres2=
|3pres_dates2=
|4pres2=
|4pres_dates2=
|previous2=
|next2=
|office3=
|seq3=
|term_start3=
|term_end3=
|party3=
|vp3=
|vp_dates3=
|2vp3=
|2vp_dates3=
|3vp3=
|3vp_dates3=
|4vp3=
|4vp_dates3=
|pres3=
|pres_dates3=
|2pres3=
|2pres_dates3=
|3pres3=
|3pres_dates3=
|4pres3=
|4pres_dates3=
|previous3=
|next3=
|birth_date=
|birth_place=
|birth_date=
|birth_place=
|death_date=
|death_place=
|spouse=
|spouse2=
|religion=
}}