Template:Codeline/Doc: Difference between revisions

From Octave
Jump to navigation Jump to search
(documentation for Codeline template)
 
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
This template is for code which is included inline.
This template is for code which is included inline.


Example: <nowiki>{{Codeline|app-text/nano **}}</nowiki>
* Certain characters, such as {{Codeline|&#61;}}, {{Codeline|&#124;}} or {{Codeline|&#125;}} can break this template. In those cases, enclose the code in {{Codeline|<nowiki><nowiki>...&lt;/nowiki></nowiki>}} tags or use their [http://www.ascii.cl/htmlcodes.htm HTML numbers].


Will produce: {{Codeline|app-text/nano **}}
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>


<noinclude>[[Category:Template Documentation]]</noinclude>
Will produce:<br>
:Since 3.4.0, packages can be installed with {{Codeline|<nowiki>pkg install -forge pkgname</nowiki>}} without need to actually download the file manually.
 
[[Category:Template with documentation]]

Latest revision as of 10:56, 30 November 2013

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.