Difference between revisions of "Template:Irc"
Jump to navigation
Jump to search
(Make main link clickable) |
(Update documentation) |
||
Line 1: | Line 1: | ||
− | <includeonly><span class="plainlinks" style="white-space: nowrap;">{{#ifeq: {{{2|}}}|no|<tt>{{{1}}}</tt>|<tt>[irc://irc.freenode.net/{{{2|{{{1}}}}}}]</tt>{{#if: {{{3|}}}||<sup>[http://webchat.freenode.net/?channels=#{{{1}}} (<span style="color: green;">webchat</span> | + | <includeonly><span class="plainlinks" style="white-space: nowrap;">{{#ifeq: {{{2|}}}|no|<tt>[irc://irc.freenode.net/{{{2|{{{1}}}}}} irc://irc.freenode.net/{{{2|{{{1}}}}}}]</tt>|<tt>[irc://irc.freenode.net/{{{2|{{{1}}}}}} irc://irc.freenode.net/{{{2|{{{1}}}}}}]</tt>{{#if: {{{3|}}}||<sup>[http://webchat.freenode.net/?channels=#{{{1}}} (<span style="color: green;">webchat</span>)]</sup>}}}}</span></includeonly> |
<noinclude> | <noinclude> | ||
− | Example: {{Irc|#minetest}} | + | Template for making a clickable link to an IRC channel on irc.freenode.net. |
+ | |||
+ | Syntax: <code><nowiki>{{Irc|#channel-name}}</nowiki></code> | ||
+ | |||
+ | Example 1: <code><nowiki>{{Irc|#minetest}}</nowiki></code> | ||
+ | |||
+ | {{Irc|#minetest}} | ||
+ | |||
+ | Example 2: <code><nowiki>{{Irc|#minetest|no}}</nowiki></code> | ||
+ | |||
+ | {{Irc|#minetest|no}} | ||
+ | |||
+ | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Revision as of 18:50, 4 September 2017
Template for making a clickable link to an IRC channel on irc.freenode.net.
Syntax: {{Irc|#channel-name}}
Example 1: {{Irc|#minetest}}
irc://irc.freenode.net/#minetest(webchat)
Example 2: {{Irc|#minetest|no}}