Template:Codeline: Difference between revisions

From Octave
Jump to navigation Jump to search
(crated codeline Template)
 
(Use <code> tag for Template:Codeline.)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
<span style="background-color:#dfdfdf; font-family:monospace;">{{{1}}}</span><noinclude>{{TemplateDoc}}[[Category:Templates]]</noinclude>
<includeonly><code>{{{1}}}</code></includeonly><noinclude>{{TemplateDoc}}[[Category:Templates]]</noinclude>

Latest revision as of 08:24, 27 July 2017

[edit]

Template-info.png Template Documentation

This template is for code which is included inline.

  • Certain characters, such as =, | or } can break this template. In those cases, enclose the code in <nowiki>...</nowiki> tags or use their HTML numbers.

Example:

Since 3.4.0, packages can be installed with {{Codeline|pkg install -forge pkgname}} without need to actually download the file manually.

Will produce:

Since 3.4.0, packages can be installed with pkg install -forge pkgname without need to actually download the file manually.