Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Controlling line-breaking in infoboxes  





1.2  Breaking up slashes  







2 Technical details  














Template:Wbr






العربية
تۆرکجه


Bosanski
Català
Dansk
فارسی

Hausa
Ilokano
Ladin
ि
Македонски

Māori
Bahasa Melayu
Монгол



ି


Português
Română

Scots
Simple English
Slovenščina
Српски / srpski
ி
 
اردو
Tiếng Vit

 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikiversity
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


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:

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:

or

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}}&nbsp; 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):

Test Infobox II: The Revenge
Starring
  • Jane Smith
  • Johannes-Friedrich​ Zauberzunge​ von der Hasenpfeffer
  • John Garcia
  • {{Infobox film|
    |name=Test Infobox II: The Revenge
    |...
    |starring={{Plainlist|
    * Jane Smith
    * {{nobr|Johannes-Friedrich}}{{wbr}}&nbsp;Zauberzunge{{wbr}}&nbsp;{{nobr|von der Hasenpfeffer}}
    * John Garcia
    }}
    |...
    }}
    

    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
    installation/{{wbr}}execution

    Technical details

    This template encapsulates the code <wbr />&#8203;, i.e. the HTML5 line break opportunity element followed by the HTML character entity for the U+200B ZERO WIDTH SPACE 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 (as of September 2015). 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.


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Wbr&oldid=1039070576"

    Categories: 
    Line-handling templates
    Inline spacing templates
    Character templates
    Hidden category: 
    Wikipedia template-protected templates
     



    This page was last edited on 16 August 2021, at 13:58 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki