Template:Script installation text and Template:Script installation text/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
better link, per issue raised on my user talk
 
 
Line 1: Line 1:
== Installation ==
== Installation ==
{{must log in}}
{{must log in}}
After installing the script, [[Wikipedia:bypass your cache|bypass your cache]].
After installing the script, [[Wikipedia:bypass the cache|bypass the cache]] of the page.
;Method 1:
;Method 1:
Click on the button below. If it doesn't appear after a few seconds you can enable script installer in the "Advanced" section of [[Special:Preferences#mw-prefsection-gadgets]], or try {{Script installer link|this link}}.
Click on the button below. If it doesn't appear after a few seconds, then try {{Script installer link|this link}}.


<div style="margin:1em;">{{User script install button}}</div>
{{User script install button}}
;Method 2:
;Method 2:
This can be used on any Wikimedia project (for instance, globally in your [[meta:Special:MyPage/global.js|global.js]] on the Meta-Wiki).
This can only be used on the English Wikipedia.
# Place {{SAFESUBST:<noinclude />#tag:syntaxhighlight|importScript('{{SAFESUBST:<noinclude />FULLPAGENAME}}.js'); // [[{{SAFESUBST:<noinclude />FULLPAGENAME}}.js]]|lang="javascript"|inline=2}} on the bottom of [[Special:MyPage/common.js|your common.js page]] or [[Special:MyPage/skin.js|your skin.js page]].
# Place {{SAFESUBST:<noinclude />#tag:syntaxhighlight|mw.loader.load('//en.wikipedia.org/w/index.php?title={{SAFESUBST:<noinclude />urlencode:{{SAFESUBST:<noinclude />FULLPAGENAME}}.js}}&action=raw&ctype=text/javascript'); // [[{{SAFESUBST:<noinclude />FULLPAGENAME}}.js]]|lang="javascript"|inline=2}} on the bottom of [[Special:MyPage/common.js|your common.js page]] or [[Special:MyPage/skin.js|your skin.js page]].
# Press <span class="mw-ui-button mw-ui-progressive">Publish changes</span> (ignore any error warnings).
# Press <span class="mw-ui-button mw-ui-progressive">Publish changes</span> (ignore any error warnings).
<includeonly>{{SAFESUBST:<noinclude />#if:{{Find page text|text=[[Category:Wikipedia scripts]]|title={{FULLPAGENAME}}}}|{{SAFESUBST:<noinclude />#switch:{{{categorize|{{{cat|}}}}}}|never|no=|{{SAFESUBST:<noinclude />#switch:{{SAFESUBST:<noinclude />NAMESPACENUMBER}}|2|4=[[Category:Wikipedia scripts|{{SAFESUBST:<noinclude />SUBPAGENAME}}]]}}}}}}</includeonly>
;Method 3:
;Method 3:
This can only be used on the English Wikipedia.
This can be used on any Wikimedia project (for instance, globally in your [[meta:Special:MyPage/global.js|global.js]] on the Meta-Wiki).
{{Warning|This method is deprecated and may be removed.}}
# Place {{SAFESUBST:<noinclude />#tag:syntaxhighlight|mw.loader.load('https://en.wikipedia.org/w/index.php?title={{SAFESUBST:<noinclude />urlencode:{{SAFESUBST:<noinclude />FULLPAGENAME}}.js}}&action=raw&ctype=text/javascript'); // [[{{SAFESUBST:<noinclude />FULLPAGENAME}}.js]]|lang="javascript"|inline=2}} on the bottom of [[Special:MyPage/common.js|your common.js page]] or [[Special:MyPage/skin.js|your skin.js page]].
# Place {{tlxs|iusc|1{{=}}{{SAFESUBST:<noinclude />FULLPAGENAME}}.js}} on the bottom of [[Special:MyPage/common.js|your common.js page]] or [[Special:MyPage/skin.js|your skin.js page]].
# Press <span class="mw-ui-button mw-ui-progressive">Publish changes</span> (ignore any error warnings).
# Press <span class="mw-ui-button mw-ui-progressive">Publish changes</span> (ignore any error warnings).
<includeonly>{{SAFESUBST:<noinclude />#if:{{Find page text|text=[[Category:Wikipedia scripts]]|title={{FULLPAGENAME}}}}|{{SAFESUBST:<noinclude />#switch:{{{categorize|{{{cat|}}}}}}|never|no=|{{SAFESUBST:<noinclude />#switch:{{SAFESUBST:<noinclude />NAMESPACENUMBER}}|2|4=[[Category:Wikipedia scripts|{{SAFESUBST:<noinclude />SUBPAGENAME}}]]}}}}}}</includeonly>
<!-- Template:Script installation text -->
<!-- Template:Script installation text -->
<noinclude>{{Documentation}}
<noinclude>{{Documentation}}</noinclude>
[[Category:Wikipedia scripts|*]]</noinclude>