Template:Param: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle m Protected "Template:Param": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite)) |
imported>StDoodle mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly> {{#if: {{{ag|}}}|<b>{{Lnkstart}}Datatype Constants#Aggregate{{!}}{{{1}}} {{Lnkend}}</b>|<b>{{Lnkstart}}Datatype Constants#{{{1}}}{{!}}{{{1}}}{{Lnkend}}</b>}} {{#if: {{{2|}}}|{{Pspan|{{{2}}}}} }}</includeonly> | |||
<noinclude> | <noinclude> | ||
<h2>Using Param</h2> | <h2>Using Param</h2> | ||
Line 13: | Line 14: | ||
[[Category:Basic Templates]] | [[Category:Basic Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 18:20, 14 March 2010
Using Param
This is the template for a parameter; first supplied value is parameter type, second is parameter description.
Note that the second parameter, description, is optional. (If used, it will be displayed with automatic styling via Template:Pspan.)
To specify that the return dataype is an aggregate, supply an additional argument of "ag=SOMETHING" where SOMETHING can be any string at all.
Examples
{{Param|int|count}}
Produces: int count
{{Param|string}}
Produces: string
{{Param|int [string]|map|ag=t}}
Produces: int [string] map