Difference between revisions of "Template:Function"
Jump to navigation
Jump to search
m
Note on new arguments parameter. CategoryList is technically optional
imported>SnakeChomp (Whitespace fix when name is omitted. Documentation beautification.) |
imported>SnakeChomp m (Note on new arguments parameter. CategoryList is technically optional) |
||
Line 18: | Line 18: | ||
on with the dot syntax | on with the dot syntax | ||
''arguments'' = List of arguments specified using the [[Template:FunctionArgument]] template, | ''arguments'' = List of arguments specified using the [[Template:FunctionArgument]] template, | ||
or any other wiki syntax. | or any other wiki syntax. Use this or the arg0-arg9 parameters. | ||
''arg0'' = the first '''mandatory''' argument | ''arg0'' = the first '''mandatory''' argument | ||
(''arg*'' parameters are optional, not all functions have mandatory arguments) | (''arg*'' parameters are optional, not all functions have mandatory arguments) | ||
Line 28: | Line 28: | ||
... (the template also accepts 10 optional arguments, optArg0 through optArg9) | ... (the template also accepts 10 optional arguments, optArg0 through optArg9) | ||
''example'' = optionally, the function used as part of a script to serve as an example | ''example'' = optionally, the function used as part of a script to serve as an example | ||
CategoryList = the list of categories to which the page belongs | ''CategoryList'' = the list of categories to which the page belongs | ||
<nowiki>}}</nowiki> | <nowiki>}}</nowiki> | ||