Template:LuaCallout: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
m use {{pipe}}
Flozi (talk | contribs)
m and another {{pipe}}
Line 5: Line 5:
|name = UseTeamResource
|name = UseTeamResource
|params = number teamID, <br/> string "metal" {{pipe}} "energy", number amount {{pipe}} <br/> { metal = number amount, energy = number amount}
|params = number teamID, <br/> string "metal" {{pipe}} "energy", number amount {{pipe}} <br/> { metal = number amount, energy = number amount}
|return = nil | bool hadEnough
|return = nil {{pipe}} bool hadEnough
|description = Imposes a one-off usage of resources on the given team. The return value indicates whether or not the team had sufficient resources to meet the usage demand.}}
|description = Imposes a one-off usage of resources on the given team. The return value indicates whether or not the team had sufficient resources to meet the usage demand.}}
</noinclude>
</noinclude>

Revision as of 04:14, 22 February 2013

Lua Callout usage example:

{{LuaCallout|parent|name|params|return|description}}

{{{prefix}}}[[#{{{name}}}|{{{name}}}]]({{{args}}})

{{{info}}}