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
LyingBrian (talk | contribs) mNo edit summary |
(Testing extension...) |
||
Line 11: | Line 11: | ||
{{!}}- | {{!}}- | ||
{{ #if: {{{10|}}} | {{!}} {{{10}}} {{!}}{{!}} {{{11}}} {{!}}{{!}} {{{12}}} }} | {{ #if: {{{10|}}} | {{!}} {{{10}}} {{!}}{{!}} {{{11}}} {{!}}{{!}} {{{12}}} }} | ||
{{!}}- | |||
{{ #if: {{{13|}}} | {{!}} {{{13}}} {{!}}{{!}} {{{14}}} {{!}}{{!}} {{{15}}} }} | |||
{{ #if: {{{novotes|}}} | {{!}}- style="background:#def; color:#555;" | {{ #if: {{{novotes|}}} | {{!}}- style="background:#def; color:#555;" | ||
{{!}} {{{novotes}}} {{!}}{{!}} ''not voting'' {{!}}{{!}} ''{{{novotename}}}'' | {{!}} {{{novotes}}} {{!}}{{!}} ''not voting'' {{!}}{{!}} ''{{{novotename}}}'' | ||
Line 16: | Line 18: | ||
</includeonly><noinclude> | </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 | At the moment, it is limited to five "votees" and one "no-vote" line. | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{vtable | {{vtable | ||
| | | | |||
| | | | | | | | ||
| | | | | | | | ||
Line 42: | Line 45: | ||
|1|Alien|Weirdo | |1|Alien|Weirdo | ||
|1|Allen|Bob | |1|Allen|Bob | ||
|1|Lilly|Allen | |||
|novotes=2|novotename=Billy, Tommy}} | |novotes=2|novotename=Billy, Tommy}} | ||
</pre> | </pre> | ||
Line 50: | Line 54: | ||
|1|Alien|Weirdo | |1|Alien|Weirdo | ||
|1|Allen|Bob | |1|Allen|Bob | ||
|1|Lilly|Allen | |||
|novotes=2|novotename=Billy, Tommy}} | |novotes=2|novotename=Billy, Tommy}} | ||
|} | |} | ||
</noinclude> | </noinclude> |
Revision as of 11:27, 27 August 2007
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}} |
|