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
(fix "Variables" section to match current form of template, added spacing to make wikicode easier to read.)
Line 1: Line 1:
<includeonly>:* '''[[{{{1}}}]]''' | ''{{ #ifeq: {{{2| }}} | |Alive|[[#{{{2}}}|{{{2}}}]]}}'' | {{ #ifeq: {{{3| }}} | |Unknown|{{{3}}}}}</includeonly><noinclude>
<includeonly>:* '''{{ #ifeq: {{{1| }}} | |Name|[[{{{2}}}]]}}''' | ''{{ #ifeq: {{{2| }}} | |Alive|{{{2}}}}}'' | {{ #ifeq: {{{3| }}} | |Unknown|{{{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| | | }}
</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 "'''[[LyingBrian]]'''". If left blank, it defaults to "Name"
*3: This is the Text of the link. Typing a space will not create a link.
*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''".
:'''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 role that the player played. If left blank, it defaults to "Unknown".
==Examples==
 
=== Example ===
{| border="1" cellpadding="2" cellspacing="0"
{| border="1" cellpadding="2" cellspacing="0"
|-  
|-  

Revision as of 22:09, 19 August 2007

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

Syntax

{{player| | | }}

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". If left blank, it defaults to "Name"
  • 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 third section is the role that the player played. If left blank, it defaults to "Unknown".

Example

What you type What it looks like
{{player|LyingBrian|Day 1|Townie}}
{{Player|LyingBrian| | }}
  • [[ ]] | Alive | Unknown
{{Player|LyingBrian|Day 1| }}
{{Player|LyingBrian| |Townie}}
  • [[ ]] | Alive | Townie