Template:Wbr
![]() | この記事は、クリエイティブ・コモンズ・表示・継承ライセンス3.0のもとで公表されたウィキペディアの項目Template:Wbrを素材として二次利用しています。 Lua error in Module:Itemnumber at line 91: attempt to concatenate local 'qid' (a nil value). |
Editing Template:Wbr/doc Jump to navigationJump to search Information about TemplateData This is the documentation page of the template Wbr. AnonEditWarning.svgYou are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to a user name, among other benefits. Information.svg Content that violates any copyrights will be deleted. Encyclopedic content must be verifiable. Any work submitted to Wikipedia can be edited, used, and redistributed—by anyone—subject to certain terms and conditions.
Advanced Special characters Help Cite
Wbr indicates a word break opportunity. This template includes the HTML tag <wbr />
, which is used to tell the browser of an optional, non-hyphenated line-break. It can be used with:
{{nbsp}}
or the equivalent
(non-breaking space){{nowrap}}
or the equivalent<span style="white-space: nowrap;">...</span>
or<span class="nowrap">...</span>
(character string that will not break even at a normal space)
to carefully control line-breaking where this is important.
This template can safely be substituted, though there is no particular reason to do so. For breaking up long words, use {{Soft hyphen}}
instead.
Usage
Use is simple; there are no parameters:
{{wbr}}
or
{{subst:wbr}}
Controlling line-breaking in infoboxes
This template can be used to cause an indentation after a linebreak, in unbulleted lists inside infoboxes and in tables with constrained cell widths, by using {{wbr}}
between words in an entry, so that when they wrap they are not mistaken for separate entries. See example infobox to the side.
Example infobox (rendered to the side of the example code): Template:Infobox film
Breaking up slashes
When there are long words on both sides of a slash, this template may be used to induce a line break after the slash.
- installation/
execution
Technical details
This template encapsulates the code <wbr />
, i.e. the HTML5 line break opportunity element followed by the HTML character entity for the Error using {{unichar}}: Input "200B" is not a hexadecimal value. character. This approach is superior to using either one or the other in isolation, for increased browser support. The <wbr />
element is compatible with all browsers except Internet Explorer inclusive of and since version 7 (September 2015 現在[update]). Meanwhile, the ZWS character is compatible with all browsers except Internet Explorer earlier than (but not inclusive of) version 7. Thus, between the two approaches, the dual use of which has no ill effects, this template works in all browsers still likely to be in use, including Internet Explorer regardless of version.
Insert
– — ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · § Sign your posts on talk pages: azuazu (トーク) 2021年2月15日 (月) 22:47 (JST) Cite your sources: Cite error: Invalid <ref>
tag; refs with no name must have content
Edit summary (Briefly describe your changes) By publishing changes, you agree to the Terms of Use, and you irrevocably agree to release your contribution under the CC BY-SA 3.0 License and the GFDL. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Preview page with this template (what's this?)
Page title Pages transcluded onto the current version of this page (help):
This page is a member of 1 hidden category (help) :
Navigation menu Not logged in Talk Contributions Create account Log in TemplateTalk ReadEditView historySearch Search Wikipedia Main page Contents Current events Random article About Wikipedia Contact us Donate Contribute Help Learn to edit Community portal Recent changes Upload file Tools What links here Related changes Special pages Page information
Languages Privacy policyAbout WikipediaDisclaimersContact WikipediaMobile viewDevelopersStatisticsCookie statementWikimedia FoundationPowered by MediaWiki Welcome to Wikipedia Anyone can edit, and every improvement helps. Thank you for helping the world discover more!