Difference between revisions of "Template:String"

From TED Notepad
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><var>{{{1}}}</var></includeonly><noinclude>
+
<includeonly><var>{{{1}}}</var></includeonly><noinclude>#REDIRECT [[Help:Templates/String]]</noinclude>
This template is to be used within documentation for values, either string, phrases or numeric values. Especially to express that a {{var|string like this}} is what the user has chosen somewhere within UI of TED Notepad.
 
= Preview =
 
A filter for text files would look like this: {{var|Text Files <nowiki>|</nowiki> *.txt}}.
 
 
 
Search for phrase {{var|john}}within string {{var|hi johnny}} will fail, if {{cite|Whole Words}} is turned on.
 
= Usage =
 
<pre>
 
A filter for text files would look like this: {{var|Text Files &lt;nowiki&gt;|&lt;/nowiki&gt; *.txt}}.
 
 
 
Search for phrase {{var|john}} within string {{var|hi johnny}} will fail, if {{cite|Whole Words}} is turned on.
 
</pre>
 
Note: The &lt;nowiki&gt;|&lt;/nowiki&gt; part is there because templates use pipes to distinguish parameters. We need to override that, as we want the pipe to be treated as a plain text.
 
</noinclude><noinclude>[[Category:Templates]]</noinclude>
 

Latest revision as of 17:18, 20 June 2006