Jump to content

Template talk:Wbr

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Outdated

[edit]

I guess this template is outdated. Not working in IE8 - renders as a space. Jack who built the house (talk) 15:51, 14 July 2011 (UTC)[reply]

Actually it was a wiki engine issue, it removes all empty tags. I replaced space with  . Now it works fine: ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss​ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss. Jack who built the house (talk) 16:22, 14 July 2011 (UTC)[reply]
Ah sorry,   is no good replace. Decision found is display:inline-block ​ : display:inline-block helps to produce a break, and ​ (zero-width space) will appear if the text is copied, and produce a break if, for some reason, inline-block has failed. Actually, could've put even   here (despite its opposite function). May be I should, because I'm not sure what will ​ look like in older browsers and text editors (after being copypasted). Notepad renders it as a space. Jack who built the house (talk) 16:55, 14 July 2011 (UTC)[reply]

Suggest using {{indented plainlist}} for controlling line breaks?

[edit]

The section Template:Wbr § Controlling line-breaking in infoboxes suggests a lot of manual control to create a list with pseudo-hanging indents, where the "indentation" is merely nbsp;s. A better method to achieve the same effect, but better-looking, and less "futzy", is to use {{indented plainlist}}:

Test Infobox II: The Revenge
Starring
  • Jane Smith
  • Johannes-Friedrich Zauberzunge von der Hasenpfeffer
  • Jean-Jacques Francois Jacques-Jean
  • John Garcia
{{Infobox film
|name=Test Infobox II: The Revenge
|starring={{indented plainlist|
* Jane Smith
* {{nobr|Johannes-Friedrich}} Zauberzunge {{nobr|von der Hasenpfeffer}}
* {{nobr|Jean-Jacques}} Francois {{nobr|Jacques-Jean}}
* John Garcia
}}
}}

Should this be recommended instead?  — sbb (talk) 02:53, 24 August 2021 (UTC)[reply]

< wbr /> causing unintended line breaks

[edit]

Just in case <wbr/> (and this template {{wbr}}) causes unintended and unexpected line-breaks for someone, using (only) &zwsp; might be a solution. See Template_talk:R#Line_breaks. --Matthiaspaul (talk) 14:07, 1 September 2021 (UTC)[reply]

transclusion count not accurate?

[edit]

According to recent discussions, this template is being used on about 53,000 pages. However, the transclusion count tool shows only 1,530 transclusions. Is the tool no longer accurate? Or did we change most of those pages to not rely on this template? Ixfd64 (talk) 18:48, 1 September 2021 (UTC)[reply]

@Ixfd64: I think this is a direct-vs-indirect transclusion count issue. It may have only 1945 direct transclusions, but if you include templates which include {{wbr}} in their expansion, a change to {{wbr}} would affect tens of thousands of pages. 97.102.205.224 (talk) 17:54, 26 November 2024 (UTC)[reply]

Could we document the reason for wbr zwsp?

[edit]

@SMcCandlish: I notice that since Special:Diff/681420843 (2015) the template expands to <wbr />&8302;. After some recent edits fighting with zero-width space characters, I'm growing to hate them. They get cut and pasted easily and mess things up when they appear in context that don't expect them. So for example, {{val|1​520​698​109​714​272​166​094​258​063}} produces Error in {{val}}: parameter 1 is not a valid number. for reasons that are not entirely obvious to an editor. (A particularly nasty case is the output of Windows Calculator, which wraps its output in invisible text direction indicators that cause the same problem.)

<wbr /> is a piece of markup and is not included when cutting and pasting from the rendered text. Much nicer!

I'd love to remove the zero-width space, but I don't know what the "browser compatibility issue" is, to see if it's still relevant. Could we describe it on this talk page? 97.102.205.224 (talk) 17:34, 26 November 2024 (UTC)[reply]