Difference between revisions of "Template:FunctionArgument"
Jump to navigation
Jump to search
imported>SnakeChomp m (Try to get the : to show up as a literal :) |
imported>SnakeChomp (Try different value syntax) |
||
Line 3: | Line 3: | ||
<pre>{{FunctionArgument | <pre>{{FunctionArgument | ||
|Name = foo | |Name = foo | ||
|Value = 0 | |Value = {0, 1} | ||
}}</pre> | }}</pre> | ||
{{FunctionArgumentTest | {{FunctionArgumentTest | ||
|Name = foo | |Name = foo | ||
|Value = 0 | |Value = {0, 1} | ||
}} | }} | ||
Line 22: | Line 22: | ||
}} | }} | ||
</noinclude><includeonly> {{{Name}}}{{#if: {{{Value|}}} | | </noinclude><includeonly> {{{Name}}}{{#if: {{{Value|}}} | {{{Value}}} | <nowiki>:</nowiki>{{{Type}}}}}</includeonly> |
Revision as of 16:13, 30 January 2009
Example 1
{{FunctionArgument |Name = foo |Value = {0, 1} }}
foo{0, 1}
Example 2
{{FunctionArgument |Name = foo |Type = int }}
foo:int