Template talk:Hide in print

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

{{editprotected}} This template needs to become

<includeonly><span class="noprint">{{{1|}}}</span></includeonly>

per mw:Manual:Skinning#Print_mode, bugzilla:48052, it currently doesn't work. --Nemo bis (talk) 10:37, 6 October 2014 (UTC)[reply]

Done, thanks. Pmlineditor (t · c · l) 10:49, 6 October 2014 (UTC)[reply]

Template functionality effectively disabled[change source]

I have modified this template to remove the <span> tag. It was previously causing problems with citation templates by inadvertently introducing extra whitespace, which led to problems like:

  • Balanchine, George (1975), 101 Stories of the Great Ballets, New York: Anchor Books, ISBN 0-385-03398-2
      

(notice the extra rectangle above)

This is another one of the intricacies of how MediaWiki renders wikicode into HTML. Under normal circumstances, the extra whitespace (originally introduced in Template:Citation/identifier to improve template code readability) should have been stripped by the software, but I believe the additional <span> messed it up. This is a temporary measure, and some day, someone (maybe me, but not today) must look into this template in detail (and whether we should even use it, given that even EN states that the template is broken due to a MediaWiki bug). Chenzw  Talk  14:49, 21 October 2015 (UTC)[reply]