Difference between revisions of "Template:Irc"

From RobotX
Jump to navigation Jump to search
m (Text replacement - "<translate>" to "")
m (Text replacement - "<tvar|1>" to "")
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
<languages/>
 
<languages/>
</noinclude>{{#switch:</translate>
+
</noinclude>{{#switch:
 
| =
 
| =
<span class="plainlinks" style="font-family: monospace,Courier; white-space: pre-wrap !important; word-wrap: break-word; max-width: 1200px; overflow: auto;" title="<!--T:1--> <tvar|1>#{{{1}}}</> on Freenode IRC</translate>">[irc://chat.freenode.net:6667/{{{1}}} {{#switch: {{{2|}}}
+
<span class="plainlinks" style="font-family: monospace,Courier; white-space: pre-wrap !important; word-wrap: break-word; max-width: 1200px; overflow: auto;" title=" #{{{1}}} on Freenode IRC">[irc://chat.freenode.net:6667/{{{1}}} {{#switch: {{{2|}}}
 
  | no | = <nowiki />#{{{1}}}
 
  | no | = <nowiki />#{{{1}}}
 
  | #default = <nowiki />{{{2}}}
 
  | #default = <nowiki />{{{2}}}
 
}}]</span> {{#switch: no
 
}}]</span> {{#switch: no
 
  | {{{2}}} | {{{3}}} =  
 
  | {{{2}}} | {{{3}}} =  
  | #default = <sup class="plainlinks">[https://webchat.freenode.net/?channels={{{1}}} <span style="color:green;"><!--T:2--> connect</translate></span>]</sup>
+
  | #default = <sup class="plainlinks">[https://webchat.freenode.net/?channels={{{1}}} <span style="color:green;"> connect</span>]</sup>
 
}}
 
}}
 
| #default=
 
| #default=
Line 46: Line 46:
  
  
== Examples == <!--T:3-->
+
== Examples ==  
</translate>
+
 
 
* {{Xpd|Irc|cvn-sw}}
 
* {{Xpd|Irc|cvn-sw}}
 
* {{Xpd|Irc|cvn-sw|cvn small wikis}}
 
* {{Xpd|Irc|cvn-sw|cvn small wikis}}

Latest revision as of 19:19, 21 December 2019


#{{{1}}} connect

Template documentation

Display a link to a Freenode IRC channel, with optional link to a web-based IRC client.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
IRC channel1

The IRC channel name, without leading hash (#).

Example
cvn-sw
Linerequired
Custom name2

A custom name used instead of the channel name.

Example
cvn small wikis
Linesuggested
Connect link3

Should there be a 'connect' link or not?

Default
yes
Example
no
Lineoptional


Examples