You are viewing the MafiaScum.net Wiki. To play the game, visit the forum.

Template:Vtable: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{| class ="wikitable" style="text-align:left;"
<includeonly>{{{!}} class ="wikitable" style="text-align:left;" valign="top"
! colspan = "3" style="text-align:center" {{!}} [[Vote|Vote Count]]
! colspan="3" align="center" ! [[Vote|Vote Count]]
{{!}}-
|-
! # !! Target !! Voters
! # !! Target !! Voters
{{!}}-
|- style="font-weight:bold"
{{!}} '''{{{1}}}''' {{!}}{{!}} '''{{{2}}}''' {{!}}{{!}} '''{{{3}}} {{ #if: {{{4|}}}''' |
| {{{1}}} || {{{2}}} || {{{3}}}  
{{!}}-
|-
{{!}} {{{4}}} {{!}}{{!}} {{{5}}} {{!}}{{!}} {{{6}}} {{ #if: {{{7|}}} |
{{ #if: {{{4|}}} | {{!}} {{{4}}} {{!}}{{!}} {{{5}}} {{!}}{{!}} {{{6}}} }}
{{!}}-
|-
{{!}} {{{7}}} {{!}}{{!}} {{{8}}} {{!}}{{!}} {{{9}}} {{ #if: {{{10|}}} |
{{ #if: {{{7|}}} | {{!}} {{{7}}} {{!}}{{!}} {{{8}}} {{!}}{{!}} {{{9}}} }}
{{!}}-
|-
{{!}} {{{10}}} {{!}}{{!}} {{{11}}} {{!}}{{!}} {{{12}}} {{ #if: {{{novotes|}}} |
{{ #if: {{{10|}}} | {{!}} {{{10}}} {{!}}{{!}} {{{11}}} {{!}}{{!}} {{{12}}} }}
{{!}}- style="background:#eef; color:#777;"
|-
{{!}} {{{novotes}}} {{!}}{{!}} ''Not voting'' {{!}}{{!}} ''{{{novotename}}}'' }} }} }} }}  
{{ #if: {{{13|}}} | {{!}} {{{13}}} {{!}}{{!}} {{{14}}} {{!}}{{!}} {{{15}}} }}
{{!}}}</includeonly><noinclude>
|-
{{ #if: {{{novotes|}}} | {{!}} {{{novotes}}} {{!}}{{!}} not voting {{!}}{{!}} {{{novotename}}} }}
|}
</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 four "votees" and one "no-vote" line.
At the moment, it is limited to five "votees" and one "no-vote" line.
 
== Usage ==
== Usage ==
<pre>
<pre>
{{vtable
{{vtable
| | |
| | |
| | |
| | |
| | |
Line 41: Line 48:
|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 49: Line 57:
|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>
[[category: Templates]]

Revision as of 03:56, 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}}
colspan="3" align="center" ! Vote Count
# Target Voters
6 Fiasco Guy1, Guy2, Gu3, Guy_4, GUY5, Gal6
1 OtherGuy Fiaco
1 Alien Weirdo
1 Allen Bob
1 Lilly Allen
2 not voting Billy, Tommy