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}}</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 | 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, dates, and mathematical equations that should always stay together. | ||
=== Usage === | === Usage === | ||
Pass in the text to be held together as a single unnamed parameter. | Pass in the text to be held together as a single unnamed parameter. Two or more unnamed parameters will result in individual chunks of non-wrapped text separated by a comma and space. | ||
Leading and trailing whitespaces in the input parameters will be trimmed. Interior whitespaces will not wrap, but the spaces separating the generated <code><nowiki><span></nowiki></code> elements are ordinary spaces and will wrap by default. | |||
{| class="wikitable" | {| class="wikitable" |