Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Please sign up or log in to edit the wiki.

View source for Template:Nowrap/doc

Template page

You do not have permission to edit this page, for the following reasons:

  • The action you have requested is limited to users in one of the groups: Users.
    Sign up or Log in to edit a page.
    The Star Citizen Wiki is made by people like you! Anyone can edit and improve any pages.
  • You do not have permission to edit pages in the Template namespace.
    You can submit an edit request by commenting on the talk page or contact us through Discord.

You can view and copy the source of this page.

{{Documentation}}
{{tsh|nobr|nobreak}}

{{t|Nowrap}} stops wrapping of specific text. It prevents word wraps (line breaks) within text or inside a link which contains spaces, hyphens ("-"), or, in some browsers, parentheses. The size of the nowrapped text becomes the minimum width of that paragraph. Before you use this template you might want to read up on [[Wikipedia:Line-break handling]].

== Usage ==
:: <code><nowiki>{{nowrap|these words stay together}}</nowiki></code>
:: <code><nowiki>{{nowrap|a, b, c, or d.}}</nowiki></code>
:: <code><nowiki>{{nowrap| merry-go-round }}</nowiki></code>
:: <code><nowiki>{{nowrap| [[4-part harmony]] }}</nowiki></code>
:: <code><nowiki>{{nowrap| [[Cascading Style Sheets|CSS]] }}</nowiki></code>
:: <code><nowiki>{{nowrap| [[#Examples|Examples section]] }}</nowiki></code>

The template names {{tl|nobr}} and {{tl|nobreak}} are redirects that may be used instead of "{{tl|nowrap}}".

== TemplateData ==
<templatedata>{
"description": "Prevents word wraps (line breaks) within text or inside a link which contains spaces or hyphens (-).",
"params": {
"1": {
"label": "Text",
"description": "Text or link to be protected.",
"type": "string",
"required": true
}
}
}</templatedata>

<includeonly>
[[Category:Formatting and function templates]]
</includeonly>

Return to Template:Nowrap/doc.