Template:Nobr

From The Languages of David J. Peterson
Revision as of 00:37, 9 September 2023 by Juelos (talk | contribs) (Created page with "<onlyinclude><span style="white-space:nowrap">{{{1}}}</span></onlyinclude> {{documentation}}")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{{1}}}



Usage

The template {{nobr}} makes its parameter-text totally non-breaking, and simplifies writing by avoiding the explicit use of a non-breaking space (&nbsp;). Unlike the non-breaking space, it even works if the parameter-text contains images (such as a flag).

It's also useful in formatting compact horizontal lists (in compact navigation panels).

Syntax
{{nobr|text to make non-breaking; may contain images}}
Notes
  • If the text contains an equals sign, it must be explicitly tagged with 1=
  • If the text contains a pipe character for whatever reason, it must be given as &#124;

See also

fr:Modèle:nobr