Difference between revisions of "Template:ProfileLink"

From Fallen Sword Wiki
Jump to: navigation, search
(New page: <includeonly>[http://www.fallensword.com/index.php?cmd=profile&player_id{{#switch:{{{1}}} | Belgrave = 699681 | CHiNback = 731698 | DavidAHare = 1650921 | #default = 31 }} {{{1|Hoofmaster}...)
 
Line 4: Line 4:
 
| DavidAHare = 1650921
 
| DavidAHare = 1650921
 
| #default = 31
 
| #default = 31
}} {{{1|Hoofmaster}}}]</includeonly><noinclude>
+
}} {{{2|{{{1|Hoofmaster}}}}}}]</includeonly><noinclude>
 
== How to Use ==
 
== How to Use ==
 
This template creates a link to a player page based on the player's name. However, it is necessary to put the player's ID into the template for it to work properly.
 
This template creates a link to a player page based on the player's name. However, it is necessary to put the player's ID into the template for it to work properly.
Line 10: Line 10:
 
To do this, edit the code and add <tt><nowiki>| Belgrave = 699681</nowiki></tt> but with yours or your target's information. Please keep the names in alphabetical order.
 
To do this, edit the code and add <tt><nowiki>| Belgrave = 699681</nowiki></tt> but with yours or your target's information. Please keep the names in alphabetical order.
  
Example:
+
Example: <tt><nowiki>{{ProfileLink|Belgrave}}</nowiki></tt> gives: {{ProfileLink|Belgrave}}
<tt><nowiki>{{ProfileLink|Belgrave}}</nowiki></tt> gives: {{ProfileLink|Belgrave}}
+
 
 +
There is an optional 2nd parameter where you can put in something besides the player's name.
 +
 
 +
Example: <tt><nowiki>{{ProfileLink|Belgrave|Belgrave's Link}}</nowiki></tt> gives: {{ProfileLink|Belgrave|Belgrave's Link}}
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 02:33, 16 September 2008

How to Use

This template creates a link to a player page based on the player's name. However, it is necessary to put the player's ID into the template for it to work properly.

To do this, edit the code and add | Belgrave = 699681 but with yours or your target's information. Please keep the names in alphabetical order.

Example: {{ProfileLink|Belgrave}} gives: Belgrave

There is an optional 2nd parameter where you can put in something besides the player's name.

Example: {{ProfileLink|Belgrave|Belgrave's Link}} gives: Belgrave's Link