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

Template:Gametable6: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 11: Line 11:
!width="{{#if: {{{entrywidth|}}} | {{{entrywidth}}} | 140 }}"|Entry
!width="{{#if: {{{entrywidth|}}} | {{{entrywidth}}} | 140 }}"|Entry
|-
|-
| {{#if: {{{namecolor|}}} | style="background:#{{{namecolor}}};" {{!}} }} {{#if: {{{thread|}}} | {{plink|t|{{{thread}}}|{{{name}}}}} | {{{name}}} }} || {{#if: {{{modcolor|}}} | style="background:#{{{modcolor}}};" {{!}} }} {{{mod}}} || {{#if: {{{rolecolor|}}} | style="background:#{{{rolecolor}}};" {{!}} }} {{#if: {{{role}}} | {{{role}}} | ? }} || {{#if: {{{fatecolor|}}} | style="background:#{{{fatecolor}}};" {{!}} }} {{#if: {{{fate}}} | {{{fate}}} | Currently Alive }} || {{#if: {{{decisioncolor|}}} | style="background:#{{{decisioncolor}}};" {{!}} }} {{#if: {{{decision}}} | {{{decision}}} | Pending }} || {{#if: {{{swacolor|}}} | style="background:#{{{swacolor}}};" {{!}} }}  {{#if: {{{swa}}} | {{{swa}}} | ? }} || {{#if: {{{timecolor|}}} | style="background:#{{{timecolor}}};" {{!}} }} {{{time}}} || {{#if: {{{entrycolor|}}} | style="background:#{{{entrycolor}}};" {{!}} }} {{{entry}}}
| {{#if: {{{namecolor|}}} | style="background:#{{{namecolor}}};" {{#if: {{{time2|}}} | rowspan="2" }} {{!}} | {{#if: {{{time2|}}} | rowspan="2" }} }} {{#if: {{{thread|}}} | {{plink|t|{{{thread}}}|{{{name}}}}} | {{{name}}} }} || {{#if: {{{modcolor|}}} | style="background:#{{{modcolor}}};" {{#if: {{{time2|}}} | rowspan="2" }} {{!}} | {{#if: {{{time2|}}} | rowspan="2" }} }} {{{mod}}} || {{#if: {{{rolecolor|}}} | style="background:#{{{rolecolor}}};" {{!}} }} {{#if: {{{role}}} | {{{role}}} | ? }} || {{#if: {{{fatecolor|}}} | style="background:#{{{fatecolor}}};" {{!}} }} {{#if: {{{fate}}} | {{{fate}}} | Currently Alive }} || {{#if: {{{decisioncolor|}}} | style="background:#{{{decisioncolor}}};" {{#if: {{{time2|}}} | rowspan="2" }} {{!}} | {{#if: {{{time2|}}} | rowspan="2" }} }} {{#if: {{{decision}}} | {{{decision}}} | Pending }} || {{#if: {{{swacolor|}}} | style="background:#{{{swacolor}}};" {{#if: {{{time2|}}} | rowspan="2" }} {{!}} | {{#if: {{{time2|}}} | rowspan="2" }} }}  {{#if: {{{swa}}} | {{{swa}}} | ? }} || {{#if: {{{timecolor|}}} | style="background:#{{{timecolor}}};" {{!}} }} {{{time}}} || {{#if: {{{entrycolor|}}} | style="background:#{{{entrycolor}}};" {{#if: {{{time2|}}} | rowspan="2" }} {{!}} | {{#if: {{{time2|}}} | rowspan="2" }} }} {{{entry}}}
{{#if: {{{time2|}}} |
{{!}}-
{{!}} {{#if: {{{role2color|}}} | style="background:#{{{role2color}}};" {{!}} }} {{#if: {{{role2}}} | {{{role2}}} | ? }} {{!}}{{!}} {{#if: {{{fate2color|}}} | style="background:#{{{fate2color}}};" {{!}} }} {{#if: {{{fate2}}} | {{{fate2}}} | Currently Alive }} {{!}}{{!}} {{#if: {{{time2color|}}} | style="background:#{{{time2color}}};" {{!}} }} {{{time2}}} }}
{{#if: {{{notes|}}} |
{{#if: {{{notes|}}} |
{{!}}- style="height:50px"
{{!}}- style="height:50px"
Line 46: Line 49:
|rolewidth=
|rolewidth=
|rolecolor=
|rolecolor=
|role2=
|role2color=
|fate=
|fate=
|fatewidth=
|fatewidth=
|fatecolor=
|fatecolor=
|fate2=
|fate2color=
|decision=
|decision=
|decisionwidth=
|decisionwidth=
Line 58: Line 65:
|timewidth=
|timewidth=
|timecolor=
|timecolor=
|time2=
|time2color=
|entry=
|entry=
|entrywidth=
|entrywidth=
Line 68: Line 77:
* All the ''-width variables'', which affect the width of the cell, are optional and should take a numeric value. You can remove them if they are not in use.
* All the ''-width variables'', which affect the width of the cell, are optional and should take a numeric value. You can remove them if they are not in use.
* For games with more than one thread, leave the ''thread'' variable empty and apply multiple '''[[Template:plainlink|plainlink]]''' formatting to ''name'' instead.
* For games with more than one thread, leave the ''thread'' variable empty and apply multiple '''[[Template:plainlink|plainlink]]''' formatting to ''name'' instead.
* This template does not work or games with revivals as it does do not support rowspan values. Use the base table instead.
* ''role2'', ''fate2'' and ''time2'' are optional and used for revivals.
* Empty ''role'' outputs a question mark.
* Empty ''role'' outputs a question mark.
* Empty ''fate'' outputs 'Currently Alive'.
* Empty ''fate'' outputs 'Currently Alive'.

Revision as of 05:30, 29 August 2012

Syntax

Short version

{{Gametable6
|number=
|name=
|thread=
|mod=
|role=
|rolecolor=
|fate=
|decision=
|decisioncolor=
|swa=
|time=
|entry=
|notes=
}}

Extended version

{{Gametable6
|number=
|name=
|namewidth=
|namecolor=
|thread=
|mod=
|modwidth=
|modcolor=
|role=
|rolewidth=
|rolecolor=
|role2=
|role2color=
|fate=
|fatewidth=
|fatecolor=
|fate2=
|fate2color=
|decision=
|decisionwidth=
|decisioncolor=
|swa=
|swawidth=
|swacolor=
|time=
|timewidth=
|timecolor=
|time2=
|time2color=
|entry=
|entrywidth=
|entrycolor=
|notes=
}}

Notes:

  • All the -color variables, which affect the background of the cell, are optional and should take RGB format without the #. You can remove them if they are not in use.
  • All the -width variables, which affect the width of the cell, are optional and should take a numeric value. You can remove them if they are not in use.
  • For games with more than one thread, leave the thread variable empty and apply multiple plainlink formatting to name instead.
  • role2, fate2 and time2 are optional and used for revivals.
  • Empty role outputs a question mark.
  • Empty fate outputs 'Currently Alive'.
  • Empty decision outputs 'Pending'.
  • Empty swa outputs a question mark.
  • The notes variable is optional and will not produce a new line if removed or left empty.