Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:ElectionBob: Difference between revisions

Template page
No edit summary
No edit summary
 
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="bob">
{{Bob|
<div class="bob-header mw-no-invert">
{{Bob/Header}}
{{PAGENAME}}
{{#if: {{{skin|}}}|{{Bob/Image|image={{{skin}}}|caption={{PAGENAME}}'s Skin}}|}}
</div>
{{Bob/Subheader|Information}}
{{
{{#if: {{{electionstart|}}}|{{Bob/InfoTextWithTitle|{{{electionstart}}}|Election Start Date}}|}}
#if: {{{electionstart|}}} |  
{{#if: {{{electionend|}}}|{{Bob/InfoTextWithTitle|{{{electionend}}}|Election End Date}}|}}
<div class="bob-info">
{{#if: {{{constitution|}}}|{{Bob/InfoTextWithTitle|{{{constitution}}}|Constitution}}|}}
<div class="bob-info-header">
{{Bob/Subheader|Election Results}}
Election Start Date
{{#if: {{{candidate1|}}}|{{Bob/ProgressBar|{{{percentage1}}}|{{{candidate1}}}}}|}}
</div>
{{#if: {{{candidate2|}}}|{{Bob/ProgressBar|{{{percentage2}}}|{{{candidate2}}}}}|}}
<div class="bob-info-footer">
{{#if: {{{candidate3|}}}|{{Bob/ProgressBar|{{{percentage3}}}|{{{candidate3}}}}}|}}
{{{electionstart|}}}
{{#if: {{{candidate4|}}}|{{Bob/ProgressBar|{{{percentage4}}}|{{{candidate4}}}}}|}}
</div></div>
{{#if: {{{candidate5|}}}|{{Bob/ProgressBar|{{{percentage5}}}|{{{candidate5}}}}}|}}
}}
}}
{{
#if: {{{electionend|}}} |
<div class="bob-info">
<div class="bob-info-header">
Election End Date
</div>
<div class="bob-info-footer">
{{{electionend|}}}
</div></div>
}}
{{
#if: {{{constitution|}}} |
<div class="bob-info">
<div class="bob-info-header">
Constitution
</div>
<div class="bob-info-footer">
{{{constitution|}}}
</div></div>
}}
<div class="bob-info-header" style="width: 100%; text-align: center; font-size: 110%; padding: 0;">
Election Results
</div>
{{
#if: {{{candidate1|}}} |
<div class="bob-info">
<div class="bob-info-header">
{{{candidate1}}}
</div>
<div class="bob-info-footer">
<div style="border: solid #ffc500 2px; display: block; width: 90%; height: 25px; background: linear-gradient(
    to right,
    #ffc500 {{{percentage1|}}}%,
    transparent {{#expr: {{{percentage1|}}} + 1}}% {{#expr: 100 - {{{percentage1|}}}}}%
  ); color: black; vertical-align: middle; text-align: left;">{{{percentage1|}}}%</div>
</div>
</div>
}}
{{
#if: {{{candidate2|}}} |
<div class="bob-info">
<div class="bob-info-header">
{{{candidate2}}}
</div>
<div class="bob-info-footer">
<div style="border: solid #ffc500 2px; display: block; width: 90%; height: 25px; background: linear-gradient(
    to right,
    #ffc500 {{{percentage2|}}}%,
    transparent {{#expr: {{{percentage2|}}} + 1}}% {{#expr: 100 - {{{percentage2|}}}}}%
  ); color: black; vertical-align: middle; text-align: left;">{{{percentage2|}}}%</div>
</div>
</div>
}}
{{
#if: {{{candidate3|}}} |
<div class="bob-info">
<div class="bob-info-header">
{{{candidate3}}}
</div>
<div class="bob-info-footer">
<div style="border: solid #ffc500 2px; display: block; width: 90%; height: 25px; background: linear-gradient(
    to right,
    #ffc500 {{{percentage3|}}}%,
    transparent {{#expr: {{{percentage3|}}} + 1}}% {{#expr: 100 - {{{percentage3|}}}}}%
  ); color: black; vertical-align: middle; text-align: left;">{{{percentage3|}}}%</div>
</div>
</div>
}}
{{
#if: {{{candidate4|}}} |
<div class="bob-info">
<div class="bob-info-header">
{{{candidate4}}}
</div>
<div class="bob-info-footer">
<div style="border: solid #ffc500 2px; display: block; width: 90%; height: 25px; background: linear-gradient(
    to right,
    #ffc500 {{{percentage4|}}}%,
    transparent {{#expr: {{{percentage4|}}} + 1}}% {{#expr: 100 - {{{percentage4|}}}}}%
  ); color: black; vertical-align: middle; text-align: left;">{{{percentage4|}}}%</div>
</div>
</div>
}}
{{
#if: {{{candidate5|}}} |
<div class="bob-info">
<div class="bob-info-header">
{{{candidate5}}}
</div>
<div class="bob-info-footer">
<div style="border: solid #ffc500 2px; display: block; width: 90%; height: 25px; background: linear-gradient(
    to right,
    #ffc500 {{{percentage5|}}}%,
    transparent {{#expr: {{{percentage5|}}} + 1}}% {{#expr: 100 - {{{percentage5|}}}}}%
  ); color: black; vertical-align: middle; text-align: left;">{{{percentage5|}}}%</div>
</div>
</div>
}}
</div>
</includeonly>
</includeonly>
<noinclude>
<noinclude>
{{ElectionBob
{{ElectionBobSandbox
|candidate1=Adam
|candidate1=Adam
|percentage1=55
|percentage1=55

Latest revision as of 17:05, 13 April 2025


Template:ElectionBobSandbox

No description.

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
Election Start Dateelectionstart

When did the election start?

Example
1 May 2024
Datesuggested
Election End Dateelectionend

When did the election end?

Example
12 May 2024
Datesuggested
Consitutionconstitution

Where did the election take place?

Example
Bayview
Linesuggested
Candidate 1's Namecandidate1

What was the first candidate's name?

Example
Edgewurth
Linerequired
Candidate 1 Vote Percentagepercentage1

How many votes (in %) did the candidate get?

Example
50
Numberrequired
Candidate 2 Namecandidate2

What was Candidate 2 called?

Example
Monrah
Linerequired
Candidate 2 Winning Percentagepercentage2

How many votes (in %) did the candidate get?

Example
50
Numberrequired
Candidate 3 Namecandidate3

What was the third candidate called?

Example
CakeDevil_275
Linesuggested
Candidate 3 Votes %percentage3

How many votes (in %) did the candidate get?

Example
50
Numbersuggested
candidate4candidate4

no description

Unknownoptional
percentage4percentage4

no description

Unknownoptional
candidate5candidate5

no description

Unknownoptional
percentage5percentage5

no description

Unknownoptional