Difference between revisions of "Template:Template Parameter"
m |
m |
||
Line 27: | Line 27: | ||
|validvalues=Any string. | |validvalues=Any string. | ||
}} | }} | ||
− | + | {{Template:Parameter Explanation | |
− | + | |name=usage | |
− | + | |takes=a string | |
− | + | |denotes=whether the use of the parameter is mandatory or optional | |
− | + | |generates=the "Usage" bullet point | |
− | + | |defaultvalue=Optional | |
− | + | |othernotes=The value of "Optional" will also be displayed if a value is supplied that is not "mandatory." | |
− | + | |validvalues="mandatory" | |
− | + | }} | |
− | + | {{Template:Parameter Explanation | |
− | + | |name=takes | |
− | + | |usage=mandatory | |
− | + | |takes=a string or strings | |
− | + | |denotes=what type of values the parameter takes in | |
− | + | |generates=the middle of the first sentence in the parameter's "Description" bullet point | |
− | + | |validvalues=Any string or strings. | |
− | + | }} | |
− | + | {{Template:Parameter Explanation | |
− | + | |name=denotes | |
− | + | |usage=mandatory | |
− | + | |takes=a string or strings | |
− | + | |denotes=what the value passed to the parameter corresponds to | |
− | + | |generates=the end of the first sentence in the parameter's "Description" bullet point | |
− | + | |validvalues=Any string or strings. | |
− | + | }} | |
− | + | {{Template:Parameter Explanation | |
− | + | |name=generates | |
− | + | |usage=mandatory | |
− | + | |takes=a string or strings | |
− | + | |denotes=what the parameter's data is used for | |
− | + | |generates=the second sentence in the parameter's "Description" bullet point | |
− | + | |validvalues=Any string or strings. | |
− | + | }} | |
+ | {{Template:Parameter Explanation | ||
+ | |name=defaultvalue | ||
+ | |takes=a string or strings | ||
+ | |denotes=what will be displayed if a parameter that has a default value is left blank or omitted | ||
+ | |generates=a sentence reading "If this parameter is left blank or omitted, a default value of <span style="font-family:monospace;">defaultvalue</span> is displayed." after the sentence generated by <span style="font-family:monospace;">generates</span> | ||
+ | |validvalues=Any string or strings. | ||
+ | }} | ||
+ | {{Template:Parameter Explanation | ||
+ | |name=othernotes | ||
+ | |takes=a string or strings | ||
+ | |denotes=any other relevant information about the parameter | ||
+ | |generates=a sentence or sentences at the end of the "Description" bullet point | ||
+ | |validvalues=Any string or strings. | ||
+ | }} | ||
+ | {{Template:Parameter Explanation | ||
+ | |name=validvalues | ||
+ | |usage=Mandatory | ||
+ | |takes=a string or strings | ||
+ | |denotes=any and all values that are valid to be passed to the parameter | ||
+ | |generates=the "Valid Value(s)" bullet point | ||
+ | |validvalues=Any string or strings. | ||
+ | }} | ||
</noinclude><includeonly>==={{{name}}}=== | </noinclude><includeonly>==={{{name}}}=== | ||
* '''Usage:''' {{#ifeq: {{{usage|}}} | mandatory | Mandatory | Optional}} | * '''Usage:''' {{#ifeq: {{{usage|}}} | mandatory | Mandatory | Optional}} | ||
* '''Description:''' The <span style="font-family:monospace;">{{{name}}}</span> parameter takes {{{takes}}} denoting {{{denotes}}}. This is used to generate {{{generates}}}. {{#if: {{{defaultvalue|}}} | If this parameter is left blank or omitted, a default value of "{{{defaultvalue}}}" is displayed. | }} {{#if: {{{othernotes|}}} | {{{othernotes}}} | }} | * '''Description:''' The <span style="font-family:monospace;">{{{name}}}</span> parameter takes {{{takes}}} denoting {{{denotes}}}. This is used to generate {{{generates}}}. {{#if: {{{defaultvalue|}}} | If this parameter is left blank or omitted, a default value of "{{{defaultvalue}}}" is displayed. | }} {{#if: {{{othernotes|}}} | {{{othernotes}}} | }} | ||
* '''Valid Value(s):''' {{{validvalues}}}</includeonly> | * '''Valid Value(s):''' {{{validvalues}}}</includeonly> |
Revision as of 12:18, 2 October 2009
Contents
Template:Parameter Explanation is designed for use on template pages to explain each parameter's function and usage.
Full Template
{{Parameter Explanation |name= |usage= |takes= |denotes= |generates= |defaultvalue= |othernotes= |validvalues= }}
Parameters
Template:Parameter Explanation Template:Parameter Explanation Template:Parameter Explanation Template:Parameter Explanation Template:Parameter Explanation Template:Parameter Explanation Template:Parameter Explanation Template:Parameter Explanation