Difference between revisions of "Template:FunctionArgument"
Jump to navigation
Jump to search
imported>SnakeChomp (Make name optional. More examples.) |
imported>SnakeChomp (Try out optional syntax) |
||
Line 35: | Line 35: | ||
}} | }} | ||
</noinclude><includeonly> {{#if: {{{Name|}}} | {{{Name}}} |}}{{#if: {{{Value|}}} | {{{Value}}} | <nowiki>:</nowiki>{{{Type}}}}}</includeonly> | </noinclude><includeonly> {{#if: {{{Optional|}}} | '' |}}{{#if: {{{Name|}}} | {{{Name}}} |}}{{#if: {{{Value|}}} | {{{Value}}} | <nowiki>:</nowiki>{{{Type}}}}}{{#if: {{{Optional|}}} | '' |}}</includeonly> |
Revision as of 16:27, 30 January 2009
Example 1
{{FunctionArgument |Name = foo |Type = int }}
foo:int
Example 2
{{FunctionArgument |Values = {0, 1} }}
{0, 1}
Example 3
{{FunctionArgument |Name = flag |Values = {0, 1} }}
flag{0, 1}