Template:Action: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude><span class="mush-button">{{#if: {{{2|}}} | <includeonly><onlyinclude><span class="mush-button">{{#if: {{{2|}}} | ||
| <!-- | | <!-- Number of AP --> | ||
{{#if: {{{3|}}} | {{#if: {{{3|}}} | ||
| <!-- | | <!-- Number + type --> | ||
{{{2}}} {{AP}} | {{{2}}} {{AP}} or {{AP|{{{3}}}}} {{{1}}} | ||
| <!-- | | <!-- Number w/o type --> | ||
{{{2}}} {{AP}} {{{1}}} | {{{2}}} {{AP}} {{{1}}} | ||
}} | }} | ||
| <!-- | | <!-- No number (the type is ignored) --> | ||
{{{1}}} | {{{1}}} | ||
}}</span></onlyinclude></includeonly> | }}</span></onlyinclude></includeonly> | ||
| Line 17: | Line 17: | ||
"1": { | "1": { | ||
"label": "Action", | "label": "Action", | ||
"description": " | "description": "Name of the displayed action", | ||
"required": true, | "required": true, | ||
"type": "string" | "type": "string" | ||
}, | }, | ||
"2": { | "2": { | ||
"label": " | "label": "Number of AP", | ||
"description": " | "description": "Number of necessary action points (optional).", | ||
"required": false, | "required": false, | ||
"type": "number" | "type": "number" | ||
}, | }, | ||
"3": { | "3": { | ||
"label": "Type | "label": "Type of", | ||
"description": "Type | "description": "Type of AP (optional, if no number of AP is given).", | ||
"required": false, | "required": false, | ||
"type": "string" | "type": "string" | ||
} | } | ||
}, | }, | ||
"description": " | "description": "This template is used to display actions along with their cost in action points." | ||
} | } | ||
</templatedata> | </templatedata> | ||
| Line 41: | Line 41: | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ | ||
! Code !! | ! Code !! Result | ||
|- | |- | ||
| <code><nowiki>{{Action| | | <code><nowiki>{{Action|Examine}}</nowiki></code> || {{Action|Examine}} | ||
|- | |- | ||
| <code><nowiki>{{Action| | | <code><nowiki>{{Action|Take off|2}}</nowiki></code> || {{Action|Take off|2}} | ||
|- | |- | ||
| <code><nowiki>{{Action| | | <code><nowiki>{{Action|Graft|2|Garden}}</nowiki></code> || {{Action|Graft|2|Garden}} | ||
|} | |} | ||
</noinclude> | </noinclude> | ||
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}} |