From Wikipedia, the free encyclopedia
Content deleted Content added
|
|
|||
| Line 11: | Line 11: | ||
|
}} |
}} |
||
|
This |
This script add a link to the Navigation portlet to go to a random disambiguation page. |
||
|
== Installation == |
== Installation == |
||
|
To install this script, go to [[Special:MyPage/common.js| |
To install this script, go to [[Special:MyPage/common.js|common.js]] and add the following line of code: |
||
|
{{tlc|subst:lusc|User:Dlrohrer2003/random-disambig-link.js}} |
{{tlc|subst:lusc|User:Dlrohrer2003/random-disambig-link.js}} |
||
Latest revision as of 08:56, 4 January 2026
This Random Disambig Link script add a link to the Navigation portlet to go to a random disambiguation page.
To install this script, go to your common.js page and add the following line of code:
{{subst:lusc|User:Dlrohrer2003/random-disambig-link.js}}
Originally, this user script started of as a fork of Splarka’s own script: randab.js. That script used the API to request information on a group of articles, look through the categories those articles were a member of, and check to see if any were a member of the category All disambiguation pages. If no pages were found, then it would keep requesting information on groups of pages until one was identified. Then it would go to that page.
Years later, I discovered that the random in category special page existed. After that, I wound up changing the portlet link to go there instead of having to do the whole API thing.

