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
mNo edit summary
mNo edit summary
 
(47 intermediate revisions by 6 users not shown)
Line 1: Line 1:
<includeonly>*<span style="color:#{{{rcolor|000000}}}">'''{{{role|Unknown}}}''' {{ #ifeq: {{{srole| }}} | | |({{{srole}}})}}</span> ''{ {{{name|Unknown }}} }'' | '''{{{target|Unknown}}}''' | <span style="color:#{{{ocolor|000000}}}">''{{{outcome|Unknown}}}''</span></includeonly><noinclude>This is a template for Night Choices in Games
<includeonly>*<span style="color:{{rgb|{{{rcolor|{{{2|000}}}}}}}}">''{{{role|{{{1|Role}}}}}}''</span> ('''{{{name|{{{3|Player}}}}}}''') - ''{{{target|{{{4|Target}}}}}}'' (<span style="color:{{rgb|{{{ocolor|{{{6|000}}}}}}}}">{{{outcome|{{{5|Result}}}}}}</span>)</includeonly>
<noinclude>
This is a template for Night Choices in Games


== Syntax ==
== Syntax ==
Line 13: Line 15:
}}
}}
</pre>
</pre>
 
<pre>
{{nchoice|role= |srole= |rcolor= |name= |target= |outcome= |ocolor= }}
</pre>
<pre>
{{nchoice| | | | | | | }}
</pre>
== Parameters ==
== Parameters ==
The paramters of the template are as follows:
;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 {{tlx|rgb}} template is included. Simply enter a color name directly.''
::<code>rcolor=''rrggbb''</code> ''(Note: omit the # symbol)''
:or
::<code>rcolor=''rgb''</code> ''(Note:  shorthand for 3 pairs, omit the # symbol)''
:or
::<code>rcolor=''colorname''</code>
;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 {{tlx|rgb}} template is included. Simply enter a color name directly.''
::<code>ocolor=''rrggbb''</code> ''(Note: omit the # symbol)''
:or
::<code>ocolor=''rgb''</code> ''(Note:  shorthand for 3 pairs, omit the # symbol)''
:or
::<code>ocolor=''colorname''</code>


*role: the role of the player who took this action
== Examples ==
:'''Example:''' <font color=0000ff>Cop</font>
{| class="wikitable"
*srole: any sub-role of the role
:'''Example:''' <font color=0000ff>(Paranoid)</font>
*rcolor: the RGB color for the "role" & "srole" text
:'''Example:''' <code>0000ff</code>
*name: the name 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
:'''Example:''' <font color=00aa00>''SUCCESS''</font>
*ocolor: the RGB color for the "outcome" text
:'''Example:''' <code>00aa00</code>
 
=== Examples ===
{| border="1" cellpadding="2" cellspacing="0"
|-  
|-  
| width=50% | What you type
! width=30% | What you type
| width=50% | What it looks like
! width=70% | What it looks like
|-  
|-  
|
|
Line 41: Line 60:
|role= Cop
|role= Cop
|srole= Paranoid
|srole= Paranoid
|rcolor= 0000ff
|rcolor= 00f
|name= LyingBrian
|name= LyingBrian
|target= SigmaEpsilon
|target= SigmaEpsilon
|outcome= GUILTY
|outcome= GUILTY
|ocolor= aa0000
|ocolor= a00
}}
}}
</pre>
</pre>
Line 51: Line 70:
{{nchoice
{{nchoice
|role= Cop
|role= Cop
|srole= Naive
|srole= Paranoid
|rcolor= 0000ff
|rcolor= 00f
|name= LyingBrian
|name= LyingBrian
|target= SigmaEpsilon
|target= SigmaEpsilon
|outcome= GUILTY
|outcome= GUILTY
|ocolor= aa0000
|ocolor= a00
}}
|-
|
<pre>
{{nchoice
|role= Serial Killer
|srole=
|rcolor= green
|name= LyingBrian
|target= SigmaEpsilon
|outcome= FAILED
|ocolor= a00
}}
</pre>
|
{{nchoice
|role= Serial Killer
|srole=
|rcolor= green
|name= LyingBrian
|target= SigmaEpsilon
|outcome= FAILED
|ocolor= a00
}}
}}
|-
|-
Line 63: Line 105:
{{nchoice
{{nchoice
|role= Mafia
|role= Mafia
|srole=  
|srole= Sicilian
|rcolor= ff0000
|rcolor= darkred
|name= LyingBrian
|name= LyingBrian - Mr. Flay
|target= SigmaEpsilon
|target= SigmaEpsilon
|outcome= SUCCESS
|outcome= SUCCESS
|ocolor= 00aa00
|ocolor= green
}}
}}
</pre>
</pre>
Line 74: Line 116:
{{nchoice
{{nchoice
|role= Mafia
|role= Mafia
|srole=  
|srole= Sicilain
|rcolor= ff0000
|rcolor= darkred
|name= LyingBrian
|name= LyingBrian - Mr. Flay
|target= SigmaEpsilon
|target= SigmaEpsilon
|outcome= SUCCESS
|outcome= SUCCESS
|ocolor= 00aa00
|ocolor= green
}}
}}
|}
|}
Using the template without naming the parameters:
'''Everything must be on the same line!'''
{| class="wikitable"
|-
|
<code><nowiki>
{{nchoice|Mafia||red|LyingBrian|SigmaEpsilon|SUCCESS|green}}
</nowiki></code>
|
{{nchoice|Mafia||red|LyingBrian|SigmaEpsilon|SUCCESS|green}}
|}
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 13:20, 29 August 2012


This is a template for Night Choices in Games

Syntax

{{nchoice
|role= 
|srole= 
|rcolor= 
|name= 
|target= 
|outcome= 
|ocolor= 
}}
{{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 (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 (LyingBrian - Mr. Flay) - SigmaEpsilon (SUCCESS)

Using the template without naming the parameters:

Everything must be on the same line!

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

  • Mafia (red) - LyingBrian (SigmaEpsilon)