Difference between revisions of "Template:IRC"
Jump to navigation
Jump to search
m (add hackint, switching logic) |
m (clarify what options are possible at the present time) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
For an IRC channel name with a link to EFNet's web IRC interface (or another network's web interface, if | 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: | ||
Line 12: | Line 12: | ||
* <code>{<nowiki/>{IRC|channelname|network=hackint}<nowiki/>}</code> results in {{IRC|channelname|network=hackint}} | * <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}} | * <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]] | [[Category:Templates]] | ||
</noinclude><includeonly><span class="plainlinks">[{{#switch:{{{network|{{{2|}}}}}}|hackint=https://webirc.hackint.org/#irc://irc.hackint.org/#{{{1}}}|http://chat.efnet.org:9090/?channels=%23{{{1}}}}} #{{{1}}}]</span></includeonly> | </noinclude><includeonly><span class="plainlinks">[{{#switch:{{{network|{{{2|}}}}}}|hackint=https://webirc.hackint.org/#irc://irc.hackint.org/#{{{1}}}|http://chat.efnet.org:9090/?channels=%23{{{1}}}}} #{{{1}}}]</span></includeonly> |
Revision as of 20:44, 13 November 2019
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:
{{IRC|archiveteam}}
Result: #archiveteam
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{{IRC|channelname|hackint}}
results in #channelname
Currently supported networks are efnet
(default) and hackint
.