Template:MoveData-UNI2: Difference between revisions

From Mizuumi Wiki
Jump to navigation Jump to search
(Created page with "<includeonly><!--------------------------- defaults the character to the subpagename --------------------------- -->{{#vardefine:MoveCardTargetChara|{{{chara|{{SUBPAGENAME}}}}}}}<!----------- <!----------- determines up to 7 inputs from a comma seperated list of inputs in the |input argument ----------- -->{{#vardefine:input1|{{#explode:{{{input}}}|,|0}}}}<!-- -->{{#vardefine:input2|{{#explode:{{{input}}}|,|1}}}}<!-- -->{{#vardefine:input3|{{#explode:{{{input}}}|,|2}}}}<...")
 
No edit summary
Line 10: Line 10:
-->{{#vardefine:input7|{{#explode:{{{input}}}|,|6}}}}<!--
-->{{#vardefine:input7|{{#explode:{{{input}}}|,|6}}}}<!--
-->{{#vardefine:input8|{{#explode:{{{input}}}|,|7}}}}<!--
-->{{#vardefine:input8|{{#explode:{{{input}}}|,|7}}}}<!--
---------------------- Gets some basic header info -----------------
-->{{#vardefine:name|{{#cargo_query:tables=UNI2_MoveData|fields=name|where= chara="{{#var:MoveCardTargetChara}}" and input="{{#var:input1}}"|default=}}}}<!--
-->{{#vardefine:subtitle|{{#cargo_query:tables=UNI2_MoveData|fields=subtitle|where= chara="{{#var:MoveCardTargetChara}}" and input="{{#var:input1}}"|default=}}}}<!--
---------------------- Pulls the images and captions from the game's moveData table -----------------
---------------------- Pulls the images and captions from the game's moveData table -----------------
-->{{#vardefine:images|{{#cargo_query:tables= UNI2_MoveData__images, UNI2_MoveData,
-->{{#vardefine:images|{{#cargo_query:tables= UNI2_MoveData__images, UNI2_MoveData,
|join on= UNI2_MoveData__images._rowID=UNI2_MoveData._ID
|join on= UNI2_MoveData__images._rowID=UNI2_MoveData._ID
|fields= UNI2_MoveData__images._value=image
|fields= UNI2_MoveData__images._value=image
|where=UNI2_MoveData.chara="{{#var:MoveCardTargetChara}}" and UNI2_MoveData.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}') {{#if: {{{type|}}}| and UNI2_MoveData.type="{{{type|}}}" |}}
|where=UNI2_MoveData.chara="{{#var:MoveCardTargetChara}}" and UNI2_MoveData.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}')  
|group by= UNI2_MoveData__images._value
|group by= UNI2_MoveData__images._value
|order by=_ID,UNI2_MoveData__images._position
|order by=_ID,UNI2_MoveData__images._position
Line 24: Line 27:
|join on= UNI2_MoveData__hitboxes._rowID=UNI2_MoveData._ID
|join on= UNI2_MoveData__hitboxes._rowID=UNI2_MoveData._ID
|fields= UNI2_MoveData__hitboxes._value=image
|fields= UNI2_MoveData__hitboxes._value=image
|where=UNI2_MoveData.chara="{{#var:MoveCardTargetChara}}" and UNI2_MoveData.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}') {{#if: {{{type|}}}| and UNI2_MoveData.type="{{{type|}}}" |}}
|where=UNI2_MoveData.chara="{{#var:MoveCardTargetChara}}" and UNI2_MoveData.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}')  
|group by= UNI2_MoveData__hitboxes._value
|group by= UNI2_MoveData__hitboxes._value
|order by=_ID,UNI2_MoveData__hitboxes._position
|order by=_ID,UNI2_MoveData__hitboxes._position
Line 34: Line 37:
<div class="movedata-flex-image-container">
<div class="movedata-flex-image-container">
<div>
<div>
<div><big>{{{title|{{#cargo_query:tables=UNI2_MoveData|fields=input|where= chara="{{#var:MoveCardTargetChara}}" and input="{{#var:input1}}"}}}}}</big></div>
<div><big><!-- {{#var:name|}} can't be used now as somehow it's fed with weird values for normals-->{{#var:input1}}</big></div>
<div><small>{{{subtitle|{{#cargo_query:tables=UNI2_MoveData|fields=subtitle|where= chara="{{#var:MoveCardTargetChara}}" and input="{{#var:input1}}"}}}}}</small></div>
<div><small>{{#var:subtitle|}}</small></div>
<div>{{#invoke:InputsUNI|toIcons|{{#if: {{{command|}}}|{{{command|}}}|{{{input}}}}}}}</div>
<div>{{#invoke:InputsUNI|toIcons|{{#if: {{{command|}}}|{{{command|}}}|{{#var:input1}} }}}}</div>
</div>
</div>
<div class="movedata-flex-images">
<div class="movedata-flex-images">
Line 49: Line 52:
{{FrameDataHeader-UNI2|version={{{versioned|}}}}}
{{FrameDataHeader-UNI2|version={{{versioned|}}}}}
{{#cargo_query:tables=UNI2_MoveData
{{#cargo_query:tables=UNI2_MoveData
|fields={{#switch:{{{versioned}}}|input = input = Version,|name = name=Version,}}damage,guard,startup,active,recovery,frameAdv,invul
|fields={{#switch:{{{versioned}}}|input = input = Version,|name = name=Version|inputInfo = input = Version, inputInfo=subtitle,}} damage,guard,startup,active,recovery,frameAdv,invul
|where= chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}')
|where= chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}')
|format=template|template=FrameDataHeader-UNI2/Data|named args=yes|order by=_ID
|format=template|template=FrameDataHeader-UNI2/Data|named args=yes|order by=_ID
Line 65: Line 68:
{{FrameDataHeader-UNI2/Additional|version={{{versioned|}}}}}  
{{FrameDataHeader-UNI2/Additional|version={{{versioned|}}}}}  
{{#cargo_query:tables=UNI2_MoveData
{{#cargo_query:tables=UNI2_MoveData
|fields={{#switch:{{{versioned}}}|input = input = Version,|name = name=Version,}}blockstun, cancel, attribute, property, minDamage, proration
|fields={{#switch:{{{versioned}}}|input = input = Version,|name = name=Version|inputInfo = input = Version, inputInfo=subtitle,}}blockstun, cancel, attribute, property, minDamage, proration
|where= chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}')
|where= chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}')
|format=template|template=FrameDataHeader-UNI2/AdditionalData|named args=yes|order by=_ID
|format=template|template=FrameDataHeader-UNI2/AdditionalData|named args=yes|order by=_ID
Line 72: Line 75:
</table><div class="movedata-flex-description" style="padding: 10px 10px 20px">
</table><div class="movedata-flex-description" style="padding: 10px 10px 20px">
{{#cargo_query:tables=UNI2_MoveData
{{#cargo_query:tables=UNI2_MoveData
|fields={{#if:{{#var:input2}} {{{versioned|}}} |input=name,|}}notes
|fields={{#if:{{#var:input2}} {{{versioned|}}} |input=name,|}} {{#ifeq:{{{versioned|}}}|inputInfo|inputInfo=subtitle,}}notes
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}')
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}')
|format=template|template=Cargo_Notes|named args=yes|order by=_ID|delimiter=<br/>
|format=template|template=Cargo_Notes|named args=yes|order by=_ID|delimiter=<br/>
|default=
|default=
}}</div>
}}</div></div></div></div><templatestyles src="MoveData-UNI2/styles.css"/></includeonly><noinclude>{{clear}}{{doc}}</noinclude>
</div></div></div><templatestyles src="MoveData-UNI2/styles.css"/></includeonly><noinclude>{{clear}}{{doc}}</noinclude>

Revision as of 12:24, 27 January 2024

Template DocumentationEdit This Documentation
Automatically creates a query for cargo based on the current character page when given an input. Very thanks to Dustloop as most of the code are from theirs :)

Params:

  input                = a comma separated list of the inputs used for a move and its versions as they appear in cargo
  description          = a text description of the move.
  "inputName"          = for each input in input as params, you can assign them a description. You can intentionally left blank for adjacent entries and it will automatically merge
                         you MUST include either the last input or |description= but NOT BOTH as that will broke things 
  chara     (OPTIONAL) = defines the character the move card is for. If left blank, uses the current character page.
  versioned (OPTIONAL) = name column visibility. enter name of column to use for the version field, typically 'name' or 'input'. Leave blank for no version column
                         value defaults to "input" if used under /DataOnly
  command   (OPTIONAL) = specify the command to be shown.
  title     (OPTIONAL) = specify the title to be shown. 
  subtitle  (OPTIONAL) = specify the subtitle to be shown. 

Examples

1 inputs 1 versions

6B
6B
Hitboxes Off
Hitboxes On
Damage Guard Startup Active Recovery On-Block Cancel Attribute Invuln
1030 Mid 8 2 (10) 2 - -5 - -
test description
Overall Blockstun Property Proration Combo Proration Data link
- Launch, Chip Damage Lua error in Module:MoveDataParser at line 35: attempt to index field '?' (a nil value).

 :

3 inputs 3 versions

236A
円環ノ凶渦
(ブラックオービター) (A)
236X
Hitboxes Off
Hitboxes On
Version Damage Guard Startup Active Recovery On-Block Cancel Attribute Invuln
236A 810 All 13 Until Hit - -7 - -
236B 810 All 11 Until Hit - -11 - -
236C 330×7 All 8 Until Hit - +28 - -
this is a description for all related moves
Version Overall Blockstun Property Proration Combo Proration Data link
236A - Launch Lua error in Module:MoveDataParser at line 35: attempt to index field '?' (a nil value).
236B - Launch Lua error in Module:MoveDataParser at line 35: attempt to index field '?' (a nil value).
236C - Launch Lua error in Module:MoveDataParser at line 35: attempt to index field '?' (a nil value).

236A :

  • 1-29 Counterhit state


236B :

  • 1-29 Counterhit state


236C :

  • 1-22 Counterhit state

2 inputs 4 versions

B+C
峭刻ノ残滓
(ストリクトデイズ), 峭刻ノ残滓
(ストリクトデイズ)
B+C
Hitboxes Off
Hitboxes On
Version Damage Guard Startup Active Recovery On-Block Cancel Attribute Invuln
B+C 1250 Mid 20 5 - -11 - -
B+C 1485 Mid 20 5 - -6 - -
[B]+[C] 1450 High 32 5 - -11 - -
[B]+[C] 1705 High 30 5 - -6 - -
Add a description to this move using the |description= field.

Describe what the move is used for.

Explain the basics of why the initial purpose of the move is worth knowing or worth doing. Mention downsides that are important to know. If the move is particularly important it might have a spot on the character's Strategy page—an important anti-air will likely be mentioned in the neutral section, or an important combo move will be mentioned in the combo theory.
Version Overall Blockstun Property Proration Combo Proration Data link
B+C - Wall Bounce, Chip Damage Lua error in Module:MoveDataParser at line 35: attempt to index field '?' (a nil value).
B+C - Wall Bounce, Chip Damage Lua error in Module:MoveDataParser at line 35: attempt to index field '?' (a nil value).
[B]+[C] - Wall Bounce, Chip Damage Lua error in Module:MoveDataParser at line 35: attempt to index field '?' (a nil value).
[B]+[C] - Wall Bounce, Chip Damage Lua error in Module:MoveDataParser at line 35: attempt to index field '?' (a nil value).

B+C :


B+C :


[B]+[C] :


[B]+[C] :


This documentation is automatically transcluded from Template:MoveData-UNI2/Documentation and is not included when this page is transcluded.