Template talk:Transclude selected recent additions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
WikiProject iconPortals  
WikiProject iconThis page is within the scope of WikiProject Portals, a collaborative effort to improve portals on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
Template This template does not require a rating on the project's quality scale.
Note icon
See also: List of Portals

Small bug in pictured hooks[edit]

@Evad37: Thanks for writing this, it's very handy! I've found a small bug. When "(pictured)" is removed, the output has an extra space where there's punctuation afterwards; eg Skaill House:

No recent additions Espresso Addict (talk) 12:58, 8 July 2018 (UTC)[reply]

@Espresso Addict::  Fixed - Evad37 [talk] 01:52, 9 July 2018 (UTC)[reply]
Thanks for the rapid fix! Espresso Addict (talk) 01:58, 9 July 2018 (UTC)[reply]

I see that the code removes instances of (pictured) or (illustrated) from transclusion, but I searched through a few DYK entries and also found (shown), (featured), and (depicted), as well as some that use multiple words, like (example shown) or (artist's impression depicted). It is probably unwieldy to try to list every possible parenthetical expression that refers to an image or other media, but is there another way to get around this source of potential confusion? --Lasunncty (talk) 08:44, 6 May 2024 (UTC)[reply]