Template:Referendum: Difference between revisions
From MicrasWiki
Jump to navigationJump to search
(cat) |
(added second question) |
||
Line 35: | Line 35: | ||
!bgcolor=eeeeee align=left |Total votes | !bgcolor=eeeeee align=left |Total votes | ||
|bgcolor=eeeeee align=right|{{{Total1number}}} | |bgcolor=eeeeee align=right|{{{Total1number}}} | ||
|bgcolor=eeeeee align=right|{{{Total1%}}} | |bgcolor=eeeeee align=right|{{{Total1%}}}<!-- | ||
START SECOND QUESTION | |||
-->{{#if:{{{Question2|}}}|<br> | |||
{{!}}- | |||
!align="center" colspan="5" bgcolor=f9f9f9 {{!}} | |||
{{!}}- | |||
{{!}}align="center" colspan="5" bgcolor=f9f9f9 {{!}}''{{{Question2}}}'' | |||
{{!}}- | |||
{{!}}align="center" colspan="5" bgcolor=eeeeee {{!}}'''Results''' | |||
{{!}}- | |||
!bgcolor=eeeeee width=40%{{!}} | |||
!bgcolor=e9e9e9 {{!}}Votes | |||
!bgcolor=e9e9e9 {{!}}% | |||
{{!}}- | |||
{{!}}bgcolor=f9f9f9 align=left {{!}}{{{Answer21}}} | |||
{{!}}bgcolor=f9f9f9 align=right{{!}}{{{Answer21number}}} | |||
{{!}}bgcolor=f9f9f9 align=right{{!}}{{{Answer21%}}} | |||
{{!}}- style="border-width: 20px" | |||
{{!}}bgcolor=f9f9f9 align=left {{!}}{{{Answer22}}} | |||
{{!}}bgcolor=f9f9f9 align=right{{!}}{{{Answer22number}}} | |||
{{!}}bgcolor=f9f9f9 align=right{{!}}{{{Answer22%}}}{{#if:{{{Answer23|}}}| | |||
{{!}}- | |||
{{!}}bgcolor=f9f9f9 align=left {{!}} {{#if: {{{Answer23}}} | {{{Answer23}}} | }} | |||
{{!}}bgcolor=f9f9f9 align=right{{!}} {{#if: {{{Answer23number}}} | {{{Answer23number}}} | }} | |||
{{!}}bgcolor=f9f9f9 align=right{{!}} {{#if: {{{Answer23%}}} | {{{Answer23%}}} | }} |}}{{#if:{{{Answer24|}}}| | |||
{{!}}- | |||
{{!}}bgcolor=f9f9f9 align=left {{!}} {{#if: {{{Answer24}}} | {{{Answer24}}} | }} | |||
{{!}}bgcolor=f9f9f9 align=right{{!}} {{#if: {{{Answer24number}}} | {{{Answer24number}}} | }} | |||
{{!}}bgcolor=f9f9f9 align=right{{!}} {{#if: {{{Answer24%}}} | {{{Answer24%}}} | }} |}} | |||
{{!}}- | |||
{{!}}bgcolor=eeeeee align=left {{!}}Valid votes | |||
{{!}}bgcolor=eeeeee align=right{{!}}{{{Valid2number}}} | |||
{{!}}bgcolor=eeeeee align=right{{!}}{{{Valid2%}}} | |||
{{!}}- | |||
{{!}}bgcolor=eeeeee align=left {{!}}Invalid votes | |||
{{!}}bgcolor=eeeeee align=right{{!}}{{{Invalid2number}}} | |||
{{!}}bgcolor=eeeeee align=right{{!}}{{{Invalid2%}}} | |||
{{!}}- | |||
{{!}}bgcolor=eeeeee align=left {{!}}Total votes | |||
{{!}}bgcolor=eeeeee align=right{{!}}{{{Total2number}}} | |||
{{!}}bgcolor=eeeeee align=right{{!}}{{{Total2%}}} |}} | |||
|} | |} | ||
Revision as of 21:07, 23 November 2020
{{{Question1}}} | ||||
Results | ||||
Votes | % | |||
---|---|---|---|---|
{{{Answer1}}} | {{{Answer1number}}} | {{{Answer1%}}} | ||
{{{Answer2}}} | {{{Answer2number}}} | {{{Answer2%}}} | ||
Valid votes | {{{Valid1number}}} | {{{Valid1%}}} | ||
Invalid votes | {{{Invalid1number}}} | {{{Invalid1%}}} | ||
Total votes | {{{Total1number}}} | {{{Total1%}}} |
[edit] [ ] Template documentation
- You can use up to 4 options per referendum
- Answers 3 and 4 are not shown when left blank
{{Referendum |Question1 = Referendum question |Answer1 = Answer 1 |Answer1number = Number of votes for answer 1 |Answer2 = |Answer2number = |Answer3 = |Answer3number = |Answer4 = |Answer4number = |Invalid1number = Number of invalid votes (must be at least 0) |Question2 = Second referendum question |Answer5 = Answer 1 to second question |Answer5number = |Answer6 = |Answer6number = |Answer7 = |Answer7number = |Answer8 = |Answer8number = |Invalid2number = }}
The above documentation is transcluded from Template:Referendum/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |