Template:Nowrap/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 2: Line 2:
{{Wikipedia}}
{{Wikipedia}}


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 and dates that should always stay together.
The <code><nowiki>{{nowrap}}</nowiki></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 and dates that should always stay together.


=== Usage ===
=== Usage ===
Pass in the text to be held together as a single unnamed parameter. Passing in two or more unnamed parameters will produce individual chunks of non-wrapped text separated by a comma and space.
Pass in the text to be held together as a single unnamed parameter. Passing in two or more unnamed parameters will produce individual chunks of non-wrapped text separated by a comma and space. Spaces within the parameters will not wrap, but the spaces separating the generated non-wrapped <code><nowiki><span></nowiki></code> elements are ordinary spaces and will wrap by default.


All leading and trailing whitespaces in the input parameters will be trimmed.
All leading and trailing whitespaces in the input parameters will be trimmed.