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
Line 1: Line 1:
<includeonly>'''''[[{{{1}}}]]''''' | [[#{{{2|&nbsp;}}}|{{{3|&nbsp;}}}]]</includeonly><noinclude>
<includeonly>'''''[[{{{1}}}]]''''' | [[#{{{2|&nbsp;}}}|{{{3|&nbsp;}}}]]</includeonly><noinclude>
== Documentation ==
{{TOCright}}
This template displays a player's name and link to that player's role in a particular game, as well as a link to the player's profile.
This template displays a player's name and a link to that player's role in a particular game.
==Syntax==
<pre>
<pre>
{{||}}
{{player| | | }}
</pre>
</pre>
 
==Variables==
Note that ''role'' must be linked to the player's role in that game. The default is "Role unknown" with no link.
*1: This is the Player's Name. In the [[#Example|Example]] below, this is '''''[[LyingBrian]]'''''.
 
*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.
*3: This is the Text of the link. Typing a space will not create a link.
:'''Note:''' If you use this variable, you MUST use the 2nd variable as well, or the link created will redirect to the Main Page.
==Example==
{| border="1" cellpadding="2" cellspacing="0"
|-
| width=50% | What you type
| width=50% | What it looks like
|- valign="top"
|
<pre>
{{player|LyingBrian|Day 1|Townie}}
</pre>
|
{{player|LyingBrian|Day 1|Townie}}
|}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 23:12, 18 August 2007

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

Syntax

{{player| | | }}

Variables

  • 1: This is the Player's Name. In the Example below, this is LyingBrian.
  • 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.
  • 3: This is the Text of the link. Typing a space will not create a link.
Note: If you use this variable, you MUST use the 2nd variable as well, or the link created will redirect to the Main Page.

Example

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

LyingBrian | Townie