MediaWiki talk:Clearyourcache
Add topic| MediaWiki:Clearyourcache is displayed on top of .css and .js pages in MediaWiki and User space. In MediaWiki space it also shows the editnotice of the page, if there is one. In User space it also shows MediaWiki:Userjsdangerous, and a green box with a link to the script's documentation if there is documentation. This interface message or skin may also be documented on MediaWiki.org or translatewiki.net. The page forms part of the MediaWiki interface, and can only be edited by administrators and interface editors. To request a change to the page, add {{edit fully-protected}} to this page, followed by a description of your request. Consider announcing discussions you add here at Wikipedia:Village pump (technical) to bring more people to the discussion. |
Protected edit request on 8 November 2023
[edit]This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Please change {{MediaWiki:Userjsdangerous}} to {{int:Userjsdangerous}}. The reason is internationalization - int: will adjust the messages according to the language selected, but this won't. Awesome Aasim 20:02, 8 November 2023 (UTC)
Not done Given that the English warning includes significantly more information than the translated warnings I'm not convinced this is a good idea. * Pppery * it has begun... 00:33, 9 November 2023 (UTC)
Protected edit request on 26 January 2024
[edit]This edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Please change to
{{#switch: {{NAMESPACE}}
| MediaWiki =
{{#ifexist: Template:Editnotices/Page/{{FULLPAGENAME}}
| <!--This MediaWiki page has an editnotice, display it-->
{{ Template:Editnotices/Page/{{FULLPAGENAME}} | notice action=view }}
}}
| User = <div class="mw-parser-output">
{{fmbox
| type = warning
| image = none
| id = jswarning
| text = {{MediaWiki:Userjsdangerous}}
}}</div>
}}{{script doc auto}}<div class="mw-parser-output"><span id="clearprefcache">'''Note:''' After saving, you have to bypass your browser's cache to see the changes. '''Google Chrome''', '''Firefox''', '''Microsoft Edge''' and '''Safari''': Hold down the {{key press|Shift}} key and click the ''Reload'' toolbar button. For details and instructions about other browsers, see [[Wikipedia:Bypass your cache]].</span></div>
.
This pulls out {{script doc auto}} out of the namespace switch, making it show up on both user and mediawiki namespaces. (This interface message is only used on NS2 and NS8 so other namesapces aren't in the picture).
Right now, {{script doc auto}} doesn't give any sensible output on MediaWiki namespace but I've requested an edit to change that, which should ideally be implemented first. – SD0001 (talk) 09:25, 26 January 2024 (UTC)
Proposal
[edit]This version is more in-depth with instructions for each browser and closely matches the text set on meta-wiki:
{{#switch: {{NAMESPACE}}
| MediaWiki =
{{#ifexist: Template:Editnotices/Page/{{FULLPAGENAME}}
| <!--This MediaWiki page has an editnotice, display it-->
{{ Template:Editnotices/Page/{{FULLPAGENAME}} | notice action=view }}
}}
| User =
{{#ifeq:{{#contentmodel}}|JSON||{{fmbox
| type = warning
| image = none
| id = jswarning
| text = {{MediaWiki:Userjsdangerous}}
}}}}
}}{{script doc auto}}<div class="mw-parser-output"><span id="clearprefcache"><strong>Note:</strong> After publishing, you may have to bypass your browser's cache to see the changes. For details and instructions about other browsers, see [[Wikipedia:Bypass your cache]].
* <strong>Google Chrome, Firefox, Microsoft Edge, and Safari:</strong> Hold down the <em>{{key press|Shift}}</em> key and click the ''Reload'' toolbar button
* <strong>Firefox / Safari:</strong> Hold <em>{{key press|Shift}}</em> while clicking <em>Reload</em>, or press either <em>{{key press|Ctrl}}–{{key press|F5}}</em> or <em>{{key press|Ctrl}}–{{key press|Shift}}–{{key press|R}}</em> (<em>{{key press|⌘}}–{{key press|Shift}}–{{key press|R}}</em> on a Mac)
* <strong>Google Chrome:</strong> Press <em>{{key press|Ctrl}}–{{key press|Shift}}–{{key press|R}}</em> (<em>{{key press|⌘}}–{{key press|Shift}}–{{key press|R}}</em> on a Mac)
* <strong>Edge:</strong> Hold <em>{{key press|Ctrl}}</em> while clicking <em>Refresh</em>, or press <em>{{key press|Ctrl}}–{{key press|F5}}</em>.</span></div>
Thoughts? ~Oshwah~(talk) (contribs) 15:27, 18 July 2026 (UTC)