MediaWiki talk:Gadget-HotCat.js

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search

Hi,

Since MediaWiki 1.19.4 update, your HotCat needs to be updated. Look at the bottom of this page. There is no more change (±) and delete (-) options. We have just updated our version. The structure of the category bar has changed:


Before MediaWiki 1.19.4
After MediaWiki 1.19.4
<div id="mw-normal-catlinks">
  <a href="/Special:Categories" title="Special:Categories">
    Categories
  </a>
  : 
  <span dir="ltr">
    <a href="/Category:Greek_culture" title="Category:Greek culture">
      Greek culture
    </a>
  </span>
   | 
  <span dir="ltr">
    <a href="/Category:Philosophers" title="Category:Philosophers">
      Philosophers
    </a>
  </span>
   | 
  <span dir="ltr">
    <a href="/Category:Tedious_know-it-alls_of_Ancient_Greece" title="Category:Tedious know-it-alls of Ancient Greece">
      Tedious know-it-alls of Ancient Greece
    </a>
  </span>
   | 
  <span dir="ltr">
    <a href="/Category:Featured" title="Category:Featured">
      Featured
    </a>
  </span>
</div>
<div id="mw-normal-catlinks" class="mw-normal-catlinks">
  <a href="/wiki/Special:Categories" title="Special:Categories" rel="nofollow">
    Categories
  </a>
  : 
  <ul>
    <li>
      <a href="/wiki/Category:Greek_culture" title="Category:Greek culture">
        Greek culture
      </a>
    </li>
    <li>
      <a href="/wiki/Category:Philosophers" title="Category:Philosophers">
        Philosophers
      </a>
    </li>
    <li>
      <a href="/wiki/Category:Tedious_know-it-alls_of_Ancient_Greece" title="Category:Tedious know-it-alls of Ancient Greece">
        Tedious know-it-alls of Ancient Greece
      </a>
    </li>
    <li>
      <a href="/wiki/Category:Featured" title="Category:Featured">
        Featured
      </a>
    </li>
  </ul>
</div>

Hope to be helpful. Ftiercel (talk) 21:09, March 7, 2013 (UTC)

I've recently noticed this also. It may be worth checking if Wikimedia's version would work ok here; if so, it would be very convenient to just say mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' ); rather than dealing with our own version of the gadget. ❦ Llwy-ar-lawr talkcontribs • 02:37 30 September 2014
I've found a version of HotCat that works on MediaWiki 1.19, but no version of HotCat works in mainspace because of what Oasis does to the category bar, so I won't bother putting it here until I can find a solution to this. Might as well fix it all at once if I can, since mainspace is the most useful place for this gadget and we'll have to wait for staff to approve the changes anyway. If only it had been fixed in 2013, we could have had five years of working HotCat. Too bad. PS -- yes, I looked for a version of HotCat adapted for Wikia. I didn't find anything. ❦ Llwy-ar-lawr talkcontribs • 00:14 28 January 2019
I finally figured out a workaround and copied over my forked code. HotCat will work again as soon as it's approved. ❦ Llwy-ar-lawr talkcontribs • 04:18 29 January 2019
...and this is now done because we're not in Kansas anymore. (Does anyone even read this page?) By the way, I believe the category bar issues were due not to Oasis but an extension called "CategorySelect". ❦ Llwy-ar-lawr talkcontribs • 03:28 15 May 2019

Bug fixed[edit]

HotCat documentation claims that category redirects will be resolved, and disambiguation categories suggest links. It probably never did for our site, because it was looking under a different name. As of Special:Diff/6136169, it works as documented.

This means that if I try to add the category "Athletes", it will save under category "Sportspeople". If I try to add the category "Politics and Government", it will suggest category "Politics" and category "Government" rather than saving. This is good, because we didn't have a way of knowing that "Athletes" is an obsolete category, and would have added more pages to it.

This applies to any category with either a {{Disambig}} or {{Category redirect}} on it. Dark Web, White Hat (talk) 00:34, 6 January 2022 (UTC)