m (try to fix) |
(remove syntax header, info can be put under usages) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!</includeonly>-- This preload is based off the original documentation template's own documentation. You do not have to follow it exactly. --<includeonly>></includeonly> | |||
==Description== | ==Description== | ||
<!-- | <!--Summary of what the main function of the template is--> | ||
This template can be used to... | This template can be used to... | ||
==Usage== | ==Usage== | ||
Line 19: | Line 16: | ||
==Parameters== | ==Parameters== | ||
<includeonly><templatedata | <includeonly><templatedata>{ "description": "SHORT DESCRIPTION HERE","params": { | ||
"parameter1": { | "parameter1": { | ||
"label": "Fancy_Name", | "label": "Fancy_Name", | ||
Line 33: | Line 30: | ||
"example": "Example_Input", | "example": "Example_Input", | ||
"default": "Default_If_Static" | "default": "Default_If_Static" | ||
}}}</templatedata> | }}}</templatedata></includeonly> | ||
<!--The following is a template with all options listed: | <!--The following is a template with all options listed: | ||
}, | }, | ||
Line 50: | Line 47: | ||
"inherits": "put another parameter name here to copy its properties (gets overwritten by new ones)", | "inherits": "put another parameter name here to copy its properties (gets overwritten by new ones)", | ||
IMPORTANT, the text < }, > must be removed from the very first parameter you list. Also, the last option you have for every parameter must not end with a comma (so for example if <"default"> was the last one you need to do <"default": "Default_If_Static"> - notice the lack of a comma)--> | IMPORTANT, the text < }, > must be removed from the very first parameter you list. Also, the last option you have for every parameter must not end with a comma (so for example if <"default"> was the last one you need to do <"default": "Default_If_Static"> - notice the lack of a comma)--> | ||
==Sample== | ==Sample== | ||
The following input: | The following input: | ||
<pre>{{Example|param=value|pa..}}</pre> | <pre>{{Example|param=value|pa..}}</pre> | ||
Produces: | Produces: | ||
Example here | |||
<includeonly><noinclude>< | <includeonly><</includeonly>noinclude><includeonly>__NOTOC__ [[Category:Template documentation]]</includeonly><includeonly><</includeonly>/noinclude> | ||
<includeonly><includeonly> | <includeonly><</includeonly>includeonly>__NOEDITSECTION__<includeonly><</includeonly>/includeonly><noinclude>[[Template:Documentation]] | ||
[[Category:Preload]]</noinclude> |
Latest revision as of 21:18, 12 July 2024
-- This preload is based off the original documentation template's own documentation. You do not have to follow it exactly. --
Description
This template can be used to...
Usage
Parameters
Sample
The following input:
{{Example|param=value|pa..}}
Produces: Example here
noinclude>/noinclude> includeonly>/includeonly>Template:Documentation