2,552
edits
Changes
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|&uarr;}}, {{ic|&rarr;}}, {{ic|&darr;}} and {{ic|&larr;}} to depict arrow keys: {{ic|↑}}, {{ic|→}}, {{ic|↓}}, {{ic|←}}}}
<!-- ## 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>
'''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|&uarr;}}, {{ic|&rarr;}}, {{ic|&darr;}} and {{ic|&larr;}} to depict arrow keys: {{ic|↑}}, {{ic|→}}, {{ic|↓}}, {{ic|←}}}}
<!-- ## 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>