Jump to content

Do not begin to migrate content here, it may be wiped without notice. More info.

Template:DebianIRC: Difference between revisions

From Debian Wiki
No edit summary
Sync with recommended version
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude>[ircs://irc.oftc.net/{{{name|{{{1}}}}}} #{{{name|{{{1}}}}}}] ([https://webchat.oftc.net/?channels={{{name|{{{1}}}}}} webchat])</onlyinclude>
<pre><onlyinclude>{{InterWiki|DebianIRC|{{{name|{{{1|}}}}}}|{{{text|{{{2|#{{{name|{{{1|}}}}}}}}}}}}}} <span class="plainlinks">[https://webchat.oftc.net/?channels={{{name|{{{1}}}}}} {{{webchat|{{{3|(webchat)}}}}}}]</span></onlyinclude></pre>


<templatedata>
<templatedata>
Line 12: Line 12:
             "aliases": ["1"],
             "aliases": ["1"],
             "example": "debian-devel"
             "example": "debian-devel"
        },
        "text": {
            "type": "line",
            "required": false,
            "description": "Link text",
            "aliases": ["2"]
        },
        "webchat": {
            "type": "line",
            "required": false,
            "description": "Link text",
            "default": "(webchat)",
            "aliases": ["3"]
         }
         }
     }
     }
Line 17: Line 30:
</templatedata>
</templatedata>


The old wiki has a large [https://wiki.debian.org/InterWikiMap inter-wiki map], for links like <kbd><nowiki>[[DebianIRC:channel]]</nowiki></kbd>. MediaWiki also supports [https://www.mediawiki.org/wiki/Manual:Interwiki interwiki links], but would we rather just use templates?
Link to IRC, including a webchat link.


This page shows an example of how templates can provide a better user experience - editors can see documentation that tells them not to include the <kbd>#</kbd> in the channel name, and viewers get both an IRC and webchat link.
For details about interwiki templates, see [[Template:InterWiki]].


[[Category:Example]]
[[Category:InterWikiLinkTemplate]]

Latest revision as of 15:21, 11 September 2025

<onlyinclude>{{InterWiki|DebianIRC|{{{name|{{{1|}}}}}}|{{{text|{{{2|#{{{name|{{{1|}}}}}}}}}}}}}} <span class="plainlinks">[https://webchat.oftc.net/?channels={{{name|{{{1}}}}}} {{{webchat|{{{3|(webchat)}}}}}}]</span></onlyinclude>

Link to an IRC channel on the OFTC network.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Channel namename 1

Name of IRC channel without # prefix.

Example
debian-devel
Linerequired
texttext 2

Link text

Lineoptional
webchatwebchat 3

Link text

Default
(webchat)
Lineoptional

Link to IRC, including a webchat link.

For details about interwiki templates, see Template:InterWiki.