Template:IRC

From Gentoo Wiki
Jump to:navigation Jump to:search
[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages. As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

Use this template to specify in-line IRC channels so they can be rendered in a standard style across the Wiki. Defaults to channels on libera.chat (such as #gentoo (webchat) or #gentoo-bugzilla (webchat)).

This template can optionally be used for channels on other servers, by providing an IRC server URL as the optional second parameter. When using the optional server parameter, don't forget to provide the scheme in the URL (irc:// or ircs://), do not include a trailing slash in the URL, and do prefix the IRC channel with a hash character (#).

Note that for the irc:// links to work, users may have to have an IRC client set up with their web browser to handle those links.

See also
See also {{InfoBox_irc}} for including IRC channels in infoboxes.
Important
This template's mode= parameter has been removed. Now all uses provide both ircs and webchat links for channels on libera.chat.

Parameters

Parameter name Required? Default value Description
Anonymous parameter 1 Yes (n/a) The name of a libera.chat IRC channel, or channel on alternate server when using second parameter. Remember to include the hash (#) if using an alternate server.
Anonymous parameter 2 No (n/a) URL of alternate IRC server. Include scheme (irc:// or ircs://), do not include a trailing slash.

Some Gentoo IRC channels include:

For a full list of channels see the All IRC Channels page on the main site.

Note
This template does not check if the specified IRC channel is actually valid (existing).

Usage

  • {{IRC|channel}}
Where channel is the libera.chat IRC channel to be marked up.
  • {{IRC|channel|server_URL}}
Same as above, but for channels on alternative servers to libera.chat.

See the template's testcases:


Parameter: unnamed (no parameter)
Wiki code {{IRC}}

Main version #{{{1}}} (webchat)
Sandbox version #{{{1}}} (webchat)
Parameter: gentoo (missing # prefix)
Wiki code {{IRC|gentoo}}

Main version #gentoo (webchat)
Sandbox version #gentoo (webchat)
Parameter: #gentoo (including # prefix)
Wiki code {{IRC|#gentoo}}

Main version #gentoo (webchat)
Sandbox version #gentoo (webchat)
Parameter: ##gentoo (accidental double ## prefix)
Wiki code {{IRC|##gentoo}}

Main version #gentoo (webchat)
Sandbox version #gentoo (webchat)
Parameter: channel plus optional server
Wiki code {{IRC|#i3|irc://irc.oftc.net}}

Main version #i3 (on irc://irc.oftc.net)
Sandbox version #i3 (on irc://irc.oftc.net)

See also

Note
The above documentation is transcluded from Template:IRC/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)