Template:MoveData/doc: Difference between revisions

Template page
(Created page with "{{Uses TemplateStyles|MoveData/style.css}} This template is used to show the details a single move. It's mainly used in movelists. The first use of this on any page should i...")
 
No edit summary
Line 10: Line 10:


<syntaxhighlight lang="html">
<syntaxhighlight lang="html">
{{MoveDataHeader}} <!-- Include this at least once on every page using MoveData. -->
{{MoveDataHeader}} <!-- Include this at least once on every page using MoveData -->
{{MoveData
{{MoveData
|id=           <!-- The full input for the move. -->
|id=u/f+3,1
|name=         <!-- The name of the move, if any. -->
|name=Brilliant Rosé
|inputLead=   <!-- The input of the previous hits in the string, if any. -->
|inputLead=u/f+3
|input=       <!-- The input of the last hit in the string.
|input=,1
                    Start with a comma if there were previous hits.
|targetLead=m
                    Start with a : or ~ instead if that's what the notation calls for,
|target=,m
                    but write the colon as &#58; or it'll break things. -->
|damageLead=12
|targetLead=   <!-- The hit level of the previous hits in the string, if any. -->
|damage=,18
|target=       <!-- The hit level of the last hit in the string.
|range=4.27
                    Start with a comma if there were previous hits. -->
|startupRoot=i25~26
|damageLead=   <!-- The damage of the previous hits in the string, if any. -->
|startup=,i21~22
|damage=       <!-- The damage of the last hit in the string.
|recv=r30 FC
                    Start with a comma if there were previous hits. -->
|block=-12
|range=       <!-- The range of the move, as per [[Movelist#Range]].
|hit=+3
                    Leave blank if you don't want to measure it. -->
|ch=[[Lee combos#Staples|+26a]]
|startupRoot= <!-- The startup of the first hit in the string, if this isn't the first hit. -->
|notes={{Plainlist|
|startup=     <!-- The startup of the last hit in the string.
* Floor break
                    Start with a comma if there were previous hits. -->
* Combo from 1st hit}}
|crush=        <!-- The frames where this move will crush, powercrush, or parry. -->
|recv=         <!-- The number of frames the move takes to recover, starting with an r.
                    If the recovery is not standing, indicate the state of recovery. -->
              <!-- For frame advantages:
                      * Link to the combo page if it leads to a combo.
                      * Write +0, not -0 or just 0.
              -->
|block=       <!-- The frame advantage on block. -->
|hit=         <!-- The frame advantage on hit. -->
|ch=           <!-- The frame advantage on counter-hit. Leave blank if the same as on hit. -->
|notes=        <!-- Anything that doesn't fit elsewhere.
                    If there are multiple notes, this should be a Plainlist, e.g.
                      |notes={{Plainlist|
                      * Note 1
                      * Note 2}}
              -->
}}
}}
</syntaxhighlight>
</syntaxhighlight>


All fields can be left blank without issue. However, every move should at least have an id and input.


Fields are all copied with no fuss, so extra wikitext such as internal links will work fine.
Fields are all copied with no fuss, so extra wikitext such as internal links will work fine.
For frame advantages:
* Link to the combo page if it leads to a combo.
* Write +0, not -0 or just 0.
== Parameters ==
All parameters are blank by default and can be left blank without issue. However, every move should at least have an <code>id</code> and <code>input</code>.
{| class="wikitable"
! Parameter !! Description
|-
| <code>name</code>
| The name of the move, if any.
|-
| <code>inputLead</code>
| The input of the previous hits in the string, if any.
|-
| <code>input</code>
| The input of the last hit in the string. Start with a comma if there were previous hits. Start with a <code>:</code> or <code>~</code> instead if that's what the notation calls for, but write the colon as <code>&amp;#58;</code> or it'll break things. -->
|-
| <code>targetLead</code>
| The hit level of the previous hits in the string, if any.
|-
| <code>target</code>
| The hit level of the last hit in the string. Start with a comma if there were previous hits.
|-
| <code>damageLead</code>
| The damage of the previous hits in the string, if any.
|-
| <code>damage</code>
| The damage of the last hit in the string. Start with a comma if there were previous hits.
|-
| <code>range</code>
| The range of the move, as per [[Movelist#Range]]. Leave blank if you don't want to measure it.
|-
| <code>startupRoot</code>
| The startup of the first hit in the string, if this isn't the first hit.
|-
| <code>startup</code>
| The startup of the last hit in the string. Start with a comma if there were previous hits.
|-
| <code>crush</code>
| The frames where this move will crush, powercrush, or parry.
|-
| <code>recv</code>
| The number of frames the move takes to recover, starting with an r. Indicate the state after recovery if the move doesn't recover standing.
|-
| <code>block</code>
| The frame advantage on block.
|-
| <code>hit</code>
| The frame advantage on hit.
|-
| <code>ch</code>
| The frame advantage on counter-hit. Leave blank if the same as on hit.
|-
| <code>notes</code>
| Anything that doesn't fit elsewhere.
|}
If a parameter has multiple values, it should be a Plainlist, e.g.
<syntaxhighlight lang="html">
|notes={{Plainlist|
* Note 1
* Note 2}}
</syntaxhighlight>


== Example ==
== Example ==

Revision as of 08:28, 3 January 2021

This template is used to show the details a single move. It's mainly used in movelists.

The first use of this on any page should include Template:MoveDataHeader before it.

Usage

Be sure to be familiar with Movelist to know what appropriate values are.

{{MoveDataHeader}} <!-- Include this at least once on every page using MoveData -->
{{MoveData
|id=u/f+3,1
|name=Brilliant Rosé
|inputLead=u/f+3
|input=,1
|targetLead=m
|target=,m
|damageLead=12
|damage=,18
|range=4.27
|startupRoot=i25~26
|startup=,i21~22
|recv=r30 FC
|block=-12
|hit=+3
|ch=[[Lee combos#Staples|+26a]]
|notes={{Plainlist|
* Floor break
* Combo from 1st hit}}
}}


Fields are all copied with no fuss, so extra wikitext such as internal links will work fine.

For frame advantages:

  • Link to the combo page if it leads to a combo.
  • Write +0, not -0 or just 0.

Parameters

All parameters are blank by default and can be left blank without issue. However, every move should at least have an id and input.

Parameter Description
name The name of the move, if any.
inputLead The input of the previous hits in the string, if any.
input The input of the last hit in the string. Start with a comma if there were previous hits. Start with a : or ~ instead if that's what the notation calls for, but write the colon as &#58; or it'll break things. -->
targetLead The hit level of the previous hits in the string, if any.
target The hit level of the last hit in the string. Start with a comma if there were previous hits.
damageLead The damage of the previous hits in the string, if any.
damage The damage of the last hit in the string. Start with a comma if there were previous hits.
range The range of the move, as per Movelist#Range. Leave blank if you don't want to measure it.
startupRoot The startup of the first hit in the string, if this isn't the first hit.
startup The startup of the last hit in the string. Start with a comma if there were previous hits.
crush The frames where this move will crush, powercrush, or parry.
recv The number of frames the move takes to recover, starting with an r. Indicate the state after recovery if the move doesn't recover standing.
block The frame advantage on block.
hit The frame advantage on hit.
ch The frame advantage on counter-hit. Leave blank if the same as on hit.
notes Anything that doesn't fit elsewhere.

If a parameter has multiple values, it should be a Plainlist, e.g.

|notes={{Plainlist|
* Note 1
* Note 2}}

Example

Name
Alt

Input

Hit level
Damage
Range
Left Tracking
Right Tracking
Block
Hit
CH
Startup
States
Recovery
Notes

u/f+3

m
12
3.09
-9
+2
i25~26
js12~
r27
Brilliant Rosé

u/f+3,1

m,​m
12,​18
4.27
-12
+3
i25~26
,i21~22
r30 FC
  • Floor break
  • Combo from 1st hit