MediaWiki talk:Category-empty

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

id attribute[edit]

{{sudo}}

Add an id attribute to this message, so that it can be referred to by CSS stylesheets; replace

<div style="margin:2em 1em 0 1em; padding:0.5em; border:1px solid #AAA; text-align:center;">''There are no pages or files in this category.''</div>

with

<div id="mw-category-empty" style="margin:2em 1em 0 1em; padding:0.5em; border:1px solid #AAA; text-align:center;">''There are no pages or files in this category.''</div>

Thanks – Gurch 20:33, 4 November 2007 (UTC)[reply]

 Done east.718 at 20:51, 11/4/2007

Empty categories[edit]

When there is an empty category, is there anyway to force its inclusion in a category like say "Empty Categories" so it can be deleted and pruned?Mbisanz (talk) 22:10, 22 November 2007 (UTC)[reply]

No, but you can just use Special:Unusedcategories. :) Nihiltres{t.l} 23:06, 22 November 2007 (UTC)[reply]

Edit request[edit]

{{editprotect}} The "learn more" link should go to Help:Category#Adding a category by using a template - the current link (Help:Category#Delayed updates), just takes it to Help:Category and not to a particular section. D.M.N. (talk) 16:15, 30 August 2008 (UTC)[reply]

Done. --- RockMFR 22:41, 30 August 2008 (UTC)[reply]
Thanks, D.M.N. (talk) 07:26, 31 August 2008 (UTC)[reply]

Protected edit request on 2 January 2016[edit]

Please replace the link to WP:FAQ/Categories with a link to WP:FAQ/Categorization. GeoffreyT2000 (talk) 21:29, 2 January 2016 (UTC)[reply]

 Done, although I often wish your requests would be accompanied by one further sentence to explain why the change is needed. — Martin (MSGJ · talk) 20:41, 3 January 2016 (UTC)[reply]

Protected edit request on 19 September 2021[edit]

Please change the page so that it includes the magic word {{PAGESINCAT}} to detect how many members a category has in the current page using {{PAGENAME}}.

If the category is really empty, it should just look like:

There are no pages or files in this category.
This list may not reflect recent changes (learn more).

If the category is not empty but no items are shown within the user's selection, it should look like

There are no pages or files within your selection.
This list may not reflect recent changes (learn more).

The code should look like this:

<div id="mw-category-empty" style="margin:2em 1em 0 1em; padding:0.5em; border:1px solid #AAA; text-align:center; font-style:italic;">There are no pages or files {{#ifexpr:{{PAGESINCAT:{{PAGENAME}}}} = 0|in this category|within your selection}}.<br />This list may not reflect recent changes ([[Wikipedia:FAQ/Categorization#Why might a category list not be up to date?|learn more]]).</div>

Eyesnore 01:31, 19 September 2021 (UTC)[reply]

 Donexaosflux Talk 18:04, 22 September 2021 (UTC)[reply]
@Xaosflux: I almost forgot. Make sure to change {{#ifexpr:{{PAGESINCAT:{{PAGENAME}}}} = 0|in this category|within your selection}} to {{#ifexpr:{{PAGESINCAT:{{PAGENAME}}|R}} = 0|in this category|within your selection}} as the "R" parameter of the PAGESINCAT magic word removes the formatting (commas) from the number, thus preventing an expression error. Eyesnore 19:39, 30 September 2021 (UTC)[reply]
 Donexaosflux Talk 21:40, 30 September 2021 (UTC)[reply]