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

Template:Player: Difference between revisions

From MafiaWiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(65 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<includeonly>'''''[[{{{player}}}]]''''' | [[#{{{link}}}|&nbsp;]] | [[{{{role|&nbsp;}}}]]</includeonly><noinclude>
<includeonly>*'''{{ #ifeq: {{{re|}}} |||<s>{{U|{{{re}}}}}</s>&nbsp;}}{{ #ifeq: {{{re2|}}} |||<s>{{U|{{{re2}}}}}</s>&nbsp;}}{{ #ifeq: {{{re3|}}} |||<s>{{U|{{{re3}}}}}</s>&nbsp;}}{{ #ifeq: {{{1| }}} | |Player Name|{{U|{{{1}}}}}}}'''{{ #ifeq: {{{2| }}} | ||&nbsp;''([[{{{link|{{{2}}}}}}|{{{2}}}]])''}}{{ #ifeq: {{{3| }}} | ||&nbsp;[[#{{{3}}}|{{{3}}}]]}}</includeonly><noinclude>
{{TOCright}}
{{TOCright}}
This template displays a player's name and a link to that player's role in a particular game.
This template displays a player's name and describes to that player's role in a particular game.
==Syntax==
 
== Syntax ==
 
<pre>
<pre>
{{player| | | }}
{{player|LyingBrian|Townie|Day 1}}
</pre>
</pre>
==Variables==
 
*1: This is the Player's Name. In the [[#Example|Example]] below, this is '''''[[LyingBrian]]'''''.
== Usage ==
*2: This is the Heading on the page where this template is that contains further information on a player's role. Typing a space will not create a link.
 
:'''Note:''' If there is no Heading matching what you type, the link does nothing.
*The first section is the player's name. It will bolded and linked. In the [[#Example|example]] below, this is "LyingBrian", which shows up as "'''{{U|LyingBrian}}'''". This should not be left blank.
*3: This is the Text of the link. Typing a space will not create a link.
*The second section is the role that the player played. If left blank, it is not displayed (implying that the player's role is not yet public).
:'''Note:''' If you use this variable, you MUST use the 2nd variable as well, or the link created will redirect to the Main Page.
*The third section is the location on the page where further information on a player's role can be found. It is shown in italics. If left blank, it is not displayed (implying that the player is still alive).
==Example==
*If you want the role name to link to another page (e.g. for flavor role names), use '''link=Page name'''. For example:
 
<pre>
{{player|Erratus Apathos|Compulsive Town Doctor|link=Doctor}}
</pre>
{{player|Erratus Apathos|Compulsive Town Doctor|link=Doctor}}
 
*If the player has replaced another player, use '''re=replacedPlayer'''. For example:
 
<pre>
{{player|DarthYoshi|re=lynchking}}
</pre>
{{player|DarthYoshi|re=lynchking}}
 
=== Example ===
{| border="1" cellpadding="2" cellspacing="0"
{| border="1" cellpadding="2" cellspacing="0"
|-  
|-  
| width=50% | What you type
| width=50% | What you type
| width=50% | What it looks like
| width=50% | What it looks like
|- valign="top"
|-  
|
<pre>
{{player|LyingBrian|Townie|Day 1}}
</pre>
|
{{player|LyingBrian|Townie|Day 1}}
|-
|
<pre>
{{player|LyingBrian}}
</pre>
|
{{player|LyingBrian}}
|-
|
<pre>
{{player|LyingBrian||Day 1}}
</pre>
|
{{player|LyingBrian||Day 1}}
|-
|
<pre>
{{player|LyingBrian|Townie}}
</pre>
|
{{player|LyingBrian|Townie}}
|-
|
|
<pre>
<pre>
{{player|LyingBrian|Day 1|Townie}}
{{player||Townie|Day 1}}
</pre>
</pre>
|
|
{{player|LyingBrian|Day 1|Townie}}
{{player||Townie|Day 1}}
|}
|}
[[Category:Templates|P]]
[[Category:Templates|Player]]
</noinclude>
</noinclude>

Latest revision as of 10:42, 19 April 2011

This template displays a player's name and describes to that player's role in a particular game.

Syntax

{{player|LyingBrian|Townie|Day 1}}

Usage

  • The first section is the player's name. It will bolded and linked. In the example below, this is "LyingBrian", which shows up as "LyingBrian". This should not be left blank.
  • The second section is the role that the player played. If left blank, it is not displayed (implying that the player's role is not yet public).
  • The third section is the location on the page where further information on a player's role can be found. It is shown in italics. If left blank, it is not displayed (implying that the player is still alive).
  • If you want the role name to link to another page (e.g. for flavor role names), use link=Page name. For example:
{{player|Erratus Apathos|Compulsive Town Doctor|link=Doctor}}
  • If the player has replaced another player, use re=replacedPlayer. For example:
{{player|DarthYoshi|re=lynchking}}

Example

What you type What it looks like
{{player|LyingBrian|Townie|Day 1}}
{{player|LyingBrian}}
{{player|LyingBrian||Day 1}}
{{player|LyingBrian|Townie}}
{{player||Townie|Day 1}}