Template:Script data/doc: Difference between revisions

Content deleted Content added
Parameters: add type
No edit summary
 
(11 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 (empty by default): Set to "yes" to hide the [[Template:Top icon|top icon]]
;page: The script's page name.
;typehideicon (empty by defaultoptional): Set to "stylesheetyes" to indicate thathide the script is[[Template:Top aicon|top stylesheet.icon]]
;type (optional): Set to "stylesheet" to indicate that the script is a stylesheet.
 
==See also==
* {{tl|Style data}}
* {{tl|Stylesheet data}}
 
<includeonly>{{Sandbox other||
[[Category:ImageWikipedia-specific image insertion templates]]
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
}}</includeonly>
[[Category:Image insertion templates]]
</includeonly>