Difference between revisions of "Template:IRC"

From Archiveteam
Jump to navigation Jump to search
m
(Fix hackint web chat URL: there should be no leading hash on the channel name)
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
For an IRC channel name with a link to EFNet's web IRC interface. The sole parameter is the name of the channel (# sign must be omitted).
For an IRC channel name with a link to EFnet's web IRC interface (or another network's web interface, if available as an option). The sole parameter is the name of the channel (# sign must be omitted).


Example:
Example:
<nowiki>{{IRC|archiveteam}}</nowiki>
* <code>{<nowiki/>{IRC|archiveteam}<nowiki/>}</code> results in {{IRC|archiveteam}}
Result:
 
<span class="plainlinks">[http://chat.efnet.org:9090/?channels=%23archiveteam #archiveteam]</span>
If the <code>{{!}}network=</code> parameter is specified (e.g. <code>hackint</code>), then the template will link to that network instead. You can also use the second unnamed parameter (or <code>{{!}}2=</code>).
</noinclude><includeonly><span class="plainlinks">[http://chat.efnet.org:9090/?channels=%23{{{1}}} #{{{1}}}]</span></includeonly>
 
Examples:
* <code>{<nowiki/>{IRC|channelname|network=hackint}<nowiki/>}</code> results in {{IRC|channelname|network=hackint}}
* <code>{<nowiki/>{IRC|channelname|hackint}<nowiki/>}</code> results in {{IRC|channelname|hackint}}
 
Currently supported networks are <code>efnet</code> (default) and <code>hackint</code>.
 
[[Category:Templates]]
</noinclude><includeonly><span class="plainlinks">[{{#switch:{{{network|{{{2|}}}}}}|hackint=https://webirc.hackint.org/#irc://irc.hackint.org/{{{1}}}|#default=http://chat.efnet.org:9090/?channels=%23{{{1}}}}} #{{{1}}}]</span> (on {{#switch:{{{network|{{{2|}}}}}}|hackint=hackint|#default=EFnet}})</includeonly>

Revision as of 23:58, 23 June 2021

For an IRC channel name with a link to EFnet's web IRC interface (or another network's web interface, if available as an option). The sole parameter is the name of the channel (# sign must be omitted).

Example:

If the |network= parameter is specified (e.g. hackint), then the template will link to that network instead. You can also use the second unnamed parameter (or |2=).

Examples:

  • {{IRC|channelname|network=hackint}} results in #channelname (on hackint)
  • {{IRC|channelname|hackint}} results in #channelname (on hackint)

Currently supported networks are efnet (default) and hackint.