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
(Edited links in template...)
No edit summary
 
(12 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>'''{{ #ifeq: {{{1| }}} | |Name|[[{{{1}}}]]}}''' ''{{ #ifeq: {{{2| }}} | |(Unknown)|([[#{{{2}}}|{{{2}}}]])}}'' - {{ #ifeq: {{{3| }}} | |Alive|[[#{{{3}}}|{{{3}}}]]}}</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 describes 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.
Line 6: Line 6:


<pre>
<pre>
{{player| | | }}
{{player|LyingBrian|Townie|Day 1}}
</pre>
</pre>


== Usage ==
== Usage ==


*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 "'''[[LyingBrian]]'''". If left blank, it defaults to "Name"
*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.
*The second 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 defaults to "''Alive''".
*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 role that the player played. If left blank, it defaults to "Unknown".
*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:
 
<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 ===
=== Example ===
Line 23: Line 36:
|
|
<pre>
<pre>
{{player|LyingBrian |Townie|Day 1 }}
{{player|LyingBrian|Townie|Day 1}}
</pre>
</pre>
|
|
{{player|LyingBrian |Townie|Day 1 }}
{{player|LyingBrian|Townie|Day 1}}
|-
|-
|
|
<pre>
<pre>
{{player|LyingBrian | | }}
{{player|LyingBrian}}
</pre>
</pre>
|
|
{{player|LyingBrian | | }}
{{player|LyingBrian}}
|-
|-
|
|
<pre>
<pre>
{{player|LyingBrian | |Day 1 }}
{{player|LyingBrian||Day 1}}
</pre>
</pre>
|
|
{{player|LyingBrian | |Day 1 }}
{{player|LyingBrian||Day 1}}
|-
|-
|
|
<pre>
<pre>
{{player|LyingBrian |Townie| }}
{{player|LyingBrian|Townie}}
</pre>
</pre>
|
|
{{player|LyingBrian |Townie| }}
{{player|LyingBrian|Townie}}
|-
|-
|
|
<pre>
<pre>
{{player| |Townie|Day 1 }}
{{player||Townie|Day 1}}
</pre>
</pre>
|
|
{{player| |Townie|Day 1 }}
{{player||Townie|Day 1}}
|}
|}
[[Category:Templates|Player]]
[[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}}