Template:Nowrap/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{dochead}}{{Wikipedia}}
{{dochead}}{{Wikipedia}}{{lua|Variable arguments}}
The <code>{<nowiki />{nowrap}}</code> template stops wrapping of specific text that may happen at spaces, dashes, or parentheses. It is to be used for sections such as units, dates, and mathematical equations that should always stay together.
The <code>{<nowiki />{nowrap}}</code> template stops wrapping of specific text that may happen at spaces, dashes, or parentheses. It is to be used for sections such as units, dates, and mathematical equations that should always stay together.


Line 13: Line 13:
! Rendered output
! Rendered output
|-
|-
| {{{{ROOTPAGENAME}}|<code>{<nowiki />{nowrap|10 kg (22 lb)}}</code>}}
| {{{{ROOTPAGENAME}}|<code><nowiki>{{nowrap|10 kg (22 lb)}}</nowiki></code>}}
| <syntaxhighlight lang="html"><span style="white-space: nowrap;">10 kg (22 lb)</span></syntaxhighlight>
| <syntaxhighlight lang="html"><span style="white-space: nowrap;">10 kg (22 lb)</span></syntaxhighlight>
| {{{{ROOTPAGENAME}}|10 kg (22 lb)}}
| {{{{ROOTPAGENAME}}|10 kg (22 lb)}}
|-
|-
| {{{{ROOTPAGENAME}}|<code>{<nowiki />{nowrap|1 Jan|2 Feb|3 Mar|4 Apr}}</code>}}
| {{{{ROOTPAGENAME}}|<code><nowiki>{{nowrap|1 Jan|2 Feb|3 Mar|4 Apr}}</nowiki></code>}}
| <syntaxhighlight lang="html"><span style="white-space: nowrap;">1 Jan</span>, <span style="white-space: nowrap;">2 Feb</span>, <span style="white-space: nowrap;">3 Mar</span>, <span style="white-space: nowrap;">4 Apr</span></syntaxhighlight>
| <syntaxhighlight lang="html"><span style="white-space: nowrap;">1 Jan</span>, <span style="white-space: nowrap;">2 Feb</span>, <span style="white-space: nowrap;">3 Mar</span>, <span style="white-space: nowrap;">4 Apr</span></syntaxhighlight>
| {{{{ROOTPAGENAME}}|1 Jan|2 Feb|3 Mar|4 Apr}}
| {{{{ROOTPAGENAME}}|1 Jan|2 Feb|3 Mar|4 Apr}}
Line 23: Line 23:


{{escape notice}}
{{escape notice}}
=== See also ===
* {{modlink|Variable arguments}}