mNo edit summary |
(No change, I just standardize the visual code like the other scripts) |
||
(26 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}} |
||
+ | {{Personal}} |
||
{{Infobox JavaScript |
{{Infobox JavaScript |
||
− | | uselang = {{{uselang|}}} |
||
| Title = {{{infobox-title|PurgeButton}}} |
| Title = {{{infobox-title|PurgeButton}}} |
||
− | | Description = {{{infobox-description|Adds " |
+ | | Description = {{{infobox-description|Adds "Purge" option to page controls}}} |
| Image file = PurgeButton.png |
| Image file = PurgeButton.png |
||
− | | Scope = |
+ | | 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) |
||
+ | * [[User:Uberfuzzy|Uberfuzzy]] |
||
− | | Updated = October 24, 2016 |
||
+ | * [[User:Grunny|Grunny]] (Oasis support) |
||
+ | * [[User:Pecoes|Pecoes]] (Browser reload) |
||
+ | * [[User:KockaAdmiralac|KockaAdmiralac]] (Rewrite and i18n) |
||
+ | * [[User:Sophiedp|Sophie]] (Rewrite) |
||
| Code = [[MediaWiki:PurgeButton/code.js|code.js]] |
| Code = [[MediaWiki:PurgeButton/code.js|code.js]] |
||
⚫ | |||
| Languages = auto |
| Languages = auto |
||
| Status = stable |
| Status = stable |
||
+ | | Type = editing |
||
}} |
}} |
||
⚫ | |||
+ | == {{{installation-title|{{#invoke:I18n|getMsg|Documentation|installation}}}}} == |
||
⚫ | |||
+ | {{Script Install |
||
− | |||
+ | | Use = P |
||
− | == {{{installation-title|Installation}}} == |
||
⚫ | |||
− | {{Script Install/ImportJS|uselang = {{{uselang|}}}}} |
||
⚫ | |||
== {{{configuration-title|Configuration}}} == |
== {{{configuration-title|Configuration}}} == |
||
{{{configuration-text| |
{{{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-title|Translations}}} == |
||
− | {{{translations-text| |
||
− | 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)