Difference between revisions of "Template:Freenode/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Technical 13
m (Debugging ReGex...)
imported>Technical 13
(sync with live)
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}}|^[%d%-][^%[^%]^%-^\^{^}^%`^%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}}|^[%d%-][^%[^%]^%-^\^{^}^%`^%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>
+
<span style="font-family: monospace,Courier; white-space: pre-wrap !important; word-wrap: break-word; max-width: 1200px; overflow: auto;">{{#ifeq:{{padleft:|1|{{{1}}}}}|#|<span class="plainlinks">[irc://irc.freenode.net/{{{1}}} #{{{1}}}]</span>|[[freenode:{{{1}}}|#{{{1}}}]]}}</span> <sup class="plainlinks">[//webchat.freenode.net/?channels={{{1}}} <span style="color:green;">connect</span>]</sup><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 11:46, 7 April 2015

[[freenode:{{{1}}}|#{{{1}}}]] connect 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