Template:MoveGet/doc: Difference between revisions

Template page
(Created page with "{{Uses Cargo|Special:CargoTables/Move}} {{Lua|Module:Move|Module:Move/functions|Module:Move/game}} This will get one field of a move. {{Move/doc/related}} == Usage == <syn...")
 
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Uses Cargo|Special:CargoTables/Move}}
{{Uses Cargo|Special:CargoTables/Move}}
{{Lua|Module:Move|Module:Move/functions|Module:Move/game}}
{{Lua|Module:Move|Module:Game}}
{{Navbox Cargo}}
{{Hatnote|{{tl|MoveGet7}} is the same as {{tl|MoveGet}} but gets data from [[Special:CargoTables/Move7]] instead.}}


This will get one field of a move.
This will get one field of a move.
{{Move/doc/related}}


== Usage ==
== Usage ==


<syntaxhighlight lang="html">
<syntaxhighlight lang="html">
{{MoveGet|Bryan-1+3+4}}
Lee's 1,2 is {{MoveGet|Lee-1,2|hit}} on hit.
</syntaxhighlight>
</syntaxhighlight>
== Parameters ==
{| class="wikitable col-1-center"
! Parameter !! Required !! Description
|-
| <code>1</code>
| {{Ya}}
| Move id.
|-
| <code>2</code>
| {{Ya}}
| Field of the move. See {{tl|Move#Parameters|Move § Parameters}}.
|-
| <code>recursive</code>
|
| Set to <code>true</code> if you want to get values from previous moves in the string.
|}
== Example ==
Lee's 1,2 is {{MoveGet|Lee-1,2|hit}} on hit.

Latest revision as of 12:52, 5 March 2024

{{MoveGet7}} is the same as {{MoveGet}} but gets data from Special:CargoTables/Move7 instead.

This will get one field of a move.

Usage

Lee's 1,2 is {{MoveGet|Lee-1,2|hit}} on hit.

Parameters

Parameter Required Description
1 ✔︎ Move id.
2 ✔︎ Field of the move. See {{Move § Parameters}}.
recursive Set to true if you want to get values from previous moves in the string.

Example

Lee's 1,2 is +7 on hit.