Template:Param: Difference between revisions
Jump to navigation
Jump to search
imported>StDoodle mNo edit summary |
imported>StDoodle mNo edit summary |
||
Line 9: | Line 9: | ||
<pre>{{Param|string}}</pre> | <pre>{{Param|string}}</pre> | ||
Produces: {{Param|string}} | Produces: {{Param|string}} | ||
<pre>{{Param|int [string]|map| | <pre>{{Param|int [string]|map|ag=t}}</pre> | ||
Produces: <b>[[Aggregate|int [string]]] </b>{{Pspan|map}} | Produces: <b>[[Aggregate|int [string]]] </b>{{Pspan|map}} | ||
[[Category:Basic Templates]] | [[Category:Basic Templates]] | ||
</noinclude><includeonly> {{#if: {{{ag|}}}|<b>[[Aggregate|{{{1}}} ]]</b>|'''[[{{{1}}}]]'''}} {{#if: {{{2|}}}|{{Pspan|{{{2}}}}} }}</includeonly> | </noinclude><includeonly> {{#if: {{{ag|}}}|<b>[[Aggregate|{{{1}}} ]]</b>|'''[[{{{1}}}]]'''}} {{#if: {{{2|}}}|{{Pspan|{{{2}}}}} }}</includeonly> |
Revision as of 15:39, 28 February 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 styled by 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