Template:DBFZ Move Card: Difference between revisions

Template page
(Found a move that has 7 versions (it was Android 21 236X))
(Undo revision 313848 by Kaiokek (talk) OH GOD WHAT DID I BREAK)
Tag: Undo
Line 8: Line 8:
-->{{#vardefine:input5|{{#explode:{{{input}}}|,|4}}}}<!--
-->{{#vardefine:input5|{{#explode:{{{input}}}|,|4}}}}<!--
-->{{#vardefine:input6|{{#explode:{{{input}}}|,|5}}}}<!--
-->{{#vardefine:input6|{{#explode:{{{input}}}|,|5}}}}<!--
-->{{#vardefine:input7|{{#explode:{{{input}}}|,|6}}}}<!--
---><div class="attack-container"><div class="attack-gallery"> <!--
---><div class="attack-container"><div class="attack-gallery"> <!--
------------------------- Pulls the images and captions from the game's moveData table -------------------------
------------------------- Pulls the images and captions from the game's moveData table -------------------------
Line 14: Line 13:
|join on= MoveData_DBFZ__images._rowID=MoveData_DBFZ._ID, MoveData_DBFZ__images._rowID=MoveData_DBFZ__caption._rowID, MoveData_DBFZ__images._position=MoveData_DBFZ__caption._position
|join on= MoveData_DBFZ__images._rowID=MoveData_DBFZ._ID, MoveData_DBFZ__images._rowID=MoveData_DBFZ__caption._rowID, MoveData_DBFZ__images._position=MoveData_DBFZ__caption._position
|fields= MoveData_DBFZ__images._value=image, MoveData_DBFZ__caption._value=caption
|fields= MoveData_DBFZ__images._value=image, MoveData_DBFZ__caption._value=caption
|where=MoveData_DBFZ.chara="{{#var:targetChara}}" and MoveData_DBFZ.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}'), '{{#var:input7}}') {{#if: {{{type|}}}| and MoveData_DBFZ.type="{{{type|}}}" |}}
|where=MoveData_DBFZ.chara="{{#var:targetChara}}" and MoveData_DBFZ.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}') {{#if: {{{type|}}}| and MoveData_DBFZ.type="{{{type|}}}" |}}
|group by= MoveData_DBFZ__images._value
|group by= MoveData_DBFZ__images._value
|order by=_ID,MoveData_DBFZ__images._position
|order by=_ID,MoveData_DBFZ__images._position
Line 25: Line 24:
-->{{#cargo_query:tables=MoveData_DBFZ
-->{{#cargo_query:tables=MoveData_DBFZ
|fields={{#if: {{#var:input2}}|input=Version,|{{#if:{{{versioned|}}}|input=Version,|}}}}damage=Damage,guard=Guard,smash=Smash,startup=Startup,active=Active,recovery=Recovery,onBlock=On-Block,invuln=Invuln
|fields={{#if: {{#var:input2}}|input=Version,|{{#if:{{{versioned|}}}|input=Version,|}}}}damage=Damage,guard=Guard,smash=Smash,startup=Startup,active=Active,recovery=Recovery,onBlock=On-Block,invuln=Invuln
|where=chara="{{#var:targetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}'), '{{#var:input7}}') {{#if: {{{type|}}}| and MoveData_DBFZ.type="{{{type|}}}" |}}
|where=chara="{{#var:targetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}') {{#if: {{{type|}}}| and MoveData_DBFZ.type="{{{type|}}}" |}}
|format=table|named args=yes|order by=_ID
|format=table|named args=yes|order by=_ID
}}<!--------------------------- this is where the body of the move card is written. --------------------------->
}}<!--------------------------- this is where the body of the move card is written. --------------------------->

Revision as of 15:27, 14 August 2022

Automatically creates a query for cargo based on the current character page when given an input.

Params:

  chara     (OPTIONAL) = defines the character the move card is for. If left blank, uses the current character page.
  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
  versioned (OPTIONAL) = override name column visibility to on. used when a move has multiple versions but only 1 input.

This is a test page for practicing move card generation

Examples

1 version 1 image

Damage Guard Smash Startup Active Recovery On-Block Invuln
400 All 6 3 13 -4

Add a description to this move using the "|description=" field

Describe what the move is used for. Maybe mention some positive traits or downsides that are important.

  • Bullet point of supplemental data

1 versions 2 images

Damage Guard Smash Startup Active Recovery On-Block Invuln
450×2, 400 All 35 [20] +55

Add a description to this move using the "|description=" field

Describe what the move is used for. Maybe mention some positive traits or downsides that are important.

  • Bullet point of supplemental data

2 version 2 image

Version Damage Guard Smash Startup Active Recovery On-Block Invuln
236L+M 250×10 All UDV 10+4 45 42 -26 10-21 All
j.236L+M 250×10 All UDV 10+4 45 48 10-21 All

Add a description to this move using the "|description=" field

Describe what the move is used for. Maybe mention some positive traits or downsides that are important.

  • Bullet point of supplemental data