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

Template:Nchoice: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
(→‎Examples: darkred in example)
Line 24: Line 24:
:The RGB color for the '''role''' and '''srole''' text.  
:The RGB color for the '''role''' and '''srole''' text.  
:''Note: the {{tlx|rgb}} template is already included. Simply enter a color name directly.''
:''Note: the {{tlx|rgb}} template is already included. Simply enter a color name directly.''
::<code>ocolor=''nnnnnn''</code> ''(Note: omit the # symbol)''
::<code>rcolor=''xxyyzz''</code> ''(Note: omit the # symbol)''
:or
::<code>rcolor=''xyz''</code> ''(Note: CSS shorthand for 3 pairs}''
:or  
:or  
::<code>ocolor=''colorname''</code>
::<code>rcolor=''colorname''</code>
;name
;name
:The name(s) of the player who took this action
:The name(s) of the player who took this action
Line 36: Line 38:
:The RGB color for the '''outcome''' text
:The RGB color for the '''outcome''' text
:''Note: the {{tlx|rgb}} template is already included. Simply enter a color name directly.''
:''Note: the {{tlx|rgb}} template is already included. Simply enter a color name directly.''
::<code>ocolor=''nnnnnn''</code> ''(Note: omit the # symbol)''
::<code>ocolor=''xxyyzz''</code> ''(Note: omit the # symbol)''
:or  
:or  
::<code>ocolor=''xyz''</code> ''(Note: CSS shorthand for 3 pairs)''
:or
::<code>ocolor=''colorname''</code>
::<code>ocolor=''colorname''</code>



Revision as of 22:39, 21 August 2007


This is a template for Night Choices in Games

Syntax

{{nchoice
|role= 
|srole= 
|rcolor= 
|name= 
|target= 
|outcome= 
|ocolor= 
}}

Parameters

role
The role of the player who took this action
srole
Any sub-role of the role (optional)
rcolor
The RGB color for the role and srole text.
Note: the {{rgb}} template is already included. Simply enter a color name directly.
rcolor=xxyyzz (Note: omit the # symbol)
or
rcolor=xyz (Note: CSS shorthand for 3 pairs}
or
rcolor=colorname
name
The name(s) of the player who took this action
target
The name of the player who was targeted by this action
outcome
The result of the action
ocolor
The RGB color for the outcome text
Note: the {{rgb}} template is already included. Simply enter a color name directly.
ocolor=xxyyzz (Note: omit the # symbol)
or
ocolor=xyz (Note: CSS shorthand for 3 pairs)
or
ocolor=colorname

Examples

What you type What it looks like
{{nchoice
|role= Cop
|srole= Paranoid
|rcolor= 00f
|name= LyingBrian
|target= SigmaEpsilon
|outcome= GUILTY
|ocolor= a00
}}
  • Cop (Paranoid) { LyingBrian } | SigmaEpsilon | GUILTY
{{nchoice
|role= Serial Killer
|srole= 
|rcolor= green
|name= LyingBrian
|target= SigmaEpsilon
|outcome= FAILED
|ocolor= a00
}}
  • Serial Killer { LyingBrian } | SigmaEpsilon | FAILED
{{nchoice
|role= Mafia
|srole= Sicilian
|rcolor= darkred
|name= LyingBrian - Mr. Flay
|target= SigmaEpsilon
|outcome= SUCCESS
|ocolor= green
}}
  • Mafia (Sicilain) { LyingBrian - Mr. Flay } | SigmaEpsilon | SUCCESS

Using the template without naming the parameters:

Everything except colors must be on the same line!

{{nchoice |Mafia | | red
|LyingBrian | SigmaEpsilon |SUCCESS 
|green
}}
  • Mafia { LyingBrian } | SigmaEpsilon | SUCCESS