Forum:Long image names in categories

ShoutWiki — express yourself and be heard!
Jump to navigation Jump to search

Forums: Index Community help

Longer image filenames show up by default in Wikimedia Commons categories. For example:

A default Commons gadget: "Long Image Names in Categories" is found here:

The gadget CSS is here:

Shoutwiki:

Add Commons gadget CSS to here:

It works on my Shoutwiki wiki.

For example:

Is there a way to have that CSS imported from the Commons directly into the Shoutwiki CSS for my wiki? In case it is changed. That way I don't have to keep checking. --Timeshifter (talk) 07:01, 29 May 2017 (UTC)

You can put
@import url('https://commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-Long-Image-Names-in-Categories.css&action=raw&ctype=text/css');
at the top of your MediaWiki:Common.css. @import statements must precede all other CSS statements, except @charset statements. --Saftzie (talk) 20:04, 29 May 2017 (UTC)
Thanks. After doing some more reading, I think I will avoid importing.
I don't know why longer image filenames in categories is not a default setting in the Mediawiki software. At least a little bit longer. It is very short now. --Timeshifter (talk) 09:31, 30 May 2017 (UTC)
I requested this here:
Need longer image names in categories. Topic on Project:Support desk at MediaWiki.org
I also made a feature request on Phabricator:
https://phabricator.wikimedia.org/T166989
22 characters is too short for image names in categories. --Timeshifter (talk) 17:43, 4 June 2017 (UTC)