Difference between revisions of "Template:Freenode/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Technical 13
m (Debugging ReGex...)
imported>Technical 13
m (Debugging ReGex...)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|<tt>{{#ifeq:{{Str sub old|{{{1}}}|0|1}}|#|<span class="plainlinks">[irc://irc.freenode.net/{{{1}}} {{{1}}}]</span> <sup class="plainlinks">[//webchat.freenode.net/?channels={{{1}}}{{#if:{{{nick|}}}|&nick={{#invoke:String|replace|{{Str sub old|{{{nick|}}}|0|25}}|[%W^%[^%]^%^^%-^`^\^{^}]|_|plain=false}}}} <span style="color:green;">connect</span>]</sup>|[[freenode:#{{{1}}}|#{{{1}}}]] <sup class="plainlinks">[//webchat.freenode.net/?channels=#{{{1}}}{{#if:{{{nick|}}}|&nick={{#invoke:String|replace|{{Str sub old|{{{nick|}}}|0|25}}|[%W^%[^%]^%^^%-^`^\^{^}]|_|plain=false}}}} <span style="color:green;">connect</span>]</sup>}}</tt>|<span style="color: #F00;">Error: Channel must be specified as 1st parameter.</span>}}</includeonly><noinclude>
+
<includeonly>{{#if:{{{1|}}}|<tt>{{#ifeq:{{Str sub old|{{{1}}}|0|1}}|#|<span class="plainlinks">[irc://irc.freenode.net/{{{1}}} {{{1}}}]</span> <sup class="plainlinks">[//webchat.freenode.net/?channels={{{1}}}{{#if:{{{nick|}}}|&nick={{#invoke:String|replace|{{Str sub old|{{{nick|}}}|0|25}}|[^%[^%]^%-^\^{^}^%`^%w]|_|plain=false}}}} <span style="color:green;">connect</span>]</sup>|[[freenode:#{{{1}}}|#{{{1}}}]] <sup class="plainlinks">[//webchat.freenode.net/?channels=#{{{1}}}{{#if:{{{nick|}}}|&nick={{#invoke:String|replace|{{Str sub old|{{{nick|}}}|0|25}}|[^%[^%]^%-^\^{^}^%`^%w]|_|plain=false}}}} <span style="color:green;">connect</span>]</sup>}}</tt>|<span style="color: #F00;">Error: Channel must be specified as 1st parameter.</span>}}</includeonly><noinclude>
 
This template is for producing links to connect to the Wikipedia channels at the IRC network
 
This template is for producing links to connect to the Wikipedia channels at the IRC network
  

Revision as of 17:30, 7 June 2013

This template is for producing links to connect to the Wikipedia channels at the IRC network

Template:Freenode/testcases

EDIT testcases

Testing sandbox version

Testing main template