Difference between revisions of "Template:FunctionArgument"
Jump to navigation
Jump to search
Move template code to the top. Add Value to example 4.
imported>SnakeChomp (Display type and values at the same time if both are specified) |
imported>SnakeChomp (Move template code to the top. Add Value to example 4.) |
||
Line 1: | Line 1: | ||
<noinclude> | <includeonly> {{#if: {{{Optional|}}} | '' |}}{{#if: {{{Name|}}} | {{{Name}}} |}}{{#if: {{{Type|}}}|<nowiki>:</nowiki>{{{Type}}}|}}{{#if: {{{Value|}}} | <nowiki>{</nowiki>{{{Value}}}<nowiki>}</nowiki>}}{{#if: {{{Optional|}}} | '' |}}</includeonly><noinclude> | ||
=Template syntax= | =Template syntax= | ||
Line 50: | Line 50: | ||
|Name = foo | |Name = foo | ||
|Type = int | |Type = int | ||
|Value = 0,1 | |||
|Optional = y | |Optional = y | ||
}}</pre> | }}</pre> | ||
Line 56: | Line 57: | ||
|Name = foo | |Name = foo | ||
|Type = int | |Type = int | ||
|Value = 0,1 | |||
|Optional = y | |Optional = y | ||
}} | }} | ||
</noinclude | </noinclude> |