Jump to content

Commons:Template requests

From Wikimedia Commons, the free media repository

On this page, Commons users can request edits to templates, the addition of complex templates to pages, and the creation of new templates. Here, users experienced with templates can find tasks to work on.

On Commons, templates are used for aiding navigation, adding standardized categories at scale, enabling adjusting various things from a central place, overviews, warning messages, and much more.

Create a new section for every new request:

Please use a descriptive title that briefly explains the change. Currently, edit requests for the {{Wikidata infobox}} are not included here – please see Template talk:Wikidata Infobox for these.

If a request has been implemented or there is strong consensus against the requested change (for example because it seems impossible to implement), please mark it as solved via {{Section resolved}} as described below.

SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 3 days.

Requests

[edit]

Parameter auto=yes for ArchiveBox to detect and link/transclude archive subpages

[edit]

Please add a parameter to the template so that it gets all subpages that have the prefix /Archive and links them. For example at Commons talk:Welcome, I think it could be possible to just take these pages from Special:PrefixIndex/Commons talk:Welcome and link them by the title after the /Archive/ which here is the year instead of having to manually write them out.

The current state of things is problematic as it needs continuous maintenance and people can forgot to add the achivebox or make other mistakes. For example, I forgot or didn't know I had to add the archive box when adding {{Autoarchive resolved section}}. I think it may be better if things were just by default archived per page per year instead of just numerating the archive number but unlike the box at Commons talk:Welcome, it would transclude the per-year pages into one archive page that is as long as possible without templates breaking in it as with Commons talk:Tools. Having all the years there directly can become long even if new pages don't need to be added manually and having just a few threads per page can make it difficult to go through the archives. However, when per-year pages are used which are then transcluded, it needs to be made sure that the transclusions all work (maybe it breaks with too many years or too many threads).
See the discussion here.
Prototyperspective (talk) 14:07, 2 November 2025 (UTC)[reply]

Parameter for "review impossible" for LicenseReview template

[edit]

At Commons:Village_pump/Proposals/Archive/2025/02#Add_an_outcome_of_LicenseReview there is a discussion about to modify Template:LicenseReview so it is possible to mark files with some sort of "review impossible". I tried to fix the template per Template_talk:LicenseReview#Outcome but it did not work as planned. And there is no reason to modify MediaWiki:Gadget-LicenseReview.js untill we have a working review template. Can someone fix? MGA73 (talk) 10:26, 12 October 2025 (UTC)

Relayed from Commons:Village pump/Technical#Add an outcome of LicenseReview. Prototyperspective (talk) 14:27, 2 November 2025 (UTC)[reply]

 Comment, see work in progress in {{LicenseReview/sandbox}}. If someone else wants to continue the work, please feel free to do so. Thanks. Tvpuppy (talk) 03:30, 3 November 2025 (UTC)[reply]
[edit]

I am trying to decode how this is happening, but I'm at a loss: categories such as Category:Construction in Guam which feature {{Topic in country}} have some nonsense code linking to the redlink Template:Byby, but it's only a little over 600 out of the 17,700 transclusions. I don't know why. Can someone smarter than me fix this? Thanks in advance. —Justin (koavf)TCM 11:38, 14 October 2025 (UTC)

Relayed from Commons:Village pump/Technical#Broken template. Prototyperspective (talk) 14:30, 2 November 2025 (UTC)[reply]

Category:Computer science in Catalonia and 800 other pages are also showing the same error. The same error would happen if you added the template to Category:Construction in Puerto Rico. See also this discussion from May 2025. Somewhere the wikitext {{{byby}}} is being used and the parser thinks it is a template call inside single braces, instead of a template parameter. It may be one of these six pages. – Jonesey95 (talk) 15:29, 6 November 2025 (UTC)[reply]

Make template Shortcut show again

[edit]

The {{Shortcut}} box isn't showing on any of the pages it's being used. Could somebody please fix this? First asked about this here. Prototyperspective (talk) 14:33, 2 November 2025 (UTC)[reply]

 Comment I think {{Shortcut2}} is the correct template to use if you want to display the box. Tvpuppy (talk) 03:52, 3 November 2025 (UTC)[reply]
