Difference between revisions of "Template:Steam"

From comp.tf
Jump to navigation Jump to search
(Adding if conditions for icon support)
(Reversed order of if statements to make icon default)
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]|}}<noinclude>
 
== Usage ==
 
== Usage ==
 +
* <code>&#123;&#123;Steam|Harbleu|text&#125;&#125;</code> generates
 +
{{Steam|Harbleu|text}}
 
* <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|icon&#125;&#125;</code> generates
 
{{Steam|Harbleu|icon}}
 
 
</noinclude>
 
</noinclude>

Revision as of 18:46, 4 July 2013

Steam icon.png

Usage

  • {{Steam|Harbleu|text}} generates

Steam icon.png Steam Community profile

  • {{Steam|Harbleu}} generates

Steam icon.png