Difference between revisions of "Template:Icode"

From Franklin Heath Ltd Wiki
Jump to: navigation, search
m (modified icode to simply map to <tt> tag. Consistency.)
m (Update with abstract.)
Line 1: Line 1:
<noinclude>
+
<noinclude>{{Abstract|Mark up inline code or filenames in the body of text (see [[Help:Formatting Code]]).|visible=true}}
 +
 
 +
This template can be used for marking up identifiers in the body of text - for example filenames, classes, functions, arguments etc. It then displays the text in monotype.
 +
 
 
== Usage ==
 
== Usage ==
Use '''<nowiki>{{Icode|your identifier}}</nowiki>''' to format source code identifiers in the {{Icode|body}} of text.
 
  
'''Note''': using the equals (=) and pipe (|) characters inside the template parameters prevents them working properly. These characters should be replaced with the '''&amp;#61;''' and '''&amp;#124;''' codes respectively.
+
<code text>{{Icode|identifier}}</code>
</noinclude><tt>{{{1}}}</tt>
+
 
 +
'''Notes''':  
 +
* Using the equals (=) and pipe (|) characters inside the template parameters prevents them working properly. These characters should be replaced with the '''&amp;#61;''' and '''&amp;#124;''' codes respectively.
 +
 
 +
<!--begin Icode--></noinclude><includeonly><tt>{{{1}}}</tt></includeonly><!--end Icode-->

Revision as of 23:46, 21 July 2010

Template:Abstract

This template can be used for marking up identifiers in the body of text - for example filenames, classes, functions, arguments etc. It then displays the text in monotype.

Usage

identifier

Notes:

  • Using the equals (=) and pipe (|) characters inside the template parameters prevents them working properly. These characters should be replaced with the &#61; and &#124; codes respectively.