Template:MoveGet/doc: Difference between revisions

Template page
(add 'recursive' param)
No edit summary
 
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}}
{{Hatnote|This page is for ''Tekken 8''. For ''Tekken 7'', see [[Template:MoveGet7]].}}
{{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|hit}}
Lee's 1,2 is {{MoveGet|Lee-1,2|hit}} on hit.
</syntaxhighlight>
</syntaxhighlight>


== Parameters ==
== Parameters ==
{| class="wikitable"
 
{| class="wikitable col-1-center"
! Parameter !! Required !! Description
! Parameter !! Required !! Description
|-
|-
| Unnamed
| <code>1</code>
| {{Ya}}
| {{Ya}}
| Move id.
| Move id.
|-
|-
| Unnamed
| <code>2</code>
| {{Ya}}
| {{Ya}}
| Field of the move. See [[Template:Move#Parameters]].
| Field of the move. See {{tl|Move#Parameters|Move § Parameters}}.
|-
|-
| <code>recursive</code>
| <code>recursive</code>
Line 29: Line 29:
| Set to <code>true</code> if you want to get values from previous moves in the string.
| 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.