Difference between revisions of "Template:Twitch"

From comp.tf
Jump to navigation Jump to search
(Created new template)
 
(Adding if conditions for icon support)
Line 1: Line 1:
[[Image:Twitch_icon.png|link=http://www.twitch.tv/{{{1}}}]] [http://www.twitch.tv/{{{1}}} Twitch stream]<noinclude>
+
[[Image:Twitch_icon.png|link=http://www.twitch.tv/{{{1}}}]] {{#if:{{{2|}}}||[http://www.twitch.tv/{{{1}}} Twitch stream]}}<noinclude>
 
== Usage ==
 
== Usage ==
 
* <code>&#123;&#123;Twitch|ruwin&#125;&#125;</code> generates
 
* <code>&#123;&#123;Twitch|ruwin&#125;&#125;</code> generates
 
{{Twitch|ruwin}}
 
{{Twitch|ruwin}}
 +
* <code>&#123;&#123;Twitch|ruwin|icon&#125;&#125;</code> generates
 +
{{Twitch|ruwin|icon}}
 
</noinclude>
 
</noinclude>

Revision as of 17:22, 4 July 2013

Twitch icon.png Twitch stream

Usage

  • {{Twitch|ruwin}} generates

Twitch icon.png Twitch stream

  • {{Twitch|ruwin|icon}} generates

Twitch icon.png