Changes

Jump to: navigation, search

Template:Ic

1,169 bytes added, 18:59, 5 January 2016
Created page with "<noinclude>{{Template}} {{DISPLAYTITLE:Template:ic}} '''Inline code.''' * Use Template:bc for block code without header. * Use Template:hc for block code with header..."
<noinclude>{{Template}} {{DISPLAYTITLE:Template:ic}}

'''Inline code.'''

* Use [[Template:bc]] for block code without header.
* Use [[Template:hc]] for block code with header.

==Usage==

{{bc|<nowiki>{{ic|code}}</nowiki>}}

{{Tip|When representing keyboard keys, you can use [[Wikipedia:List of XML and HTML character entity references|HTML entities]] {{ic|&amp;uarr;}}, {{ic|&amp;rarr;}}, {{ic|&amp;darr;}} and {{ic|&amp;larr;}} to depict arrow keys: {{ic|&uarr;}}, {{ic|&rarr;}}, {{ic|&darr;}}, {{ic|&larr;}}}}
<!-- ## Keep this comment hidden to prevent this feature from being abused ##
This syntax allows the user to select the whole code with a triple click. For long lines of code, however, the template will tend to behave like [[Template:bc]]. To prevent this from happening, append a {{ic|<nowiki>|</nowiki>}} to the code (this will suppress the triple click functionality):

{{bc|<nowiki>{{ic|code|}}</nowiki>}}

{{Note|Please use the second argument only when strictly necessary, consider manually splitting the code in more parts instead.}}-->

==Example==

{{ic|code}}</noinclude><includeonly><code>{{{code|{{{1|{{META Error}}}}}}}}</code></includeonly>

Navigation menu