Difference between revisions of "User:GrampaSwood/Template:vote"

From Team Fortress Wiki
Jump to: navigation, search
(bofa deez nuts! gotem)
m
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{|class="wikitable grid" width="40%" cellpadding=2 style="text-align:center; font-size:90%"
 +
!class="header" style="background-color:#F3A957;" | Votes
 +
!class="header" style="background-color:#F3A957;" | Total
 +
!class="header" style="background-color:#F3A957;" | Final outcome
 +
!class="header" style="background-color:#F3A957;" | Discussion ends on
 +
|-
 +
| {{pro}}{{{supporters|}}}<br>{{con}}{{{opponents|}}}
 +
| {{pro|{{{supportercount|0}}}}}/{{con|{{{opponentcount|0}}}}}
 +
| {{neutral|{{{outcome|Undecided}}}}}
 +
| {{#ifexpr:{{{time|}}}|{{{time|}}}|N/A}}
 +
|}<noinclude>
 +
{{doc begin}}
 +
Intended to be used '''at the top''' of a discussion to get an easy overview for total votes
 +
== Usage ==
 +
:<code><nowiki>{{vote|supporters=|opponents=|supportercount=|opponentcount=|outcome=|time}}</nowiki></code>
  
 +
== Parameters ==
 +
;supporters
 +
: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.
 +
 +
;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".
 +
 +
<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>

Latest revision as of 20:08, 21 August 2023

Votes Total Final outcome Discussion ends on
Pictogram plus.png 
Pictogram minus.png 
Pictogram plus.png 0/Pictogram minus.png 0 Pictogram info.png 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
Pictogram plus.png ProPeter
Pictogram minus.png ConRad
Pictogram plus.png 1/Pictogram minus.png 1 Pictogram info.png Passed 2024-5-18