You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.
Template:Vtable: Difference between revisions
Jump to navigation
Jump to search
HowardRoark (talk | contribs) m (reverted edits by HowardRoark (talk|contribs); changed back to last version by Max) |
HowardRoark (talk | contribs) m (Undo revision 43964 by HowardRoark (talk|contribs)) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><table class ="wikitable" style="text-align:left;" valign="top"> | ||
<tr><td colspan="3" align="center">[[Vote|Vote Count]]</td></tr> | |||
<tr><th>#</th><th>Target</th><th>Voters</th></tr> | |||
<tr style="font-weight:bold"><td>{{{1}}}</td><td>{{{2}}}</td><td>{{{3}}}</td></tr> | |||
<tr><td>{{{4}}}</td><td>{{{5}}}</td><td>{{{6}}}</td></tr> | |||
{{ #if: {{{7|}}} | <tr><td>{{{7}}}</td><td>{{{8}}}</td><td>{{{9}}}</td></tr> }} | |||
{{ #if: {{{10|}}} | <tr><td>{{{10}}}</td><td>{{{11}}}</td><td>{{{12}}}</td></tr> }} | |||
{{ #if: {{{13|}}} | <tr><td>{{{13}}}</td><td>{{{14}}}</td><td>{{{15}}}</td></tr> }} | |||
{{ #if: {{{novotes|}}} | <tr><td>{{{novotes}}}</td><td>not voting</td><td>{{{novotename}}}</td></tr> }} | |||
{{ #if: {{{7|}}} | | </table> | ||
</includeonly> | |||
{{ #if: {{{10|}}} | | |||
<noinclude> | |||
{{ #if: {{{13|}}} | | |||
{{ #if: {{{novotes|}}} | | |||
</includeonly><noinclude> | |||
This template generates vote tables like the one below. | This template generates vote tables like the one below. | ||
At the moment, it is limited to five "votees" and one "no-vote" line. | At the moment, it is limited to five "votees" and one "no-vote" line. | ||
== Usage == | == Usage == | ||
<pre> | <pre> |
Revision as of 04:12, 8 October 2009
This template generates vote tables like the one below. At the moment, it is limited to five "votees" and one "no-vote" line.
Usage
{{vtable | | | | | | | | | | | | | | | |novotes= |novotename= }}
Each line is to consist of three parameters, seperated by pipe characters: The number of votes, the target of the votes, and the names of players who voted for that target. There are two optional named parameters: novotes, which is the number of players not voting, and novotename which is the name(s) of any player(s) not voting.
Example
What you type | What it looks like | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{vtable |6|Fiasco|Guy1, Guy2, Gu3, Guy_4, GUY5, Gal6 |1|OtherGuy|Fiaco |1|Alien|Weirdo |1|Allen|Bob |1|Lilly|Allen |novotes=2|novotename=Billy, Tommy}} |
|