Difference between revisions of "User:GrampaSwood/Template:vote"
GrampaSwood (talk | contribs) m (test) |
GrampaSwood (talk | contribs) m |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
!class="header" style="background-color:#F3A957;" | Total | !class="header" style="background-color:#F3A957;" | Total | ||
!class="header" style="background-color:#F3A957;" | Final outcome | !class="header" style="background-color:#F3A957;" | Final outcome | ||
− | !class="header" style="background-color:#F3A957;" | | + | !class="header" style="background-color:#F3A957;" | Discussion ends on |
|- | |- | ||
− | | {{pro}}{{{ | + | | {{pro}}{{{supporters|}}}<br>{{con}}{{{opponents|}}} |
− | | {{pro|{{{ | + | | {{pro|{{{supportercount|0}}}}}/{{con|{{{opponentcount|0}}}}} |
− | | {{neutral|{{{ | + | | {{neutral|{{{outcome|Undecided}}}}} |
| {{#ifexpr:{{{time|}}}|{{{time|}}}|N/A}} | | {{#ifexpr:{{{time|}}}|{{{time|}}}|N/A}} | ||
|}<noinclude> | |}<noinclude> | ||
Line 13: | Line 13: | ||
Intended to be used '''at the top''' of a discussion to get an easy overview for total votes | Intended to be used '''at the top''' of a discussion to get an easy overview for total votes | ||
== Usage == | == Usage == | ||
− | :<code><nowiki>{{vote| | + | :<code><nowiki>{{vote|supporters=|opponents=|supportercount=|opponentcount=|outcome=|time}}</nowiki></code> |
== Parameters == | == Parameters == | ||
− | ; | + | ;supporters |
:Names of the people who support the idea, remember to include a <nowiki><br></nowiki> after every name. | :Names of the people who support the idea, remember to include a <nowiki><br></nowiki> after every name. | ||
− | ; | + | ;opponents |
:Names of the people who are against the idea, remember to include a <nowiki><br></nowiki> after every name. | :Names of the people who are against the idea, remember to include a <nowiki><br></nowiki> after every name. | ||
− | ; | + | ;supportercount |
:Total yes votes. | :Total yes votes. | ||
− | ; | + | ;opponentcount |
:Total no votes. | :Total no votes. | ||
− | ; | + | ;outcome |
:Outcome, defaults to "Undecided". | :Outcome, defaults to "Undecided". | ||
Line 34: | Line 34: | ||
:At what point the discussion should be finished, defaults to "N/A". | :At what point the discussion should be finished, defaults to "N/A". | ||
− | {{User:GrampaSwood/Template:vote|ProPeter|ConRad|1|1|time={{CURRENTYEAR}}-{{CURRENTMONTH1}}-{{CURRENTDAY}}}} | + | <pre> |
+ | {{User:GrampaSwood/Template:vote | ||
+ | | supporters = ProPeter | ||
+ | | opponents = ConRad | ||
+ | | supportercount = 1 | ||
+ | | opponentcount = 1 | ||
+ | | outcome = Passed | ||
+ | | time = {{CURRENTYEAR}}-{{CURRENTMONTH1}}-{{CURRENTDAY}} | ||
+ | }}</pre> produces: | ||
+ | |||
+ | {{User:GrampaSwood/Template:vote | ||
+ | | supporters = ProPeter | ||
+ | | opponents = ConRad | ||
+ | | supportercount = 1 | ||
+ | | opponentcount = 1 | ||
+ | | outcome = Passed | ||
+ | | time = {{CURRENTYEAR}}-{{CURRENTMONTH1}}-{{CURRENTDAY}} | ||
+ | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 20:08, 21 August 2023
Votes | Total | Final outcome | Discussion ends on |
---|---|---|---|
|
0/ 0 | Undecided | N/A |
Documentation for GrampaSwood/Template:vote
Intended to be used at the top of a discussion to get an easy overview for total votes
Usage
{{vote|supporters=|opponents=|supportercount=|opponentcount=|outcome=|time}}
Parameters
- supporters
- Names of the people who support the idea, remember to include a <br> after every name.
- opponents
- Names of the people who are against the idea, remember to include a <br> after every name.
- supportercount
- Total yes votes.
- opponentcount
- Total no votes.
- outcome
- Outcome, defaults to "Undecided".
- time
- At what point the discussion should be finished, defaults to "N/A".
{{User:GrampaSwood/Template:vote | supporters = ProPeter | opponents = ConRad | supportercount = 1 | opponentcount = 1 | outcome = Passed | time = {{CURRENTYEAR}}-{{CURRENTMONTH1}}-{{CURRENTDAY}} }}produces:
Votes | Total | Final outcome | Discussion ends on |
---|---|---|---|
ProPeter ConRad |
1/ 1 | Passed | 2025-1-7 |