टेम्पलेट:Wbr
This template 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 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.
Usage
[संपादन करीं]Use is simple; there are no parameters:
{{wbr}}
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}}
between words in an entry, so that when they wrap they are not confused for separate entries. See example infobox to the side.
Example infobox (rendered to the side of the example code):
Test Infobox II: The Revenge | |
---|---|
कलाकार |
|
Technical details
[संपादन करीं]This template encapsulates the code <wbr />
, i.e. the HTML5 Word Break Opportunity element followed by the HTML character entity for the Unicode 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 (सितंबर 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.
परिचय खातिर ऊपर दिहल गइल बिबरनलेख के टेम्पलेट:Wbr/doc से ट्रांसक्लूड क के इहाँ देखावल जा रहल बाटे। (संपादन करीं | इतिहास देखीं) संपादक लोग एह टेम्पलेट के अभ्यासपन्ना (सैंडबाक्स) (बनाईं | मिरर करीं) आ टेस्टकेस (बनाईं) पन्ना सभ पर अभ्यास आ प्रयोग (टेस्टिंग) क सकत बाटे। अनुरोध बा कि अगर श्रेणी जोड़े के होखे तब /doc उपपन्ना (सबपेज) पर जोड़ल जाय। एह टेम्पलेट के उपपन्ना (सबपेज) देखीं। |