Difference between revisions of "Template:Profile"

From The Shartak Wiki
Jump to navigationJump to search
m (Recent changes by Simon to profile.cgi have made the ID parameter optional.)
m (Fixed a parameter name to avoid problems with numeric usernames.)
Line 1: Line 1:
<includeonly>{{ifeq: {{{1|}}}|||{{ifeq: {{{2|}}}||[http://www.shartak.com/profile.cgi?id={{{1}}} {{{1}}}]|[http://www.shartak.com/profile.cgi?id={{{1}}} {{{2}}}]}}}}</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 a link to a player's profile given their ID (optional as the first parameter) and name (required as the last parameter).
 
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).
  

Revision as of 18:33, 2 September 2006

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}} Template:Ifeq: Elembis
{{profile|2445|Elembis}} Template:Ifeq: 2445