Template:Script data/doc: Difference between revisions

Content deleted Content added
creating
 
No edit summary
 
(13 intermediate revisions by 5 users not shown)
Line 1:
{{Documentation subpage}}
{{deprecated template|note=Not used, not maintainerd}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
===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):
 
<pre>{{script data | page = User:Gary/script installer.js }}</pre>
 
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 ===
;hideicon: Set to "yes" to hide the [[Template:Top icon|top icon]]
;page: The script's page name.
;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.
 
==See also==
<includeonly>
* {{tl|Style data}}
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
* {{tl|Stylesheet data}}
 
</includeonly>{{Sandbox other||
[[Category:Wikipedia-specific image insertion templates]]
}}</includeonly>