Template:Action: Difference between revisions
Jump to navigation
Jump to search
Created page with "test" |
mNo edit summary |
||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude><span class="mush-button">{{#if: {{{2|}}} | |||
| <!-- Number of AP --> | |||
{{#if: {{{3|}}} | |||
| <!-- Number + type --> | |||
{{{2}}} {{AP}} or {{AP|{{{3}}}}} {{{1}}} | |||
| <!-- Number w/o type --> | |||
{{{2}}} {{AP}} {{{1}}} | |||
}} | |||
| <!-- No number (the type is ignored) --> | |||
{{{1}}} | |||
}}</span></onlyinclude></includeonly> | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Action", | |||
"description": "Name of the displayed action", | |||
"required": true, | |||
"type": "string" | |||
}, | |||
"2": { | |||
"label": "Number of AP", | |||
"description": "Number of necessary action points (optional).", | |||
"required": false, | |||
"type": "number" | |||
}, | |||
"3": { | |||
"label": "Type of", | |||
"description": "Type of AP (optional, if no number of AP is given).", | |||
"required": false, | |||
"type": "string" | |||
} | |||
}, | |||
"description": "This template is used to display actions along with their cost in action points." | |||
} | |||
</templatedata> | |||
</noinclude> | |||
{| class="wikitable" | |||
|+ | |||
! Code !! Result | |||
|- | |||
| <code><nowiki>{{Action|Examine}}</nowiki></code> || {{Action|Examine}} | |||
|- | |||
| <code><nowiki>{{Action|Take off|2}}</nowiki></code> || {{Action|Take off|2}} | |||
|- | |||
| <code><nowiki>{{Action|Graft|2|Garden}}</nowiki></code> || {{Action|Graft|2|Garden}} | |||
|} | |||
</noinclude> | |||
[[Category:Templates]] | |||
Latest revision as of 21:16, 17 April 2026
This template is used to display actions along with their cost in action points.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Action | 1 | Name of the displayed action | String | required |
| Number of AP | 2 | Number of necessary action points (optional). | Number | optional |
| Type of | 3 | Type of AP (optional, if no number of AP is given). | String | optional |
| Code | Result |
|---|---|
{{Action|Examine}} |
|
{{Action|Take off|2}} |
|
{{Action|Graft|2|Garden}} |