Difference between revisions of "Template:Officeholder"

From Conservapedia
Jump to: navigation, search
m (test a darker color)
(45 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="float:right; font-size:85%; width:46ex;margin-left:5px" cellpadding="2" cellspacing="4"
+
<includeonly>{| class="infobox" style="float:right; font-size:85%; width:46ex; margin: 5px 0px 10px 20px" cellpadding="2" cellspacing="4"
 
|-
 
|-
 
!colspan="2" align="center" style="color: white; font-size: 125%; height: 20px; line-height:20px; background: #330033"|'''{{{name|{{PAGENAME}}}}}'''
 
!colspan="2" align="center" style="color: white; font-size: 125%; height: 20px; line-height:20px; background: #330033"|'''{{{name|{{PAGENAME}}}}}'''
 
{{#if:{{{image|}}}|
 
{{#if:{{{image|}}}|
 
{{!-}}
 
{{!-}}
{{!}}colspan="2" align="center"{{!}}[[Image:{{{image}}}{{!}}200px]]}}
+
{{!}}colspan="2" align="center"{{!}}<div style="height:4px"></div>
 +
{{(!}}style="border:1px solid #000000" cellpadding="1" cellspacing="1"
 +
{{!}}
 +
{{(!}}style="border:1px solid #000000" cellpadding="0" cellspacing="0"
 +
{{!}}[[Image:{{{image}}}{{!}}200px]]
 +
{{userboxbottom}}
 +
{{userboxbottom}}<div style="height:4px"></div>
 +
}}
 
|-
 
|-
 
{{{offices}}}
 
{{{offices}}}
 
|-
 
|-
!colspan="2"  style="background:#FF66FF;font-size:110%"|Information{{#if:{{{party|}}}|<br/>
+
!colspan="2"  style="background:#FFCCFF;font-size:110%"|Information{{#if:{{{party|}}}|<br/>
 
{{!-}}
 
{{!-}}
 
!Party
 
!Party
Line 19: Line 26:
 
{{!}}{{{religion}}}}}{{#ifeq:{{{military}}}|y|<br/>
 
{{!}}{{{religion}}}}}{{#ifeq:{{{military}}}|y|<br/>
 
{{!-}}
 
{{!-}}
!colspan="2" style="color:#FF66FF;font-size:110%"{{!}}Military Service{{#if:{{{allegiance|}}}|<br/>
+
!colspan="2" style="background:#E4C9FF;font-size:110%"{{!}}Military Service{{#if:{{{allegiance|}}}|<br/>
 
{{!-}}
 
{{!-}}
 
!Allegiance
 
!Allegiance
Line 52: Line 59:
 
*'''Note:''' always double check the output - sometimes a "the" will be needed (especially for mayor of a city - "the District of Columbia")
 
*'''Note:''' always double check the output - sometimes a "the" will be needed (especially for mayor of a city - "the District of Columbia")
 
*'''Note:''' preceded does not refer to who the subject preceded, but rather the predecessor. (so, on the page for "A" preceded="B" means is the predecessor)  
 
*'''Note:''' preceded does not refer to who the subject preceded, but rather the predecessor. (so, on the page for "A" preceded="B" means is the predecessor)  
*So far this template works for:
 
**Governors
 
**Senators
 
**Representatives
 
 
The officers parameter of this template encloses the other two templates ... so with indentation:
 
The officers parameter of this template encloses the other two templates ... so with indentation:
 
<pre><nowiki>
 
<pre><nowiki>
Line 87: Line 90:
 
</nowiki>&#09;<nowiki>|state=
 
</nowiki>&#09;<nowiki>|state=
 
</nowiki>&#09;<nowiki>|terms=
 
</nowiki>&#09;<nowiki>|terms=
 +
</nowiki>&#09;<nowiki>|lieutenant=(y or n) (OR the lieutenant governor's name)
 +
</nowiki>&#09;<nowiki>|governor= (If lieutenant)
 
</nowiki>&#09;<nowiki>|preceded=
 
</nowiki>&#09;<nowiki>|preceded=
 
</nowiki>&#09;<nowiki>|former=(y or n)
 
</nowiki>&#09;<nowiki>|former=(y or n)
Line 149: Line 154:
 
</nowiki>&#09;<nowiki>|governor=(Leave blank if on federal level)
 
</nowiki>&#09;<nowiki>|governor=(Leave blank if on federal level)
 
</nowiki>&#09;<nowiki>|president=
 
</nowiki>&#09;<nowiki>|president=
 +
</nowiki>&#09;<nowiki>|terms=
 +
</nowiki>&#09;<nowiki>|preceded=
 +
</nowiki>&#09;<nowiki>|former=(y or n)
 +
</nowiki>&#09;<nowiki>|succeeded=
 +
</nowiki>&#09;<nowiki>}}
 +
</nowiki>&#09;<nowiki>{{Officeholder/chairman
 +
</nowiki>&#09;<nowiki>|party=
 +
</nowiki>&#09;<nowiki>|number=
 +
</nowiki>&#09;<nowiki>|terms=
 +
</nowiki>&#09;<nowiki>|preceded=
 +
</nowiki>&#09;<nowiki>|former=(y or n)
 +
</nowiki>&#09;<nowiki>|succeeded=
 +
</nowiki>&#09;<nowiki>}}
 +
</nowiki>&#09;<nowiki>{{Officeholder/sheriff
 +
</nowiki>&#09;<nowiki>|county=
 
</nowiki>&#09;<nowiki>|terms=
 
</nowiki>&#09;<nowiki>|terms=
 
</nowiki>&#09;<nowiki>|preceded=
 
</nowiki>&#09;<nowiki>|preceded=
Line 191: Line 211:
 
{{Officeholder/governor
 
{{Officeholder/governor
 
|state=Virginia
 
|state=Virginia
 +
|number=1120th
 
|terms=2002-2006
 
|terms=2002-2006
|preceded=Will D'oh, William D'oh
+
|preceded=Will D'oh
 
|succeeded=Will D'oh II
 
|succeeded=Will D'oh II
 
|former=y
 
|former=y
Line 214: Line 235:
 
{{Officeholder/governor
 
{{Officeholder/governor
 
|state=Virginia
 
|state=Virginia
 +
|number=1120th
 
|terms=2005-2006
 
|terms=2005-2006
|preceded=Will D'oh, William D'oh
+
|preceded=Will D'oh
 
|former=y
 
|former=y
 
|succeeded=Will D'oh II
 
|succeeded=Will D'oh II
Line 321: Line 343:
 
}}
 
}}
  
 +
{{Officeholder/chairman
 +
}}
 
{{Officeholder/misc
 
{{Officeholder/misc
 
}}
 
}}
 
}}</div>
 
}}</div>
 
</noinclude>
 
</noinclude>

Revision as of 20:40, January 24, 2021

Shell

  • Note: everything except for religion and state need to be manually linked
  • Note: leave successor blank if there is no successor
  • Note: always double check the output - sometimes a "the" will be needed (especially for mayor of a city - "the District of Columbia")
  • Note: preceded does not refer to who the subject preceded, but rather the predecessor. (so, on the page for "A" preceded="B" means is the predecessor)

The officers parameter of this template encloses the other two templates ... so with indentation:

{{Officeholder
|name=
|image=
|party=
|spouse=
|religion=
|offices=
	{{Officeholder/president
	|country=
	|number=
	|terms=
	|vp=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/vice president
	|country=
	|number=
	|terms=
	|president=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/governor
	|number=
	|state=
	|terms=
	|lieutenant=(y or n) (OR the lieutenant governor's name)
	|governor= (If lieutenant)
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/senator
	|state=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/representative
	|state=
	|district=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/mayor
	|number=
	|city=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/Supreme Court Justice
	|role=(Associate or Chief)
	|nominator=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/ambassador
	|for=
	|to=
	|president=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/attorneygeneral
	|jurisdiction=(state/country)
	|number=
	|deputy=(y or n)
	|governor=(Leave blank if on federal level)
	|president=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/secretary (cabinet)
	|of=
	|state=(if fed leave blank)
	|number=
	|deputy=(y or n)
	|governor=(Leave blank if on federal level)
	|president=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/chairman
	|party=
	|number=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/sheriff
	|county=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
	{{Officeholder/misc
	|office=
	|terms=
	|preceded=
	|former=(y or n)
	|succeeded=
	}}
|military=(y or n) #if not military leave all these out
|allegiance=
|branch=
|serviceyears=
|rank=
|unit=
|commands=
|battles=
|awards=
}}

Test

Name
Benjamin Davis.jpg
U.S. Senator from Virginia
From: 2006-2007; 2008-2009
Predecessor John Doe, Johnny Dough
Successor Johnny Dough; Incumbent (no successor)
1120th Governor of Virginia
From: 2002-2006
Predecessor Will D'oh
Successor Will D'oh II
Information
Party Republican
Independent (until 2006)
Spouse(s) Jane Doe
Religion Presbyterian
{{Officeholder
|name=Name
|image=070207-F-9999W-001.jpg
|party=Republican<br/>Independent (until 2006)
|spouse=Jane Doe
|religion=Presbyterian
|offices=
{{Officeholder/senator
|state=Virginia
|terms=2006-2007; 2008-2009
|preceded=John Doe, Johnny Dough
|succeeded=Johnny Dough; Incumbent (no successor)
}}
{{Officeholder/governor
|state=Virginia
|number=1120th
|terms=2005-2006
|preceded=Will D'oh
|former=y
|succeeded=Will D'oh II
}}
}}
'

From:
Predecessor
Successor Incumbent (no successor)
U.S. Senator from [[]]
From:
Predecessor
Successor Incumbent (no successor)
U.S. Representative from [[]]'s Congressional District
From:
Predecessor
Successor Incumbent (no successor)
Mayor of
From:
Predecessor
Successor Incumbent (no successor)
(Associate or Chief) Justice of the U.S. Supreme Court
From:
Nominator
Predecessor
Successor Incumbent (no successor)
[[]] Ambassador to [[]]
From:
President
Predecessor
Successor Incumbent (no successor)
Attorney General of (state/country)
From:
Governor (Leave blank if on federal level)
Predecessor
Successor Incumbent (no successor)
(if fed leave blank) Secretary of
From:
Governor (Leave blank if on federal level)
Predecessor
Successor Incumbent (no successor)
President of
From:
Vice President
Predecessor
Successor Incumbent (no successor)
Vice President of
From:
President {{{president}}}
Predecessor
Successor Incumbent (no successor)
Chairman of [[{{{party}}}]]
From: {{{terms}}}
Predecessor {{{preceded}}}
Successor Incumbent (no successor)
{{{office}}}
From: {{{terms}}}
Predecessor {{{preceded}}}
Successor Incumbent (no successor)
Information