Difference between revisions of "Template:President"
From Conservapedia
(→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: | + | !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;" | + | {{!}}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: | + | {{!}}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;" | + | {{!}}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;" | + | |
− | }} | + | |
− | }} | + | |
{{!-}} | {{!-}} | ||
<!----------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;" | + | {{!}}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;" | + | {{!}}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:--> | ||
− | |||
− | |||
{{!}} '''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 | + | <nowiki>{{</nowiki>President |
− | |name= | + | |name= |
− | |image= | + | |image= |
− | |office= | + | |office= |
− | |seq= | + | |seq= |
− | |country= | + | |country= |
− | |term_start= | + | |term_start= |
− | |term_end= | + | |term_end= |
− | |party= | + | |party= |
− | |vp= | + | |vp= |
− | |vp_dates= | + | |vp_dates= |
− | |2vp= | + | |2vp= |
− | |2vp_dates= | + | |2vp_dates= |
− | |3vp= | + | |3vp= |
− | |3vp_dates= | + | |3vp_dates= |
− | |4vp= | + | |4vp= |
− | |4vp_dates= | + | |4vp_dates= |
− | |pres= | + | |pres= |
− | |pres_dates= | + | |pres_dates= |
− | |2pres= | + | |2pres= |
− | |2pres_dates= | + | |2pres_dates= |
− | |3pres= | + | |3pres= |
− | |3pres_dates= | + | |3pres_dates= |
− | |4pres= | + | |4pres= |
− | |4pres_dates= | + | |4pres_dates= |
− | |previous= | + | |previous= |
− | |next= | + | |next= |
− | |office2= | + | |office2= |
− | |seq2= | + | |seq2= |
− | |term_start2= | + | |term_start2= |
− | |term_end2= | + | |term_end2= |
− | |party2= | + | |party2= |
− | |vp2= | + | |vp2= |
− | |vp_dates2= | + | |vp_dates2= |
− | |2vp2= | + | |2vp2= |
− | |2vp_dates2= | + | |2vp_dates2= |
− | |3vp2= | + | |3vp2= |
− | |3vp_dates2= | + | |3vp_dates2= |
− | |4vp2= | + | |4vp2= |
− | |4vp_dates2= | + | |4vp_dates2= |
− | |pres2= | + | |pres2= |
− | |pres_dates2= | + | |pres_dates2= |
− | |2pres2= | + | |2pres2= |
− | |2pres_dates2= | + | |2pres_dates2= |
− | |3pres2= | + | |3pres2= |
− | |3pres_dates2= | + | |3pres_dates2= |
− | |4pres2= | + | |4pres2= |
− | |4pres_dates2= | + | |4pres_dates2= |
− | |previous2= | + | |previous2= |
− | |next2= | + | |next2= |
− | |office3= | + | |office3= |
− | |seq3= | + | |seq3= |
− | |term_start3= | + | |term_start3= |
− | |term_end3= | + | |term_end3= |
− | |party3= | + | |party3= |
− | |vp3= | + | |vp3= |
− | |vp_dates3= | + | |vp_dates3= |
− | |2vp3= | + | |2vp3= |
− | |2vp_dates3= | + | |2vp_dates3= |
− | |3vp3= | + | |3vp3= |
− | |3vp_dates3= | + | |3vp_dates3= |
− | |4vp3= | + | |4vp3= |
− | |4vp_dates3= | + | |4vp_dates3= |
− | |pres3= | + | |pres3= |
− | |pres_dates3= | + | |pres_dates3= |
− | |2pres3= | + | |2pres3= |
− | |2pres_dates3= | + | |2pres_dates3= |
− | |3pres3= | + | |3pres3= |
− | |3pres_dates3= | + | |3pres_dates3= |
− | |4pres3= | + | |4pres3= |
− | |4pres_dates3= | + | |4pres_dates3= |
− | |previous3= | + | |previous3= |
− | |next3= | + | |next3= |
− | |birth_date= | + | |birth_date= |
− | |birth_place= | + | |birth_place= |
− | |birth_date= | + | |birth_date= |
− | |birth_place= | + | |birth_place= |
− | |death_date= | + | |death_date= |
− | |death_place= | + | |death_place= |
− | |spouse= | + | |spouse= |
− | |spouse2= | + | |spouse2= |
− | |religion= | + | |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= }}