Difference between revisions of "Template:Profile"

From The Shartak Wiki
Jump to navigationJump to search
m (Fixed tense disagreement in the template's description.)
m (Made the user's name optional.)
Line 1: Line 1:
<includeonly>[http://www.shartak.com/profile.cgi?id={{{1}}} {{{2}}}]</includeonly><noinclude>
+
<includeonly>{{ #if: {{{2|}}}
 +
| [http://www.shartak.com/profile.cgi?id={{{1}}} {{{2}}}]
 +
| [http://www.shartak.com/profile.cgi?id={{{1}}} ''{{{1}}}'']
 +
}}</includeonly><noinclude>
 
This template creates a link to a player's profile given their ID and name.
 
This template creates a link to a player's profile given their ID and name.
  
Line 5: Line 8:
 
|-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 20:20, 13 July 2006

This template creates a link to a player's profile given their ID and name.

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