Template:Action: Difference between revisions

From eMushpedia
Jump to navigation Jump to search
Apollo105 (talk | contribs)
No edit summary
Apollo105 (talk | contribs)
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|}}}
   | <!-- Il y a un nombre de PA -->
   | <!-- Number of AP -->
     {{#if: {{{3|}}}
     {{#if: {{{3|}}}
       | <!-- Nombre + type -->
       | <!-- Number + type -->
         {{{2}}}&nbsp;{{AP}}&nbsp;ou&nbsp;{{AP|{{{3}}}}}&nbsp;{{{1}}}
         {{{2}}}&nbsp;{{AP}}&nbsp;or&nbsp;{{AP|{{{3}}}}}&nbsp;{{{1}}}
       | <!-- Nombre sans type -->
       | <!-- Number w/o type -->
         {{{2}}}&nbsp;{{AP}}&nbsp;{{{1}}}
         {{{2}}}&nbsp;{{AP}}&nbsp;{{{1}}}
       }}
       }}
   | <!-- Pas de nombre (le type éventuel est ignoré) -->
   | <!-- 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": "Nom de l'action à afficher",
"description": "Name of the displayed action",
"required": true,
"required": true,
             "type": "string"
             "type": "string"
},
},
         "2": {
         "2": {
             "label": "Nombre de PA",
             "label": "Number of AP",
             "description": "Nombre de points d'action nécessaires (optionnel).",
             "description": "Number of necessary action points (optional).",
             "required": false,
             "required": false,
             "type": "number"
             "type": "number"
         },
         },
         "3": {
         "3": {
             "label": "Type de PA",
             "label": "Type of",
             "description": "Type de PA (optionnel, ignoré si aucun nombre de PA n'est donné).",
             "description": "Type of AP (optional, if no number of AP is given).",
             "required": false,
             "required": false,
             "type": "string"
             "type": "string"
         }
         }
},
},
"description": "Ce template sert à afficher les actions, éventuellement précédées d’un coût en points d’action."
"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 !! Résultat
! Code !! Result
|-
|-
| <code><nowiki>{{Action|Examiner}}</nowiki></code> || {{Action|Examiner}}
| <code><nowiki>{{Action|Examine}}</nowiki></code> || {{Action|Examine}}
|-
|-
| <code><nowiki>{{Action|Décoller|2}}</nowiki></code> || {{Action|Décoller|2}}
| <code><nowiki>{{Action|Take off|2}}</nowiki></code> || {{Action|Take off|2}}
|-
|-
| <code><nowiki>{{Action|Greffer|2|Garden}}</nowiki></code> || {{Action|Greffer|2|Garden}}
| <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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Action1

Name of the displayed action

Stringrequired
Number of AP2

Number of necessary action points (optional).

Numberoptional
Type of3

Type of AP (optional, if no number of AP is given).

Stringoptional


Code Result
{{Action|Examine}} Examine
{{Action|Take off|2}} Action Point Take off
{{Action|Graft|2|Garden}} Action Point or Gardening Point Graft