Jump to content

Template:Input: Difference between revisions

From KDE UserBase Wiki
RogueScholar (talk | contribs)
Upgrade to use SyntaxHighlight extension which supports Vector 2022 skin's dark mode
RogueScholar (talk | contribs)
Remove in-page documentation in favor of transcluded subpage
 
Line 1: Line 1:
<syntaxhighlight lang="{{{lang|{{{2|text}}}}}}">{{{1}}}</syntaxhighlight><noinclude>{{Documentation|content=
{{#tag:syntaxhighlight|{{{1}}}|lang="{{{lang|{{{2|text}}}}}}"{{#if:{{{inline|}}}|&#124;inline="1"}}{{#if:{{{linenums|}}}|&#124;line="1"}}{{#if:{{{start|}}}|&#124;start="{{{start|1}}}"}}}}<noinclude>
This template should be used whenever you are indicating input commands.
{{Documentation}}</noinclude>
 
== Usage ==
<syntaxhighlight lang="wikitext" inline>{{Input|1=your code, single line or block|lang=language tag}}</syntaxhighlight>
 
which displays
{{Input|1=your code, single line or block|lang=text}}
 
== See also ==
* [[Template:Output]] - a similar box for presenting some example output
}}
 
[[Category:Template]]
</noinclude>

Latest revision as of 10:33, 25 February 2025

{{{1}}}
Template information icon Template documentation [edit] [purge]

This template should be used whenever you are indicating input commands.

Usage

{{Input|1=your code, single line or block|lang=language tag}} which displays:

your code, single line or block

See also