|
|
| 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 |
Template:ElectionBobSandbox
Template parameters[Edit template data]
| Parameter | Description | Type | Status |
|---|
| Election Start Date | electionstart | When did the election start? - Example
- 1 May 2024
| Date | suggested |
|---|
| Election End Date | electionend | When did the election end? - Example
- 12 May 2024
| Date | suggested |
|---|
| Consitution | constitution | Where did the election take place? - Example
- Bayview
| Line | suggested |
|---|
| Candidate 1's Name | candidate1 | What was the first candidate's name? - Example
- Edgewurth
| Line | required |
|---|
| Candidate 1 Vote Percentage | percentage1 | How many votes (in %) did the candidate get? - Example
- 50
| Number | required |
|---|
| Candidate 2 Name | candidate2 | What was Candidate 2 called? - Example
- Monrah
| Line | required |
|---|
| Candidate 2 Winning Percentage | percentage2 | How many votes (in %) did the candidate get? - Example
- 50
| Number | required |
|---|
| Candidate 3 Name | candidate3 | What was the third candidate called? - Example
- CakeDevil_275
| Line | suggested |
|---|
| Candidate 3 Votes % | percentage3 | How many votes (in %) did the candidate get? - Example
- 50
| Number | suggested |
|---|
| candidate4 | candidate4 | no description
| Unknown | optional |
|---|
| percentage4 | percentage4 | no description
| Unknown | optional |
|---|
| candidate5 | candidate5 | no description
| Unknown | optional |
|---|
| percentage5 | percentage5 | no description
| Unknown | optional |
|---|