Difference between revisions of "Template:Profile"

From The Shartak Wiki
Jump to navigationJump to search
(Created to make profile links easier to use and change in the future.)
 
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>[http://www.shartak.com/profile.cgi?id={{{2}}} {{{1}}}]</includeonly><noinclude>
+
<includeonly>{{#ifeq:{{{1|}}}|||{{#ifeq:{{{2|}}}||[http://www.shartak.com/profile.cgi?name={{{1}}} {{{1}}}]|[http://www.shartak.com/profile.cgi?id={{{1}}} {{{2}}}]}}}}</includeonly><noinclude>
This template creates links to a player's profile given their ID and name.
+
This template creates a link to a player's profile given their ID (optional as the first parameter) and name (required as the last parameter).
  
 
{| border="1" cellpadding="5" cellspacing="1" style="border: solid 1px #ccc; border-collapse: collapse; background-color: #f9f9f9;"
 
{| border="1" cellpadding="5" cellspacing="1" style="border: solid 1px #ccc; border-collapse: collapse; background-color: #f9f9f9;"
 
|-bgcolor="#ddd"
 
|-bgcolor="#ddd"
 
!Input !! Output
 
!Input !! Output
 +
|-
 +
|<nowiki>{{profile|Elembis}}</nowiki> || {{profile|Elembis}}
 
|-
 
|-
 
|<nowiki>{{profile|2445|Elembis}}</nowiki> || {{profile|2445|Elembis}}
 
|<nowiki>{{profile|2445|Elembis}}</nowiki> || {{profile|2445|Elembis}}
 
|}
 
|}
  
[[Category:Templates]]</noinclude>
+
[[Category:Templates|Profile]]</noinclude>

Latest revision as of 22:55, 3 September 2008

This template creates a link to a player's profile given their ID (optional as the first parameter) and name (required as the last parameter).

Input Output
{{profile|Elembis}} Elembis
{{profile|2445|Elembis}} Elembis