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
(fix again)
No edit summary
 
(111 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly><div style="float:right;">
<noinclude>{{Template
{| class="infobox" style="border: 1px solid #999; width: 17em; text-align: left; font-size: 95%; margin-left: 1em; margin-bottom: 1em;"
|Name=GameBox
|+ style="font-size: large;" |'''[http://www.mafiascum.net/forum/viewtopic.php?t={{{thread}}} {{{name|{{PAGENAME}}}}}]'''
|Type=Info Box
|Type2=
|Type3=
|Sub=No
|Designer=Mr. Flay
|Designer2=LyingBrian
|Designer3=SigmaEpsilon
|Notes=
}}
 
<!-- note: when editing the role template, be sure to edit any major changes into the examples -->
<!--  -->
<!--  -->
</noinclude><includeonly>{| cellpadding="0" cellspacing="0" style="clear:right; float:right; margin:0px 5px 5px 5px; padding:5px 5px 0px 0px; width:250px; border:#AAA solid 1px; background-color:#FFF"
|
{| style="background:#EEE; border:#AAA solid 1px; width: 250px; margin: 0px 0px 5px 5px;"
|- align="center" style="font-size: 11pt;"
|'''{{ #if: {{{thread| }}} | {{plainlink|t|{{{thread}}}|{{{name|{{PAGENAME}} }}} }} | [[{{PAGENAME}}]] }}'''
|}
{| cellpadding="2" cellspacing="2" style="border:#AAA solid 1px; width: 250px; text-align: left; font-size: 8pt; margin: 0px 0px 5px 5px;"
| style="background:#EEE;" align="center" width="075" | [[Forum]]:
| width="175" | {{ #if: {{{forum| }}} | [[{{{forum}}}]] | ''<span class="plainlinks">[http://www.mafiascum.net/forum/index.php Forum Index]</span>'' }}
|-  
|-  
! style="border:none" | [[Forum]]:
| style="background:#EEE;" align="center" | [[Game Moderator|Moderator(s)]]:  
| style="border:none" | {{ #if: {{{forum|}}} | [[{{{forum}}}]] | ''Not filled in''}}
| {{ #if: {{{mod|}}} | {{U|{{{mod}}}}}{{ #if: {{{mod2|}}}| {{ #if: {{{modtext|}}}|&nbsp;''{{{modtext}}}'' [[{{{mod2}}}]]|, [[{{{mod2}}}]] }}| {{#if: {{{modtext|}}}| '''ERROR!'''|}} }}  | ''[[:Category:Moderators|Unknown]]'' }}
|-  
|-  
! style="border:none" |  [[Moderator]](s):  
| style="background:#EEE;" align="center" |  <!-- [[:Category:Variations|Setup]]: -->
| style="border:none" | {{ #if: {{{mod|}}} | [[{{{mod}}}]] {{ #if: {{{mod2|}}} | ''{{{modtext|,}}}'' [[{{{mod2|''someone''}}}]] }} | ''Not known'' }}
| {{ #if: {{{setup|}}} | {{#ifexist: {{{setup}}} setup | [[{{{setup}}} setup|{{{setup}}}]] | [[{{{setup}}}]] }} | ''Unknown'' }}
|-  
|-  
! style="border:none" |  [[Setup]]:
| style="background:#EEE;" align="center" | Status:
| style="border:none" | {{ #if: {{{setup|}}} | [[{{{setup}}}]] | ''Unknown'' }}
| {{{status|''Ongoing''}}}
|-  
|-  
! style="border:none" |  Status:
| style="background:#EEE;" align="center" |  Winner(s):
| style="border:none" | {{{status|''Incomplete''}}}
| {{ #if: {{{outcome|}}} | {{{outcome}}}{{ #if: {{{outcome2|}}} |, {{{outcome2|}}} }} | ''no outcome yet'' }}
|-
{{ #if: {{{notes|}}}|
! style="border:none" |  Winner(s):
{{!}}-
| style="border:none" | {{ #if: {{{outcome|}}} | {{{outcome}}} {{ #if: {{{outcome2|}}} | , {{{outcome2|}}} }} | ''None yet'' }}
{{!}} colspan="2" style="font-size: smaller; border:none;" {{!}} {{{notes|}}}
}}
|}
|-
|-
| style="border:none" colspan="2" style="font-size: smaller;" | {{{notes|}}}
| {{TOCubx}}
|}
|}
</div>
{{ #if: {{{forum|}}} | [[Category:Games played in {{{forum|MafiaScum}}}|{{{sort}}}]] }} {{ #if: {{{setup|}}} | <!-- [[Category:{{{setup|Undefined Setup}}} Games|{{{sort}}}]] --> }} {{ #if: {{{outcome|}}} | [[Category:Games with {{{outcome|no}}} outcome|{{{sort}}}]] }} {{ #if: {{{outcome2|}}} | [[Category:Games with {{{outcome2|no}}} outcome|{{{sort}}}]] }} {{ #if: {{{status|}}} | [[Category:{{{status|Incomplete}}} Games|{{{sort}}}]] }}</includeonly><noinclude>{{TOCright}}
{{ #if: {{NAMESPACE}}||{{TOCright}} }}
== Summary ==
[[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>


==Syntax==
== Syntax ==
To insert this template into a page, use the following syntax:
=== Standard ===
<pre>
{{gamebox
|name=
|sort=
|thread=
|forum=
|mod=
|setup=
|outcome=
|status=
|}}
</pre>
=== Extended ===
<pre>
<pre>
{{gamebox
{{gamebox
|name=     the title of the game
|name=
|sort=     the number of the game, for sorting purposes
|sort=
|thread=   the number of the game thread in the forums, ''not'' the full link
|thread=
|forum=     the name of the forum this game is located in
|forum=
|mod=       the name of the moderator of this game
|mod=
|mod2=     If necessary, list the backup/replacement mod
|mod2=
|modtext=   why there was a backup moderator
|modtext=
|setup=     the type of setup used in this game
|setup=
|outcome=   the winner of the game
|outcome=
|outcome2= if necessary, additional winner
|outcome2=
|status=   the status of the game (complete, incomplete, etc.)
|status=
|notes=     anything else noteworthy about the game
|notes=
|}}
|}}
</pre>
</pre>
The <code><mod2></code>, <code><modtext></code>, <code><outcome2></code>, & <code><notes></code> variables should only be needed in unusual situations.
:''the following parameters should only be needed in unusual situations:''
== Usage ==
:*{{{mod2}}}
'''Notes:'''  
:*{{{modtext}}}
*The title of the gamebox will automatically be the title of the wiki page you place the gamebox on, if ''name'' is left blank.
:*{{{outcome2}}}
*[[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.
:*{{{notes}}}
*See [[#Example|Example]] below for further information on thread links
== Parameters ==
*If no text is given for ''modtext'', this field defaults to a comma, denoting [[co-moderator]]s
=== {{{name}}} ===
*''Outcome'' should be given by [[Role]], not username; for example, [[Serial Killer]], not [[Thok]]
: '''the title of the game'''
::''note: the title of the gamebox will automatically be the title of the wiki page 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 (e.g. '''003''')
::''[[Large Normal]]/[[Open Game]]s should sort to two digits (e.g. '''02''')
 
=== {{{thread}}} ===
: '''the number of the game thread in the forums, ''not'' the full link'''
::''The number of the game thread can be found by looking at the URL of the game.''
: '''''Example:'''''
::in the forums, the URL for {{plainlink|t|3952|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>
 
=== {{{forum}}} ===
:'''the name of the [[forum]] this game is located in'''
::This should be "New York", "Little Italy", "Coney Island", "Theme Park", or "The Road to Rome"
 
=== {{{mod}}} ===
:'''the name of the [[moderator]] of this game'''
 
=== {{{mod2}}} ===
:'''list the [[backup mod|backup]]/replacement mod''' <small>''(optional)''</small>
 
=== {{{modtext}}} ===
:'''the reason a second mod was needed''' <small>''(optional)''</small>
::''note: if {{{mod2}}} contains text, and this parameter is left blank, it will automatically display a comma, denoting [[co-moderator]]s''
 
=== {{{setup}}} ===
:'''the type of [[setup]] used in this game'''
::This should be "Open", "F11", "C9", "Closed", etc.
 
=== {{{outcome}}} ===
:'''the winner of the game'''
::''note: outcome should be given by [[role]], not username; for example, [[Serial Killer]], not [[Thok]]''


=== {{{outcome2}}} ===
:'''the additional winner of the game''' <small>''(optional)''</small>
::''note: outcome2 should also be given by [[role]], not username; for example, [[Serial Killer]], not [[Thok]]''


==Example==
=== {{{status}}} ===
:'''the [[status]] of the game'''
::This should be "Abandoned", "Completed", "Ongoing", "Upcoming", or "Ruined".
 
=== {{{notes}}} ===
:'''anything else noteworthy about the game''' <small>''(optional)''</small>
 
== Examples ==
{| class="wikitable"
{| class="wikitable"
|-  
|-  
! width=70% | What you type
! What you type
! width=30% | What it looks like
! What it looks like
|-
|
<pre>
{{gamebox
|name=Example Title
|sort=00
|thread=3952
|forum=Little Italy
|mod=mith
|mod2=
|modtext=
|setup=Closed
|outcome=Mafia
|outcome2=
|status=Completed
|notes=
|}}
</pre>
|
{{gamebox
|name=Example Title
|sort=00
|thread=3952
|forum=Little Italy
|mod=mith
|mod2=
|modtext=
|setup=Closed
|outcome=Mafia
|outcome2=
|status=Completed
|notes=
|}}
|- valign="top"
|- valign="top"
|
|
Line 74: Line 182:
|mod2=MeMe
|mod2=MeMe
|modtext=backed up by
|modtext=backed up by
|setup=Pie C9
|setup=C9
|outcome=Mafia
|outcome=Mafia
|outcome2=Survivor
|outcome2=Survivor
|status=Completed
|status=Completed
|notes=this is an example of notes
|notes=This is an example of notes
|}}
|}}
</pre>
</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>
|
|
{{gamebox
{{gamebox
Line 94: Line 198:
|mod2=MeMe
|mod2=MeMe
|modtext=backed up by
|modtext=backed up by
|setup=Pie C9
|setup=C9
|outcome=Mafia
|outcome=Mafia
|outcome2=Survivor
|outcome2=Survivor
|status=Completed
|status=Completed
|notes=this is an example of notes
|notes=This is an example of notes
}}
|}}
|- valign="top"
|
<pre>
{{gamebox
|name=Example Title
|sort=00
|thread=3952
|forum=Little Italy
|mod=mith
|mod2=MeMe
|modtext=
|setup=C9
|outcome=Mafia
|outcome2=
|status=Completed
|notes=
|}}
</pre>
|
{{gamebox
|name=Example Title
|sort=00
|thread=3952
|forum=Little Italy
|mod=mith
|mod2=MeMe
|modtext=
|setup=C9
|outcome=Mafia
|outcome2=
|status=Completed
|notes=
|}}
|}
|}
[[Category:Templates|Gamebox]]
[[Category:Templates|Gamebox]]
</noinclude>
</noinclude>

Latest revision as of 22:19, 21 November 2014

Name:
  • GameBox
Type:
Sub-Template:
  • No
Designers:


Summary

Syntax

Standard

{{gamebox
|name= 
|sort= 
|thread= 
|forum= 
|mod= 
|setup= 
|outcome= 
|status= 
|}}

Extended

{{gamebox
|name=
|sort=
|thread=
|forum=
|mod=
|mod2=
|modtext=
|setup=
|outcome=
|outcome2=
|status=
|notes=
|}}
the following parameters should only be needed in unusual situations:
  • {{{mod2}}}
  • {{{modtext}}}
  • {{{outcome2}}}
  • {{{notes}}}

Parameters

{{{name}}}

the title of the game
note: the title of the gamebox will automatically be the title of the wiki page if this field is left blank

{{{sort}}}

the number of the game (for sorting purposes)
Minis/Newbies should sort to three digits (e.g. 003)
Large Normal/Open Games should sort to two digits (e.g. 02)

{{{thread}}}

the number of the game thread in the forums, not the full link
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:
http://www.mafiascum.net/forum/viewtopic.php?t=3952
the number of the game thread directly follows t=; in this case, 3952

{{{forum}}}

the name of the forum this game is located in
This should be "New York", "Little Italy", "Coney Island", "Theme Park", or "The Road to Rome"

{{{mod}}}

the name of the moderator of this game

{{{mod2}}}

list the backup/replacement mod (optional)

{{{modtext}}}

the reason a second mod was needed (optional)
note: if {{{mod2}}} contains text, and this parameter is left blank, it will automatically display a comma, denoting co-moderators

{{{setup}}}

the type of setup used in this game
This should be "Open", "F11", "C9", "Closed", etc.

{{{outcome}}}

the winner of the game
note: outcome should be given by role, not username; for example, Serial Killer, not Thok

{{{outcome2}}}

the additional winner of the game (optional)
note: outcome2 should also be given by role, not username; for example, Serial Killer, not Thok

{{{status}}}

the status of the game
This should be "Abandoned", "Completed", "Ongoing", "Upcoming", or "Ruined".

{{{notes}}}

anything else noteworthy about the game (optional)

Examples

What you type What it looks like
{{gamebox
|name=Example Title
|sort=00
|thread=3952
|forum=Little Italy
|mod=mith
|mod2=
|modtext=
|setup=Closed
|outcome=Mafia
|outcome2=
|status=Completed
|notes=
|}}
Example Title
Forum: Little Italy
Moderator(s): mith
Closed
Status: Completed
Winner(s): Mafia


{{gamebox
|name=Example Title
|sort=00
|thread=3952
|forum=Little Italy
|mod=mith
|mod2=MeMe
|modtext=backed up by
|setup=C9
|outcome=Mafia
|outcome2=Survivor
|status=Completed
|notes=This is an example of notes
|}}
Example Title
Forum: Little Italy
Moderator(s): mith backed up by MeMe
C9
Status: Completed
Winner(s): Mafia, Survivor
This is an example of notes


{{gamebox
|name=Example Title
|sort=00
|thread=3952
|forum=Little Italy
|mod=mith
|mod2=MeMe
|modtext=
|setup=C9
|outcome=Mafia
|outcome2=
|status=Completed
|notes=
|}}
Example Title
Forum: Little Italy
Moderator(s): mith, MeMe
C9
Status: Completed
Winner(s): Mafia