قالب:Wbr/doc
This is a documentation subpage for قالب:Wbr (see that page for the قالب itself). It contains usage information, categories and other content that is not part of the original قالب page. |
خطأ: لا توجد وحدة بهذا الاسم "High-use".
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
- خطأ: لا توجد وحدة بهذا الاسم "Template link general".
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): خطأ: لا توجد وحدة بهذا الاسم "Infobox".خطأ: لا توجد وحدة بهذا الاسم "Check for unknown parameters".
Breaking up slashes
This is a documentation subpage for قالب:Wbr (see that page for the قالب itself). It contains usage information, categories and other content that is not part of the original قالب page. |
{{further}} is used for small sets of further information, often used at the top of a section.
Usage
{{further|Page 1|...|Page 15'...}}
- Up to 15 parameters are permitted: only the first is mandatory.
- The list is dynamically generated so that the word "and" is always placed between the final two entries.
- If more than 15 entries are supplied, a message will be displayed pointing out the problem.
- You can use parameters l1 to l15 to specify alternative labels for the links.
- NB
- make sure to start label parameters with a lowercase el (l), not a one (1) or pipe (|)
- adding newline characters will break page links
Example
Code | Result |
---|---|
{{further|Page}} | خطأ: لا توجد وحدة بهذا الاسم "labelled list hatnote". |
{{further|Page|Page 2}} | خطأ: لا توجد وحدة بهذا الاسم "labelled list hatnote". |
{{further|Page|Page 2|Page 3...}} | خطأ: لا توجد وحدة بهذا الاسم "labelled list hatnote". |
{{further|Page|Page 2|l2=Alternate title for Page 2...}} | خطأ: لا توجد وحدة بهذا الاسم "labelled list hatnote". |
And so on up to 15 parameters.
Link to subsection
It possible to direct this template to link a particular section within another page.
{{further|Michael Tritter#storyline|l1=Storyline}}
gives
خطأ: لا توجد وحدة بهذا الاسم "labelled list hatnote".
See also
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 خطأ في التعبير: عامل < غير متوقع. 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[update]خطأ: لا توجد وحدة بهذا الاسم "Check for unknown parameters".). 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.