Template:RawWikiUserscript: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
(defined)
 
m (bug fix)
Line 1: Line 1:
<span class="plainlinks">[{{SERVER}}/index.php?title={{{1}}}&action=raw&ctype=text/javascript&US={{{2|1}}}.user.script {{{2|1}}}]</span>
<span class="plainlinks">[{{SERVER}}/index.php?title={{{1}}}&action=raw&ctype=text/javascript&US={{{2|1}}}.user.js {{{2|1}}}]</span>
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Gives a link to the raw text of a wiki userscript in a form that when clicked will cause a running Greasemonkey to try to install it.<br/><br/>
Gives a link to the raw text of a wiki userscript in a form that when clicked will cause a running Greasemonkey to try to install it.<br/><br/>
<nowiki>{{RawWikiUserscript User:Rod_McGuire/dataschemetest.u.js dataschemetest}}</nowiki>
<nowiki>{{RawWikiUserscript|User:Rod_McGuire/dataschemetest.u.js|dataschemetest}}</nowiki>
<br/>=><br/>
<br/>=><br/>
<nowiki><span class="plainlinks">
<nowiki><span class="plainlinks">
Line 10: Line 10:
The specific parameter <code>&US</code> is not important. As far as Greasemonkey is concerned the only important thing is that the URL ends in <code>.user.js</code>.
The specific parameter <code>&US</code> is not important. As far as Greasemonkey is concerned the only important thing is that the URL ends in <code>.user.js</code>.


{{RawWikiUserscript User:Rod_McGuire/dataschemetest.u.js dataschemetest}}
{{RawWikiUserscript|User:Rod_McGuire/dataschemetest.u.js|dataschemetest}}


</noinclude>
</noinclude>

Revision as of 17:10, 2 February 2010

1

Usage

Gives a link to the raw text of a wiki userscript in a form that when clicked will cause a running Greasemonkey to try to install it.

{{RawWikiUserscript|User:Rod_McGuire/dataschemetest.u.js|dataschemetest}}
=>
<span class="plainlinks"> [http://wiki.greasespot.net/index.php?title=User:Rod_McGuire/dataschemetest.u.js&action=raw&ctype=text/javascript&US=dataschemetest.user.js dataschemetest]</span>

The specific parameter &US is not important. As far as Greasemonkey is concerned the only important thing is that the URL ends in .user.js.

dataschemetest