Difference between revisions of "Template:FunctionArgument"

Jump to navigation Jump to search
107 bytes added ,  16:11, 30 January 2009
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
|Value = 0/1
}}</pre>
}}</pre>


Line 10: Line 20:
|Name = foo
|Name = foo
|Type = int
|Type = int
|Value = 0/1/2
}}
}}


</noinclude><includeonly>&nbsp;{{{Name}}}{{#if: {{{Value|}}} | [{{{Value}}}]) | :{{{Type}}}}}&nbsp;</includeonly>
</noinclude><includeonly>&nbsp;{{{Name}}}{{#if: {{{Value|}}} | [{{{Value}}}] | :{{{Type}}}}}&nbsp;</includeonly>
Anonymous user

Navigation menu