Template:Infobox officeholder: Difference between revisions
From Roses, Tulips, & Liberty
Content added Content deleted
(revert; I'm sorry but this needs to get fixed before; it has removed the "Preceded by" field, it has added a top blank line; includes "Succeded by" on incumbent presidents... this needs a lot of work) |
(yes, it still needs work, which I plan to do this morning, sorry; blank line issues should be fixed now; about "Preceded"/"Succeeded" could you please show me a page where the problem occurs?) |
||
Line 1:
{| class="infobox bordered" style="width:
|+ style="font-size: larger;" | '''{{{name}}}'''
{{#if:{{{image|}}}|<tr style="text-align: center;"><td colspan="2">[[Image:{{{image}}}|200px| ]]<br />{{{caption|}}}</td></tr>}}<!--
-->
-->{{#if:{{{order|}}}|<tr><th>Order</th><td>{{{order|}}}</td></tr>}}▼
|-
{{ #if: {{{term_end|}}}|<!--then: in office from/to--><tr><th style="border-bottom: none; text-align: center;" colspan="2">In office</th></tr><tr><td style="border-top: none; text-align: center;" colspan="2">{{{term_start}}} – {{{term_end}}}</td></tr>|<!--else: assume current--><tr><th style="text-align: center; background: #B0C4DE;" colspan="2">[[Incumbent]]</th></tr>
}}<!--
-->{{#if:{{{
{{#if: {{{term_end|}}}|<!--then--> |<!--else--><tr><th>In office since</th><td>{{{term_start}}}</td></tr>}}<!--
-->{{ #if:{{{vicepresident|}}}|<tr><th>Vice President</th><td>{{{vicepresident|}}}</td></tr> }}
|-<!--
-->{{#if: {{{predecessor|}}}|<tr><th>Preceded by</th><td>{{{predecessor|}}}</td></tr>}}<!--
-->
|-<!--
▲-->{{ #if: {{{
|-
! Born
| {{{birth_date|}}}<br />{{{birth_place|}}}<!--
-->{{#if:{{{death_date|}}}|<tr><th>Died</th><td>{{{death_date|}}}<br />{{{death_place|}}}</td></tr>}}<!--
-->{{#if:{{{party|}}}|<tr><th>Political party</th><td>{{{party|}}}</td></tr>}}<!--
-->{{#if:{{{spouse|}}}|<tr><th>Spouse</th><td>{{{spouse|}}}</td></tr>}}<!--
Line 24 ⟶ 26:
[[Category:Templates using ParserFunctions|{{PAGENAME}}]]
[[Category:Infobox templates|President]]
</noinclude><!--
FOR TEST ONLY - WILL BE REMOVED WHEN DONE
--><noinclude>
{{Infobox President
| name=George W. Bush
| image=George-W-Bush.jpeg
| order=43rd [[President of the United States]]
| term_start=[[January 20]], [[2001]]
| vicepresident=[[Dick Cheney]]
| predecessor=[[Bill Clinton]]
| birth_date=[[July 6]], [[1946]]
| birth_place=[[New Haven, Connecticut|New Haven]], [[Connecticut]], [[United States|USA]]
| party=[[Republican Party (United States)|Republican]]
| spouse=[[Laura Bush|Laura Welch Bush]]
}}
</noinclude>
|