Why would the shortcuts be intentionally not shown? What would be the reason or benefit of adding that template when it's not shown to the reader? Even if it was intentional, I think it should be shown but as of now and given that nobody said so in the linked prior thread, I doubt this is the case. Prototyperspective (talk) 12:47, 3 November 2025 (UTC)[reply]
Moreover, in the documentation of the template it says This template shows the shortcuts of the current page. and at the bottom it has a table with a column "input" where there is the template and a column "result" where it does display something. Prototyperspective (talk) 12:49, 3 November 2025 (UTC)[reply]
Per this edit [1] in 2009, it appears this was designed to display without a box. Also, the template does display the shortcut links in mobile view. Not sure why it isn't displaying the links in desktop view. Thanks. Tvpuppy (talk) 13:24, 3 November 2025 (UTC)[reply]
Okay, things are clear now; I thought emphasis was on "display", not on "the box". The request is about displaying it anyhow (on desktop too if it does display on mobile). Prototyperspective (talk) 13:30, 3 November 2025 (UTC)[reply]
I thought it was weird that a 21-year-old template only displays correctly for mobile view. So, I checked and this template does display the links with Vector legacy 2010 (old skin), but it isn't displaying for Vector 2022 (new skin). So, I think this needs to be updated, but I'm not sure how. Thanks. Tvpuppy (talk) 13:40, 3 November 2025 (UTC)[reply]

Florida memory – Attribution-FLGov-PhotoColl should contain image number

[edit]

Can Template:Attribution-FLGov-PhotoColl be modified to contain the image number, we do that with the Library of Congress template. --RAN (talk) 18:41, 3 November 2025 (UTC)[reply]

 Comment The problem for this is the link (URL) to the source image does not contain the image number, so having the image number in the template will not create a link like the ones in the LOC templates (e.g. {{LOC-image}}).
Alternatively, it is possible to include the source image link to the template, but I don't see how that will be useful since it will probably be redundant. Thanks. Tvpuppy (talk) 22:41, 3 November 2025 (UTC)[reply]
If there's no objections, this may be best to archive as not done (impossible and/or not useful), is it? Prototyperspective (talk) 14:54, 11 November 2025 (UTC)[reply]
[edit]

Could somebody edit {{Search link}} so it can use MediaSearch instead of only SpecialSearch?

When using this template like so: -intitle:/LL\-Q/ -Pronunciation -deepcategory:"Tamil pronunciation" -deepcategory:"Dutch pronunciation" -deepcategory:"English pronunciation" filetype:audio it links to the SpecialSearch but I'd like to have it link to the better more intuitive and modern MediaSearch.

A parameter for the content-type (images, audio, video, other media, categories+pages) would also be great and maybe needed for enabling using it with MediaSearch.

Lastly, it would be best if specifying the sort order was possible when using this template rather than a normal full-url link. It doesn't seem to be possible currently and this page does not have any info on a search operator for the sort order and neither does Help:Searching (which btw is a page that where this template is used).

In the above example, the end-result would be a link to the audio tab of the MediaSearch that shows most recent audio uploads (sorted by recency) excluding some types of common audio files (pronunciation audios) that don't really need checking and categorizing. Prototyperspective (talk) 22:26, 9 November 2025 (UTC)[reply]

I have added some additional parameters to {{Search link}} to enable the searches you described above. See below the table from the template documentation.
So, using your example, you can do {{search link|-intitle:/LL\-Q/ -Pronunciation -deepcategory:"Tamil pronunciation" -deepcategory:"Dutch pronunciation" -deepcategory:"English pronunciation" filetype:audio|method=MediaSearch|type=audio|sort=recency}} to get this -intitle:/LL\-Q/ -Pronunciation -deepcategory:"Tamil pronunciation" -deepcategory:"Dutch pronunciation" -deepcategory:"English pronunciation" filetype:audio.
Please let me know if there's any improvements needed. Thanks. Tvpuppy (talk) 02:28, 10 November 2025 (UTC)[reply]

Additional parameters

[edit]

Here are some additional template parameters for {{Search link}}.

Parameter Description Options
|method= Search interface used for searching, Special:Search or Special:MediaSearch Search (default), MediaSearch
|type= For Special:MediaSearch only, specify the content-type tab to display image (default), audio, video, other, page
|sort= Sort order for the search results For Special:Search: relevance (default), edit date, creation date
For Special:MediaSearch: relevance (default), recency