Difference between revisions of "Template:Steam"

From comp.tf
Jump to navigation Jump to search
(Reversed order of if statements to make icon default)
(Adding custom link functionality)
Line 1: Line 1:
[[Image:Steam_icon.png|link=http://www.steamcommunity.com/id/{{{1}}}]] {{#if:{{{2|}}}|[http://www.steamcommunity.com/id/{{{1}}} Steam Community profile]|}}<noinclude>
+
[[Image:Steam_icon.png|link=http://www.steamcommunity.com/id/{{{1}}}]] {{#if:{{{2|}}}|[http://www.steamcommunity.com/id/{{{1}}} Steam Community profile]|}} {{#if:{{{text|}}}|[http://www.steamcommunity.com/id/{{{1}}} {{{text}}}]|}}<noinclude>
 
== Usage ==
 
== Usage ==
 
* <code>&#123;&#123;Steam|Harbleu|text&#125;&#125;</code> generates
 
* <code>&#123;&#123;Steam|Harbleu|text&#125;&#125;</code> generates
Line 5: Line 5:
 
* <code>&#123;&#123;Steam|Harbleu&#125;&#125;</code> generates
 
* <code>&#123;&#123;Steam|Harbleu&#125;&#125;</code> generates
 
{{Steam|Harbleu}}
 
{{Steam|Harbleu}}
 +
* <code>&#123;&#123;Steam|Harbleu|text=harbleu&#125;&#125;</code> generates
 +
{{Steam|Harbleu|text=harbleu}}
 
</noinclude>
 
</noinclude>

Revision as of 10:33, 29 July 2013

Steam icon.png

Usage

  • {{Steam|Harbleu|text}} generates

Steam icon.png Steam Community profile

  • {{Steam|Harbleu}} generates

Steam icon.png

  • {{Steam|Harbleu|text=harbleu}} generates

Steam icon.png harbleu