Difference between revisions of "Template:Freenode"
Jump to navigation
Jump to search
imported>Primefac (adding link to WP:IRCHELP per the RFC regarding its usage. Only shows up when wikipedia-en-help is the param) |
imported>Primefac m (whoops) |
||
| 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:{{{1}}}|wikipedia-en-help|#{{{1}}}</span> <sup class="plainlinks"> [[Wikipedia:IRC help disclaimer|<span style="color:green;">connect</span>]]</sup>|{{#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:{{{1}}}|wikipedia-en-help|[[freenode:#{{{1}}}|#{{{1}}}]]</span> <sup class="plainlinks"> [[Wikipedia:IRC help disclaimer|<span style="color:green;">connect</span>]]</sup>|{{#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 06:32, 23 June 2016
[[freenode:#{{{1}}}|#{{{1}}}]] connect
| 40px | This template is used on approximately 13,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them.
Transclusion count updated automatically (see documentation). |
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: {{Freenode|wikipedia-en}}
#wikipedia-en connect
User 2: I want to go to ##random_channel.
You: {{Freenode|#random_channel}}
##random_channel connect
User 3: I need help at #wikipedia-en-help
You: {{Freenode|wikipedia-en-help}}
#wikipedia-en-help connect
See also
For a template linking to the U.S. Internal Revenue Code, see Template:USIRC.
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Freenode
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Channel | 1 | Channel name (without preceding hash) | String | required |
| The above documentation is transcluded from Template:Freenode/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |