correction |
PhantomTech (talk | contribs) fixing links to channels with multiple # |
||
Line 1: | Line 1: | ||
<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> |
<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> |
||
{{documentation}}</noinclude> |
{{documentation}}</noinclude> |
Revision as of 05:42, 5 April 2015
[[freenode:#{{{1}}}|#{{{1}}}]] connect
For 1 hash channels add no hashes. For 2 hash channels add 1 hash. And so on. Otherwise the template will take you to the wrong channel.
Example
Note that the third example sends the user to WP:IRCHELP due to the consensus reached at this discussion.
User: I want to go to #wikipedia-en.
You: {{Libera.Chat|wikipedia-en}}
#wikipedia-en connect
User 2: I want to go to ##random_channel.
You: {{Libera.Chat|#random_channel}}
##random_channel connect
User 3: I need help at #wikipedia-en-help
You: {{Libera.Chat|wikipedia-en-help}}
#wikipedia-en-help connect
See also
For a template linking to the U.S. Internal Revenue Code, see Template:USIRC.
TemplateData
TemplateData for Libera.Chat
Parameter | Description | Type | Status | |
---|---|---|---|---|
Channel | 1 | Channel name (without preceding hash) | String | required |
Text | 2 | Text to show in place of channel name | String | optional |