Template:Script data/doc

From Bharatpedia, an open encyclopedia
< Template:Script data
Revision as of 01:55, 30 September 2024 by Muskit Gergous (talk | contribs) (Created page with "{{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): <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</n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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):

{{script data | page = User:Gary/script installer.js }}

If the script's source page name is the same as the documentation page's (with an added .js), you can use:

{{script data | page = {{subst:FULLPAGENAME}}.js }}

Use cases

This template is used by Bharatpedia:Script Installer to add an install button to script documentation pages.

Parameters

page
The script's page name.
hideicon (optional)
Set to "yes" to hide the top icon
type (optional)
Set to "stylesheet" to indicate that the script is a stylesheet.

See also