Difference between revisions of "Template:FunctionArgument"
Jump to navigation
Jump to search
Add 2 examples
imported>SnakeChomp (Show either the value given or the type) |
imported>SnakeChomp (Add 2 examples) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
=Example 1= | |||
<pre>{{FunctionArgument | |||
|Name = foo | |||
|Value = 0/1 | |||
}}</pre> | |||
{{FunctionArgumentTest | |||
|Name = foo | |||
|Value = 0/1/2 | |||
}} | |||
=Example 2= | |||
<pre>{{FunctionArgument | <pre>{{FunctionArgument | ||
|Name = foo | |Name = foo | ||
|Type = int | |Type = int | ||
}}</pre> | }}</pre> | ||
Line 10: | Line 20: | ||
|Name = foo | |Name = foo | ||
|Type = int | |Type = int | ||
}} | }} | ||
</noinclude><includeonly> {{{Name}}}{{#if: {{{Value|}}} | [{{{Value}}}] | </noinclude><includeonly> {{{Name}}}{{#if: {{{Value|}}} | [{{{Value}}}] | :{{{Type}}}}} </includeonly> |