Difference between revisions of "Template:Profile"

From The Shartak Wiki
Jump to navigationJump to search
m (Reverted to the old, working version; I'll work on the ParserFunctions stuff somewhere else.)
m (Compensated for omissions of the name tag by using the ID (italicized) as a substitute.)
Line 1: Line 1:
<includeonly>[http://www.shartak.com/profile.cgi?id={{{1}}} {{{2}}}]</includeonly><noinclude>
+
<includeonly>{{
This template creates a link to a player's profile given their ID and name.
+
ifeq: {{{1|}}}|||{{
 +
  ifeq: {{{2|}}}||[http://www.shartak.com/profile.cgi?id={{{1}}} ''{{{1}}}'']|[http://www.shartak.com/profile.cgi?id={{{1}}} {{{2}}}]}}
 +
}}</includeonly><noinclude>
 +
This template creates a link to a player's profile given their ID (required as the first parameter) and name (optional as the second 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|2445}}</nowiki> || {{profile|2445}}
 
|-
 
|-
 
|<nowiki>{{profile|2445|Elembis}}</nowiki> || {{profile|2445|Elembis}}
 
|<nowiki>{{profile|2445|Elembis}}</nowiki> || {{profile|2445|Elembis}}

Revision as of 02:19, 15 July 2006

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

Input Output
{{profile|2445}} Template:Ifeq: 2445
{{profile|2445|Elembis}} Template:Ifeq: 2445