Module talk:Core
Module:Core has been template protected indefinitely because it is a highly-used or visible template. Use {{Edit request}} on this page to request an edit. |
Hiding edit icons in the printable version
{{Edit request}}
I suggest adding class=noprint to editAtSDC and editAtWikidata to hide edit icons in the printable version. Here is my attempt to do that: Module:Core/sandbox . See also Commons:Village pump/Technical#Hiding structured data edit links in the printable version. whym (talk) 09:04, 4 February 2026 (UTC)
- @Whym: I tried it out using the “Preview page with this template” feature, but the “depicts” row on File:St Peter, Bounces Road, Edmonton - geograph.org.uk - 3802520.jpg still has a pencil icon in print mode. Can you figure out where that comes from? I’m guessing some third place also needs
class=noprintadded. (The user script en:User:Jackmcbarn/advancedtemplatesandbox.js might be useful for testing changes – I found it recently but haven’t used it myself yet. Alternatively, I can also offer to test more versions for you.) Lucas Werkmeister (talk) 12:32, 7 February 2026 (UTC)- Just to make sure, in the preview's souce, did you not find the "noprint" class? Or it was there but it somehow didn't work in the print version? Did you also try previewing File:The Reverend Clive Foster MBE 1.jpg? When I tried something similar without any template, on my user subpage it appeard to work. whym (talk) 23:15, 8 February 2026 (UTC)
- @Whym: In that one line, the icon doesn’t have the “noprint” class (while the others do). I also tested the Reverend file and all the icons got noprint’ed correctly there; I think the “depicts” line in particular must get its icon from somewhere else. (It might be Module:WikidataIB’s
createiconfunction, which also has a reference to File:OOjs UI icon edit-ltr-progressive.svg?) Lucas Werkmeister (talk) 18:54, 9 February 2026 (UTC)- @Lucas Werkmeister You are right and this might be it - Template:Geograph from structured data has a similar line with the same icon, just for P180 (depicts). (I wonder if we can somehow replace the hard-coding with the Module:Core function...but that's probably another topic to discuss separately.) And as you mentioned, WikidataIB might need the same fix, although it's not my immediate focus, if the fix to the Geograph template does the trick. For reference, I found the template via insource search. Without it, the Geograph template didn't turn up. whym (talk) 09:15, 10 February 2026 (UTC)
Done (both templates). --Lucas Werkmeister (talk) 21:28, 12 February 2026 (UTC)
- And by “both templates” I meant Core and Geograph from structured data – I forgot about WikidataIB. I think for now let’s leave that alone, unless you find a file where the icon is still visible in print mode (even after purging, to get the latest version of these two modules) and it seems to come from WikidataIB. Lucas Werkmeister (talk) 22:24, 13 February 2026 (UTC)
- @Lucas Werkmeister You are right and this might be it - Template:Geograph from structured data has a similar line with the same icon, just for P180 (depicts). (I wonder if we can somehow replace the hard-coding with the Module:Core function...but that's probably another topic to discuss separately.) And as you mentioned, WikidataIB might need the same fix, although it's not my immediate focus, if the fix to the Geograph template does the trick. For reference, I found the template via insource search. Without it, the Geograph template didn't turn up. whym (talk) 09:15, 10 February 2026 (UTC)
- @Whym: In that one line, the icon doesn’t have the “noprint” class (while the others do). I also tested the Reverend file and all the icons got noprint’ed correctly there; I think the “depicts” line in particular must get its icon from somewhere else. (It might be Module:WikidataIB’s
- Just to make sure, in the preview's souce, did you not find the "noprint" class? Or it was there but it somehow didn't work in the print version? Did you also try previewing File:The Reverend Clive Foster MBE 1.jpg? When I tried something similar without any template, on my user subpage it appeard to work. whym (talk) 23:15, 8 February 2026 (UTC)