Movatterモバイル変換


[0]ホーム

URL:


Jump to content
Wikivoyage
Search

Template:Nowrap

From Wikivoyage

{{{1}}}

Template documentation[view][edit][history][purge]

The template prevents line wrap in the string provided as the parameter. It is useful e.g. where numbers or names could otherwise be split in confusing ways. Where line wrap is not needed, the template will not affect the article as seen by readers. Where line wrap is needed, the line will usually be split just before or just after the template (in some cases perhaps depending on browser), so the template should include everything from and up to a suitable line break point.

The effect is close to using  and friends, but the wikitext is often more readable with the template than with such HTML entities.

Example use:

... an area of {{nowrap|2 860 km².}} This is ...

Will render "... an area of2 860 km². This is ..." without line wrap in the"2 860 km²." part.

If the text includes an equal sign, you need to prepend "1=": {{nowrap|1=1+2=3}} gives1+2=3 (as what precedes the first equal sign is taken as a parameter name, like in name=New York).

The abovedocumentation istranscluded fromTemplate:Nowrap/doc.(edit|history)
Editors can experiment in this template's sandbox(create|mirror) and testcases(create) pages.
Add categories to the/doc subpage.Subpages of this template.
Retrieved from "https://en.wikivoyage.org/w/index.php?title=Template:Nowrap&oldid=4896869"
Category:

[8]ページ先頭

©2009-2025 Movatter.jp