Template:LuaCallout: Difference between revisions

From Spring
Jump to navigationJump to search
Flozi (talk | contribs)
falafel
 
Flozi (talk | contribs)
m use {{pipe}}
Line 4: Line 4:
|parent = Spring
|parent = Spring
|name = UseTeamResource
|name = UseTeamResource
|params = number teamID, <br/> string "metal" | "energy", number amount | <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 | 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:13, 22 February 2013

Lua Callout usage example:

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

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

{{{info}}}