Wikia

Wikia Developers Wiki

PurgeButton

679pages on
this wiki
Talk83

PurgeButton adds a "Refresh" option to page controls. A "Refresh" purges both Wikia's caches and your browser's cache.

Usage

  • For site-wide use, add the line below to your wiki's MediaWiki:ImportJS page:
    dev:PurgeButton/code.js
importArticles({
    type: 'script',
    articles: [
        'u:dev:MediaWiki:PurgeButton/code.js'
    ]
});

If you're already using importArticles(), you can import the script by adding the below to the article list.

"u:dev:PurgeButton/code.js",

Change the text

To change the text of the button, set PurgeButtonText before the import, like this:

PurgeButtonText = 'purge';
 
importArticles({
    type: 'script',
    articles: [
        'u:dev:PurgeButton/code.js'
    ]
});

Other languages

Post translations on the talk page, please!

Start a Discussion Discussions about PurgeButton

  • DebugButton

    13 messages
    • King Dragonhoff wrote:How do I test to see if it works? It does not seem to be changing the actual text in the address bar. I was recently in n…
    • King Dragonhoff wrote:Okay, that's what I thought. I was just wondering if there was a little bit of script I could put in the console to test …

Around Wikia's network

Random Wiki