Difference between revisions of "Template:String"
From TED Notepad
Line 3: | Line 3: | ||
= Preview = | = Preview = | ||
A filter for text files would look like this: {{var|Text Files <nowiki>|</nowiki> *.txt}}. | 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 = | = Usage = | ||
− | <pre>A filter for text files would look like this: {{var|Text Files <nowiki>|</nowiki> *.txt}}. | + | <pre> |
+ | 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. | ||
</pre> | </pre> | ||
Note: The <nowiki>|</nowiki> part is there because templates use pipes to distinguish parameters. | Note: The <nowiki>|</nowiki> part is there because templates use pipes to distinguish parameters. | ||
</noinclude> | </noinclude> |
Revision as of 15:55, 23 February 2006
This template is to be used within documentation for values, either string, phrases or numeric values. Especially to express that a Template:Var is what the user has chosen somewhere within UI of TED Notepad.
Preview
A filter for text files would look like this: Template:Var.
Search for phrase Template:Var within string Template:Var will fail, if Template:Cite is turned on.
Usage
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.
Note: The <nowiki>|</nowiki> part is there because templates use pipes to distinguish parameters.