Template:Nowrap/doc: Difference between revisions
Jump to navigation
Jump to search
>Fred [email protected] You actually don't need "1=" for text that includes a vertical bar. |
may as well use real examples |
||
| Line 7: | Line 7: | ||
:For text that includes an [[equals sign]] (=), precede the text with <code>1=</code>. For example, | :For text that includes an [[equals sign]] (=), precede the text with <code>1=</code>. For example, | ||
::<code><big><nowiki>{{nowrap|</nowiki>1=2 + 2 = 4}}</big></code> | ::<code><big><nowiki>{{nowrap|</nowiki>1=2 + 2 = 4}}</big></code> | ||
::produces 2 + 2 = 4 | ::produces {{nowrap|1=2 + 2 = 4}} | ||
:For text that includes a [[vertical bar]] (|), escape the bar(s) with <code><nowiki>&#124;</nowiki></code> or <code><nowiki>{{!}}</nowiki></code>. For example, | :For text that includes a [[vertical bar]] (|), escape the bar(s) with <code><nowiki>&#124;</nowiki></code> or <code><nowiki>{{!}}</nowiki></code>. For example, | ||
::<code><big><nowiki>{{nowrap|</nowiki>&#124;2&#124; < 3}}</big></code> | ::<code><big><nowiki>{{nowrap|</nowiki>&#124;2&#124; < 3}}</big></code> | ||
::produces |2 | ::produces {{nowrap||2| < 3}}. | ||
<includeonly> | <includeonly> | ||
Revision as of 11:27, 25 July 2007
Template:Template doc page viewed directly
- Syntax
{{nowrap|your text}}- Example
- {{nowrap|34 kg}} -- assures that the units appear on the same line as the number.
- Handling interpreted characters
- For text that includes an equals sign (=), precede the text with
1=. For example,{{nowrap|1=2 + 2 = 4}}- produces 2 + 2 = 4
- For text that includes a vertical bar (|), escape the bar(s) with
|or{{!}}. For example,{{nowrap||2| < 3}}- produces |2| < 3.