Template:Codeline/Doc: Difference between revisions
Jump to navigation
Jump to search
Carandraug (talk | contribs) (octavified example) |
Carandraug (talk | contribs) (added note about problems with certain characters) |
||
Line 1: | Line 1: | ||
This template is for code which is included inline. | This template is for code which is included inline. | ||
Example: | * Certain characters, such as {{Codeline|=}} or {{Codeline||}}, can break this template. In those cases, enclose the code in {{Codeline|<nowiki><nowiki>...</nowiki></nowiki>}} tags or use their HTML numbers. | ||
Example: | |||
:<nowiki>Since 3.4.0, packages can be installed with {{Codeline|pkg install -forge pkgname}} without need to actually download the file manually.</nowiki> | :<nowiki>Since 3.4.0, packages can be installed with {{Codeline|pkg install -forge pkgname}} without need to actually download the file manually.</nowiki> | ||
Will produce:<br> | Will produce:<br> | ||
:Since 3.4.0, packages can be installed with {{Codeline|pkg install -forge pkgname}} without need to actually download the file manually. | :Since 3.4.0, packages can be installed with {{Codeline|<nowiki>pkg install -forge pkgname</nowiki>}} without need to actually download the file manually. | ||
<noinclude>[[Category:Template Documentation]]</noinclude> | <noinclude>[[Category:Template Documentation]]</noinclude> |
Revision as of 22:49, 15 December 2011
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.