Difference between revisions of "Help:Templates/String"

From TED Notepad
 
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
<pre>
 
<pre>
 
Search for phrase {{string|john}} within string {{string|hi johnny}} will fail, if
 
Search for phrase {{string|john}} within string {{string|hi johnny}} will fail, if
{{feature|Whole Words}} is turned on.
+
{{field|Search|Whole words}} is turned on.
 
</pre>
 
</pre>
 
Search for phrase {{string|john}} within string {{string|hi johnny}} will fail, if
 
Search for phrase {{string|john}} within string {{string|hi johnny}} will fail, if
{{feature|Whole Words}} is turned on.
+
{{field|Search|Whole words}} is turned on.
  
  
Line 17: Line 17:
 
</pre>
 
</pre>
 
A filter for text files would look like this: {{string|Text Files <nowiki>|</nowiki> *.txt}}.
 
A filter for text files would look like this: {{string|Text Files <nowiki>|</nowiki> *.txt}}.
 +
 +
<pre>
 +
A filter for text files would look like this: {{stringb|Text Files <nowiki>|</nowiki> *.txt}}.
 +
</pre>
 +
A filter for text files would look like this: {{stringb|Text Files <nowiki>|</nowiki> *.txt}}.
 +
 +
[[Category:Help|{{PAGENAME}}]]

Latest revision as of 13:05, 19 November 2013

This template is to be used within the documentation for string values and phrases. Especially to express that a string like this is what the user should have chosen somewhere within a dialog.

Note: Use <nowiki>|</nowiki> to add a pipe into the string.

Examples

Search for phrase {{string|john}} within string {{string|hi johnny}} will fail, if
{{field|Search|Whole words}} is turned on.

Search for phrase john within string hi johnny will fail, if Whole words is turned on.


A filter for text files would look like this: {{string|Text Files | *.txt}}.

A filter for text files would look like this: Text Files | *.txt.

A filter for text files would look like this: {{stringb|Text Files | *.txt}}.

A filter for text files would look like this: Text Files | *.txt.