m (Collapse languages, add myself as author, link to translations editor) Tag: sourceedit |
(No change, I just standardize the visual code like the other scripts) |
||
(42 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
+ | <!-- If you want to preview the template while editing, simply "break" the <includeonly> tag while you're working on it. Just remember to put it back together before publishing.--> |
||
+ | <noinclude>{{LangSelect}}</noinclude><includeonly> |
||
{{Languages}} |
{{Languages}} |
||
+ | {{Personal}} |
||
{{Infobox JavaScript |
{{Infobox JavaScript |
||
+ | | Title = {{{infobox-title|PurgeButton}}} |
||
− | | Description = Adds " |
+ | | Description = {{{infobox-description|Adds "Purge" option to page controls}}} |
− | | Image file = PurgeButton.png |
+ | | Image file = PurgeButton.png |
− | | Scope = Site-wide<br />Personal |
||
+ | | Scope = p |
||
− | | Author = [[User:Uberfuzzy|Uberfuzzy]]<br />[[User:Grunny|Grunny]] (Oasis support)<br />[[User:Pecoes|Pecoes]] (Browser reload)<br />[[User:KockaAdmiralac|KockaAdmiralac]] (Rewrite and i18n) |
||
− | | |
+ | | Author = |
+ | * [[User:Uberfuzzy|Uberfuzzy]] |
||
⚫ | |||
+ | * [[User:Grunny|Grunny]] (Oasis support) |
||
− | | Skins = omb |
||
+ | * [[User:Pecoes|Pecoes]] (Browser reload) |
||
− | | Languages = {{l|collapse=yes|be|bg|de|en|es|fr|hu|it|ja|ko|nl|pl|pt|pt-br|ru|sr|tl|uk|vi|zh}} |
||
+ | * [[User:KockaAdmiralac|KockaAdmiralac]] (Rewrite and i18n) |
||
+ | * [[User:Sophiedp|Sophie]] (Rewrite) |
||
⚫ | |||
+ | | Languages = auto |
||
+ | | Status = stable |
||
+ | | Type = editing |
||
}} |
}} |
||
− | '''PurgeButton''' adds a " |
+ | {{{description|'''PurgeButton''' adds a "Purge" option to page controls. Upon clicking the button, it purges both Fandom's caches ''and'' your browser's cache.}}} |
+ | == {{{installation-title|{{#invoke:I18n|getMsg|Documentation|installation}}}}} == |
||
− | == Installation == |
||
− | {{Script Install |
+ | {{Script Install |
+ | | Use = P |
||
⚫ | |||
+ | }} |
||
− | == Configuration == |
+ | == {{{configuration-title|Configuration}}} == |
+ | {{{configuration-text| |
||
− | To change the text of the button, set <code>PurgeButtonText</code> |
+ | To change the text of the button, set <code>PurgeButtonText</code>, like this:}}} |
<syntaxhighlight lang="javascript"> |
<syntaxhighlight lang="javascript"> |
||
− | PurgeButtonText = 'purge'; |
+ | window.PurgeButtonText = 'purge'; |
− | |||
− | importArticles({ |
||
− | type: 'script', |
||
− | articles: [ |
||
⚫ | |||
− | ] |
||
− | }); |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
+ | </includeonly> |
||
− | |||
− | == Translations == |
||
− | You can use the [[Special:BlankPage/I18nEdit/PurgeButton|translations editor]] to edit translations of this script. |
Revision as of 19:32, 17 October 2020
This script/stylesheet is for PERSONAL use only!
You are free to install this script/stylesheet for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:ImportJS, MediaWiki:Common.js, MediaWiki:Common.css, MediaWiki:Fandomdesktop.js or MediaWiki:Fandomdesktop.css), as it would violate Fandom's Terms of Use.
(See the customization policy)
PurgeButton adds a "Purge" option to page controls. Upon clicking the button, it purges both Fandom's caches and your browser's cache.
Installation
Configuration
To change the text of the button, set PurgeButtonText
, like this:
window.PurgeButtonText = 'purge';
Text above can be found here (edit)