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

Template:Gamebox: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(sort)
(cleanup, use actual example)
Line 1: Line 1:
<includeonly><div style="float:right;">
<includeonly><div style="float:right;">
{| class="infobox" style="border: 1px solid #999; width: 17em; text-align: left; font-size: 95%; margin-left: 1em; margin-bottom: 1em;"
|+ style="font-size: large;" |'''[http://www.mafiascum.net/forum/viewtopic.php?t={{{thread}}} {{{name|{{PAGENAME}}}}}]'''
|-
! Forum:
| {{ #if: {{{forum|}}} | [[{{{forum}}}]] | ''Not filled in''}}
|-
! Moderator(s):
| {{ #if: {{{mod|}}} | [[{{{mod}}}]] {{ #if: {{{mod2|}}} | ''{{{modtext|,}}}'' [[{{{mod2|''someone''}}}]] }}  | ''Not known'' }}
|-
! Setup:
| {{ #if: {{{setup|}}} | [[{{{setup}}}]] | ''Unknown'' }}
|-
! Status:
| {{{status|''Incomplete''}}}
|-
! Winner(s):
| {{ #if: {{{outcome|}}} | {{{outcome}}} {{ #if: {{{outcome2|}}} | , {{{outcome2|}}} }} | ''None yet'' }}
|-
| colspan="2" style="font-size: smaller;" | {{{notes|}}}
|}
</div>{{TOCright}}[[Category:Games played in {{{forum|MafiaScum}}}|{{{sort}}}]]
[[Category:{{{setup|Undefined Setup}}} Games|{{{sort}}}]]
[[Category:Games with {{{outcome|no}}} outcome|{{{sort}}}]]
{{ #if: {{{outcome2|}}} | [[Category:Games with {{{outcome2|no}}} outcome|{{{sort}}}]] }}
[[Category:{{{status|Incomplete}}} Games|{{{sort}}}]]
</includeonly>
<noinclude>
{{TOCright}}
==Syntax==
To insert this template into a page, use the following syntax:
<pre><nowiki>
{{gamebox
|name=
|sort=
|thread=
|forum=
|mod=
|mod2=
|modtext=
|setup=
|outcome=
|outcome2=
|status=
|notes=
|}}
</nowiki></pre>
The <code><mod2></code>, <code><modtext></code>, <code><outcome2></code>, & <code><notes></code> variables should only be needed in unusual situations.
==Variables==
*Name: the title of the game
:'''Note:''' The title of the gamebox will automatically be the title of the wiki page you place the gamebox on, if this field is left blank.
*Sort: the number of the game, for sorting purposes
:[[Mini Game|Mini]]s/[[Newbie Game|Newbie]]s should sort to three digits, ''i.e.'' 003. [[Large Normal]]/[[Open Game]]s should sort to two digits.
*Thread: the number of the game thread in the forums, ''not'' the full link
:see [[#Example|Example]] below for further information
*Forum: the name of the [[Forum]] this game is located in
*Mod: the name of the [[Moderator]] of this game
*Mod2: If necessary, list the [[backup mod|backup]]/replacement mod
*Modtext: why there was a second mod
:If no text is given, defaults to a comma, denoting [[co-moderator]]s
*Setup: the type of [[Setup]] used in this game
*Outcome: the winner of the game
*Outcome2: if necessary, additional winner
:Outcome should be given by [[Role]], not username; for example, [[SK]], not [[Thok]]
*Status: the status of the game
*Notes: anything else noteworthy about the game
==Example==
{| border="1" cellpadding="2" cellspacing="0"
|-
| width=70% | What you type
| width=30% | What it looks like
|- valign="top"
|
<pre><nowiki>
{{gamebox
{{gamebox
|name=Example Title
|name=Example Title
Line 88: Line 14:
|notes=this is an example of notes
|notes=this is an example of notes
|}}
|}}
</nowiki></pre>
*The number of the game thread can be found by looking at the URL of the game.
:Example: in the forums, the URL for Open 1 is as follows:
:<code><nowiki>http://www.mafiascum.net/forum/viewtopic.php?t=3952</nowiki></code>
:The number of the game thread directly follows "<code>t=</code>"; in this case, <code>3952</code>
|
<div style="float:right;">
{| class="infobox" style="border: 1px solid #999; width: 17em; text-align: left; font-size: 95%; margin-left: 1em; margin-bottom: 1em;"
|+ style="font-size: large;" |'''[http://www.mafiascum.net/forum/viewtopic.php?t=3952 Example Title]'''
|-
! Forum:
| [[Little Italy]]
|-
! Moderator(s):
| [[mith]] ''backed up by'' [[MeMe]]
|-
! Setup:
| [[Pie C9]]
|-
! Status:
| Completed
|-
! Winner(s):
| Mafia , Survivor
|-
| colspan="2" style="font-size: smaller;" | this is an example of notes
|}
</div>
|}
|}
[[Category:Templates|Gamebox]]
[[Category:Templates|Gamebox]]
</noinclude>
</noinclude>

Revision as of 05:05, 21 August 2007