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

Template:VoteTable: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 36: Line 36:
Used to create the HowardRoark variation of the [[:Template:Vtable|Vtable]] template. It handles 1 lynchee, not voting, and up to 10 additional votees. The table's caption is a link to the forum game thread post containing the lynch.
Used to create the HowardRoark variation of the [[:Template:Vtable|Vtable]] template. It handles 1 lynchee, not voting, and up to 10 additional votees. The table's caption is a link to the forum game thread post containing the lynch.


More expansion and customization options are planned.
More expansion and customization options are planned. Feel free to request them on the [[Talk:VoteTable]]




== Parameters ==
== Parameters ==
<table border=1 cellpadding=5>
<table border=1 cellpadding=5>
<tr><th>parameter</th><th>required?</th><th>data type</th><th>example data</th><tr>
<tr><th>parameter</th><th>use</th><th>required?</th><th>data type</th><th>example data</th><tr>
<tr><td>post</td><td>yes</td><td>integer</td><td>1962582</td>
<tr><td>post</td><td>lynch scene forum post number</td><td>yes</td><td>integer</td><td>1962582</td>
<tr><td>day</td><td>yes</td><td>integer</td><td>1</td>
<tr><td>day</td><td>day number</td><td>yes</td><td>integer</td><td>1</td>
<tr><td>lynchcolor</td><td>yes</td><td>[http://www.web-source.net/216_color_chart.htm rrggbb <i>or</i> rgb]</td><td>a020f0</td>
<tr><td>lynchcolor</td><td>color for lynchee row</td><td>no</td><td>[http://www.web-source.net/216_color_chart.htm rrggbb <i>or</i> rgb]</td><td>a020f0</td>
<tr><td>lynchvotes</td><td>yes</td><td>integer</td><td>7</td>
<tr><td>lynchee</td><td>player being lynched</td><td>yes</td><td>string</td><td>HowardRoark</td>
<tr><td>lynchee</td><td>yes</td><td>string</td><td>HowardRoark</td>
<tr><td>lynchvotes</td><td>number of votes on the lynchee</td><td>yes</td><td>integer</td><td>7</td>
<tr><td>lynchers</td><td>yes</td><td>string</td><td>mith, orangepenguin, Vi</td>
<tr><td>lynchers</td><td>players voting for the lynchee</td><td>yes</td><td>string</td><td>mith, orangepenguin, Vi</td>
<tr><td>novotes</td><td>no</td><td>integer</td><td>2</td>
<tr><td>novotes</td><td>number of players not voting</td><td>no</td><td>integer</td><td>2</td>
<tr><td>novotenames</td><td>no</td><td>string</td><td>BattleMage, tubby216</td>
<tr><td>novotenames</td><td>players not voting</td><td>no</td><td>string</td><td>BattleMage, tubby216</td>
<tr><td>novotebg</td><td>no</td><td>[http://www.web-source.net/216_color_chart.htm rrggbb <i>or</i> rgb]</td><td>ddeeff</td>
<tr><td>novotebg</td><td>background color for not voting row</td><td>no</td><td>[http://www.web-source.net/216_color_chart.htm rrggbb <i>or</i> rgb]</td><td>ddeeff <i>or</i> def</td>
<tr><td>novotecolor</td><td>no</td><td>[http://www.web-source.net/216_color_chart.htm rrggbb <i>or</i> rgb]</td><td>55555</td>
<tr><td>novotecolor</td><td>text color for not voting row</td><td>no</td><td>[http://www.web-source.net/216_color_chart.htm rrggbb <i>or</i> rgb]</td><td>55555 <i>or</i> 555</td>
</table>
</table>




== Examples ==
== Example ==
<table border=1 cellpadding=5>
<table border=1 cellpadding=5>
<tr><td>
<tr><td>

Revision as of 23:03, 12 November 2009


Summary

Used to create the HowardRoark variation of the Vtable template. It handles 1 lynchee, not voting, and up to 10 additional votees. The table's caption is a link to the forum game thread post containing the lynch.

More expansion and customization options are planned. Feel free to request them on the Talk:VoteTable


Parameters

parameteruserequired?data typeexample data
postlynch scene forum post numberyesinteger1962582
dayday numberyesinteger1
lynchcolorcolor for lynchee rownorrggbb or rgba020f0
lyncheeplayer being lynchedyesstringHowardRoark
lynchvotesnumber of votes on the lyncheeyesinteger7
lynchersplayers voting for the lyncheeyesstringmith, orangepenguin, Vi
novotesnumber of players not votingnointeger2
novotenamesplayers not votingnostringBattleMage, tubby216
novotebgbackground color for not voting rownorrggbb or rgbddeeff or def
novotecolortext color for not voting rownorrggbb or rgb55555 or 555


Example

{{VoteTable
|post=1962582|day=1
|lynchcolor=a020f0|lynchvotes=7|lynchee=julienvonwolfe
|lynchers=iamausername, Torqez, ErictheRed, Symbol, don_johnson, Hoopla, tubby216
|MrSuave|2|julienvonwolfe, MacavityLock
|Hoopla|1|MrSuave
|novotes=2|novotenames=Nuwen, xRECKONERx}}


D1 Final Vote Count
Votee Count Voters
julienvonwolfe 7 iamausername, Torqez, ErictheRed, Symbol, don_johnson, Hoopla, tubby216
MrSuave 2 julienvonwolfe, MacavityLock
Hoopla 1 MrSuave
not voting 2 Nuwen, xRECKONERx