Difference between revisions of "Template:FunctionArgument"

Jump to navigation Jump to search
24 bytes added ,  19:13, 30 January 2009
Display type and values at the same time if both are specified
imported>SnakeChomp
m (Fix eamples to use new template name)
imported>SnakeChomp
(Display type and values at the same time if both are specified)
Line 6: Line 6:
|Name = The name of the function argument. May be omitted, but it only makes sense
|Name = The name of the function argument. May be omitted, but it only makes sense
         to do so when ''Values'' is specified.
         to do so when ''Values'' is specified.
|Type = The type of the function argument (int, float, ref)
|Type = The type of the function argument (int, float, ref, string, ...)
|Optional = If specified, the argument is optional
|Optional = If specified, the argument is optional
|Values = If specified, the given set of values is shown instead of the type
|Values = If specified, appears after the name and type information.
}}
}}
</pre>
</pre>
Line 59: Line 59:
}}
}}


</noinclude><includeonly>&nbsp;{{#if: {{{Optional|}}} | '' |}}{{#if: {{{Name|}}} | {{{Name}}} |}}{{#if: {{{Value|}}} | <nowiki>{</nowiki>{{{Value}}}<nowiki>}</nowiki> | <nowiki>:</nowiki>{{{Type}}}}}{{#if: {{{Optional|}}} | '' |}}</includeonly>
</noinclude><includeonly>&nbsp;{{#if: {{{Optional|}}} | '' |}}{{#if: {{{Name|}}} | {{{Name}}} |}}{{#if: {{{Type|}}}|<nowiki>:</nowiki>{{{Type}}}|}}{{#if: {{{Value|}}} | <nowiki>{</nowiki>{{{Value}}}<nowiki>}</nowiki>}}{{#if: {{{Optional|}}} | '' |}}</includeonly>
Anonymous user

Navigation menu