Description | Show short descriptions of pages while browsing categories |
---|---|
Author(s) | SD0001 |
Updated | February 20, 2022 (2 years ago) |
Skin support | All desktop skins |
Source | User:SD0001/shortdescs-in-category.js |
This script gives a
button at the top of the list of pages in a category. On clicking, short descriptions of all pages in view are displayed.Colour codes:
To tweak the color codes to your liking, see #Customisation below.
If you have the script-installer gadget, just click on the "Install" button in the infobox.
Otherwise, add the line
importScript('User:SD0001/shortdescs-in-category.js'); // [[User:SD0001/shortdescs-in-category.js]]
on your common.js or skin.js page.
If the category contains talk pages (such as in WikiProject classification categories), the short description of the article is shown (not that of the talk page).
Customisations can be done by adding statements to your common.css page.
.cat-shortdesc-none { display: none; }
.cat-shortdesc-none { color: red !important; }
.cat-shortdesc-local { color: black !important; }
.cat-shortdesc-wikidata { color: MediumVioletRed !important; }
rgb(255, 99, 71)
and #ff6347
. You may find
W3C CSS Colors helpful.