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

Template:G: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|begin=<table cellpadding="4" border="1" style="border-collapse: collapse; border: 1px solid #aaa"><tr style="text-align: center; background-color: #f2f2f2; font-weight: bold">
|begin=<table cellpadding="4" border="1" style="border-collapse: collapse; border: 1px solid #aaa"><tr style="text-align: center; background-color: #f2f2f2; font-weight: bold">
<th>Game</th>
<th>Game</th>
{{ #ifeq: {{{wl|n}}} | y |<th>W/L</th>}}
{{ #ifeq: {{{mod|n}}} | y |<th>[[Moderator]]</th>}}
{{ #ifeq: {{{mod|n}}} | y |<th>[[Moderator]]</th>}}
{{ #ifeq: {{{role|n}}} | y |<th>[[Role]]</th>}}
{{ #ifeq: {{{role|n}}} | y |<th>[[Role]]</th>}}
Line 9: Line 8:
|end=</table>
|end=</table>
|<tr>
|<tr>
<td></td>
<td>{{plink|t|{{{plink}}}|{{{id}}}}} {{ #if: {{{name|}}} | — {{{name}}} }}</td>
<td style="font-weight: bold; color: {{ #switch: {{{wl|}}}
|win
|w=green">Win
|loss
|l=#c02">Loss
|draw
|d=#666">Draw
|black">}}</td>
{{ #if: {{{mod|}}} |<td>{{U|{{{mod}}}}}</td>}}
{{ #if: {{{mod|}}} |<td>{{U|{{{mod}}}}}</td>}}
</tr>}}</includeonly><noinclude>
{{ #if: {{{role|}}} |<td>[[{{{role}}}]]</td>}}
{{ #if: {{{fate|}}} |<td>{{ #if: {{{fatelink|}}} |{{plink|p|{{{fatelink}}}|{{{fate}}}}}|{{{fate}}}}}</td>}}
</tr>}}</includeonly><noinclude>{{Template
|Name=G
|Type=Info Box
|Type2=
|Type3=
|Sub=No
|Designer=Fenhl
|Designer2=
|Designer3=
|Notes=
}}


''In the works…''
 
This template creates a custom table with your record of played games.
 
The table must begin with an instance of this template that has {{{1}}} set to ''begin''. In this instance, you specify the columns of your table.
 
To include the colums ''Game'', ''foo'', ''bar'' and ''baz'', Use this:
<pre>
{{G|begin|foo=y|bar=y|baz=y}}
</pre>
 
The column ''Game'' is included by default.
 
The table must end with the following:
<pre>
{{G|end}}
</pre>
 
Between the begin and end instances, add one instance of this template for each of your games.


==Arguments==
==Arguments==
==={{{1}}}===
*Leave empty for a standard game entry.
*Set to ''begin'' for the table header.
*Ser to end for the table footer.


==={{{mod}}}===
==={{{mod}}}===


The game's moderator. '''''Requires the Moderator column'''''
The game's moderator. '''Requires the ''mod'' column'''
 
==={{{role}}}===
 
Your role. '''Requires the ''role'' column'''
 
==={{{fate}}}===
 
Did you die? If so, how? '''Requires the ''fate'' column'''


[[Category:Templates]][[Category:Fenhl's Templates]]
[[Category:Templates|{{PAGENAME}}]][[Category:Pimped by Fenhl]]


</noinclude>
</noinclude>

Latest revision as of 22:14, 21 November 2014

Name:
  • G
Type:
Sub-Template:
  • No
Designer:


This template creates a custom table with your record of played games.

The table must begin with an instance of this template that has {{{1}}} set to begin. In this instance, you specify the columns of your table.

To include the colums Game, foo, bar and baz, Use this:

{{G|begin|foo=y|bar=y|baz=y}}

The column Game is included by default.

The table must end with the following:

{{G|end}}

Between the begin and end instances, add one instance of this template for each of your games.

Arguments

{{{1}}}

  • Leave empty for a standard game entry.
  • Set to begin for the table header.
  • Ser to end for the table footer.

{{{mod}}}

The game's moderator. Requires the mod column

{{{role}}}

Your role. Requires the role column

{{{fate}}}

Did you die? If so, how? Requires the fate column