Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Template:Wrap

Permanently protected template
From Wikipedia, the free encyclopedia
This template is about tagging wrappable segments within nowrap-scoped text. For a doc page banner that flags a wrapper template, seeTemplate:Wrapper. For a wrapper template generator, seeModule:Template wrapper.
Template documentation[view] [edit] [history] [purge]
WarningThis template is used onapproximately 57,000 pages and changes may be widely noticed. Test changes in the template's/sandbox or/testcases subpages, or in your ownuser subpage. Consider discussing changes on thetalk page before implementing them.

This template works together with{{nowrap}} and{{nowrap begin}}. See documentation there.

See also

  • {{nowrap}} prevents wrapping within a single template (i.e. not suitable for relatively complex or lengthy content).
  • {{nowraplinks}} ...{{nowraplinks end}} prevents wraps inside links while allowing wraps between links and in normal text. Very useful for link lists and easy to use.
  • {{nowrap begin}} ...{{nowrap end}} prevents wraps in both text and links. For the trickier wrapping cases when you need full control, for instance in very complex link lists.
  • {{word joiner}} prevents wraps for both two adjacent characters.
  • {{avoid wrap}} prevents wraps unless the space is too narrow to display the text on one line.
    • {{inline block}} does the same and allows further style customization, but does not automatically add the "avoidwrap" CSS class.
  • {{spaces}} produces multiple non-breaking spaces (or a single one).
  • {{wrap}} can be used to provide a (brief) exception within a no-wrapping area.
    • {{normalwraplink}} allows links to wrap when they otherwise would not.
  • {{·}} and{{•}}, spaced and wrap-sensitiveinterpunct (dot) and bullet.
  • Help:Line-break handling, Wikipedia's how-to guide about word wrapping and line breaks.
    • In particular, to avoid line wrapping when quoting a passage such as a poem or computer code, seeTemplate:Quote § Line breaks – e.g. Template:Blockquote with "poem" tag.
The abovedocumentation istranscluded fromTemplate:Wrap/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.wikipedia.org/w/index.php?title=Template:Wrap&oldid=1307533845"
Category:
Hidden category:

[8]ページ先頭

©2009-2026 Movatter.jp