Difference between revisions of "Template:Steam"

From comp.tf
Jump to navigation Jump to search
(Adding if conditions for icon support)
m
 
(3 intermediate revisions by one other user not shown)
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 ==
 +
You just need to copy any of the code snippets below and change the variables accordingly.
 +
 +
 
* <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
+
* <code>&#123;&#123;Steam|Harbleu|text&#125;&#125;</code> generates
{{Steam|Harbleu|icon}}
+
{{Steam|Harbleu|text}}
 +
* <code>&#123;&#123;Steam|Harbleu|text=harbleu&#125;&#125;</code> generates
 +
{{Steam|Harbleu|text=harbleu}}
 +
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:39, 8 September 2013

Steam icon.png


Usage[edit]

You just need to copy any of the code snippets below and change the variables accordingly.


  • {{Steam|Harbleu}} generates

Steam icon.png

  • {{Steam|Harbleu|text}} generates

Steam icon.png Steam Community profile

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

Steam icon.png harbleu