Difference between revisions of "Template:Param"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>StDoodle
m (Protected "Template:Param": High traffic page ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(No difference)

Revision as of 06:22, 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