Content deleted Content added
→Parameters: example |
No edit summary |
||
(7 intermediate revisions by 5 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{deprecated template|note=Not used, not maintainerd}}
===How to use===
On a script's documentation page, at the bottom of the page, place the following code (fill in your own script's page name, of course):
If the script's source page name is the same as the documentation page's (with an added .js), you can use:
<pre>{{script data | page = <nowiki>{{subst:FULLPAGENAME}}.js</nowiki> }}</pre>
== Use cases ==
This template is used by [[Wikipedia:Script Installer]] to add an install button to script documentation pages.
=== Parameters ===
Line 6 ⟶ 17:
;hideicon (optional): Set to "yes" to hide the [[Template:Top icon|top icon]]
;type (optional): Set to "stylesheet" to indicate that the script is a stylesheet.
▲<pre>{{script data | page = User:Gary King/script installer.js }}</pre>
==See also==
* {{tl|Style data}}
* {{tl|Stylesheet data}} <includeonly>{{Sandbox other||
}}</includeonly>▼
▲[[Category:Image insertion templates]]
▲</includeonly>
|