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
m (→‎Parameters: update again)
No edit summary
Line 15: Line 15:
}}
}}
</pre>
</pre>
 
<pre>
{{nchoice| | | | | | | }}
</pre>
== Parameters ==
== Parameters ==
;role
;role
Line 118: Line 120:
|ocolor= green
|ocolor= green
}}
}}
|-
|}
|
Using the template without naming the parameters:
Using the template without naming the parameters:


'''Everything except colors must be on the same line!'''
'''Everything except colors must be on the same line!'''
 
{| class="wikitable"
|-
|
<pre>
<pre>
{{nchoice |Mafia | | red
{{nchoice|Mafia||red|LyingBrian|SigmaEpsilon|SUCCESS|green}}
|LyingBrian | SigmaEpsilon |SUCCESS  
|green
}}
</pre>
</pre>
|
|
{{nchoice |Mafia | | red
{{nchoice|Mafia||red|LyingBrian|SigmaEpsilon|SUCCESS|green}}
|LyingBrian |SigmaEpsilon |SUCCESS  
|green
}}
|}
|}
</noinclude>
</noinclude>

Revision as of 22:47, 21 August 2007


This is a template for Night Choices in Games

Syntax

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

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: an {{rgb}} template is included. Simply enter a color name directly.
rcolor=rrggbb (Note: omit the # symbol)
or
rcolor=rgb (Note: shorthand for 3 pairs, omit the # symbol)
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: an {{rgb}} template is included. Simply enter a color name directly.
ocolor=rrggbb (Note: omit the # symbol)
or
ocolor=rgb (Note: shorthand for 3 pairs, omit the # symbol)
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