Difference between revisions of "Template:Irc"

From Minetest Developer Wiki
Jump to navigation Jump to search
(Undo revision 569 by PilzAdam (talk))
(Use secure links (ircs, https))
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><span class="plainlinks" style="white-space: nowrap;">{{#ifeq: {{{2|}}}|no|[[irc:{{{1}}}|<tt>#{{{1}}}</tt>]]|[[irc:{{{1}}}|<tt>{{{2|#{{{1}}}}}}</tt>]]{{#if: {{{3|}}}||<sup>[http://webchat.freenode.net/?channels=#{{{1}}} <span style="color: green;">connect</span>]</sup>}}}}</span></includeonly><noinclude>
+
<includeonly><span class="plainlinks" style="white-space: nowrap;">{{#ifeq: {{{2|}}}|no|<tt>[ircs://irc.freenode.net:6697/{{{1}}} {{{1}}}]</tt>|<tt>[irc://irc.freenode.net/{{{1}}} {{{1}}}]</tt>{{#if: {{{3|}}}||<sup>[https://webchat.freenode.net/?channels={{{1}}} (<span style="color: green;">webchat</span>)]</sup>}}}}</span></includeonly>
 +
 
 +
<noinclude>
 +
Template for making a clickable link to an IRC channel on irc.freenode.net.
 +
 
 +
Syntax: <code><nowiki>{{Irc|channel-name|webchat}}</nowiki></code>
 +
 
 +
* <code>channel-name</code>: Full name of channel
 +
* <code>hide-webchat</code>: Optional argument. If “no”, webchat link is hidden. Webchat is not hidden by default
 +
 
 +
Example 1: <code><nowiki>{{Irc|#minetest}}</nowiki></code>
 +
 
 +
{{Irc|#minetest}}
 +
 
 +
Example 2: <code><nowiki>{{Irc|#minetest|no}}</nowiki></code>
 +
 
 +
{{Irc|#minetest|no}}
 +
 
 +
 
 +
[[Category:Templates]]
 +
</noinclude>

Latest revision as of 19:05, 4 September 2017


Template for making a clickable link to an IRC channel on irc.freenode.net.

Syntax: {{Irc|channel-name|webchat}}

  • channel-name: Full name of channel
  • hide-webchat: Optional argument. If “no”, webchat link is hidden. Webchat is not hidden by default

Example 1: {{Irc|#minetest}}

#minetest(webchat)


Example 2: {{Irc|#minetest|no}}

#minetest