Template:DBFZ Move Card: Difference between revisions

Template page
m (Undo revision 301696 by PrivateTarkus (talk))
Tag: Undo
No edit summary
 
(27 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><!--------------------------- defaults the character to the subpagename ---------------------------
<includeonly><!--------------------------- defaults the character to the subpagename ---------------------------
-->{{#vardefine:targetChara|{{{chara|{{SUBPAGENAME}}}}}}}<!-----------
-->{{#vardefine:MoveCardTargetChara|{{{chara|{{SUBPAGENAME}}}}}}}<!-----------
<!----------- determines up to 4 inputs from a comma seperated list of inputs in the |input argument -----------
<!----------- determines up to 6 inputs from a comma seperated list of inputs in the |input argument -----------
-->{{#vardefine:input1|{{#explode:{{{input}}}|,|0}}}}<!--
-->{{#vardefine:input1|{{#explode:{{{input}}}|,|0}}}}<!--
-->{{#vardefine:input2|{{#explode:{{{input}}}|,|1}}}}<!--
-->{{#vardefine:input2|{{#explode:{{{input}}}|,|1}}}}<!--
-->{{#vardefine:input3|{{#explode:{{{input}}}|,|2}}}}<!--
-->{{#vardefine:input3|{{#explode:{{{input}}}|,|2}}}}<!--
-->{{#vardefine:input4|{{#explode:{{{input}}}|,|3}}}}<!--
-->{{#vardefine:input4|{{#explode:{{{input}}}|,|3}}}}<!--
---><div class="attack-container"><div class="attack-gallery"><tabber>
-->{{#vardefine:input5|{{#explode:{{{input}}}|,|4}}}}<!--
Images = <!------------------- Pulls the images and captions from the game's moveData table ------------------->
-->{{#vardefine:input6|{{#explode:{{{input}}}|,|5}}}}<!--
{{#cargo_query:tables= MoveData_DBFZ__images<!--, MoveData_DBFZ, MoveData_DBFZ__caption-->
-->{{#vardefine:input7|{{#explode:{{{input}}}|,|6}}}}<!--
<!--|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-->
---><div class="attack-container"><div class="attack-gallery"> <!--
|fields= MoveData_DBFZ__images._value=image<!--, MoveData_DBFZ__caption._value=caption-->
------------------------- Pulls the images and captions from the game's moveData table -------------------------
|where=MoveData_DBFZ.chara="{{#var:targetChara}}" and MoveData_DBFZ.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_DBFZ.type="{{{type|}}}" |}}
-->{{#cargo_query:tables= MoveData_DBFZ__images, MoveData_DBFZ, MoveData_DBFZ__caption
|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
|where=MoveData_DBFZ.chara="{{#var:MoveCardTargetChara}}" 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|}}}" |}}
|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
|format=gallery|mode=nolines|show filename=0|show bytes=0|show dimensions=0
|format=gallery|mode=nolines|show filename=0|show bytes=0|show dimensions=0
|image height=210|image width=210
|image height=210|image width=210<!-- Disabling captions
<!--|caption field=caption|default=-->
|caption field=caption
}}
-->|default=
|-|
}}</div><div class="attack-info"><!--
Hitboxes = <!-------------- Pulls the hitboxes and hitboxCaptions from the game's moveData table -------------->
{{#cargo_query:tables=MoveData_DBFZ__hitboxes
|fields=hitboxes,name
|where=chara="{{#var:targetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}')
|group by= MoveData_DBFZ__hitboxes._value
|order by=_ID,MoveData_DBFZ__hitboxes._position
|format=gallery|mode=nolines|show filename=0|show bytes=0|show dimensions=0
|image height=210|image width=210
}}
</tabber></div><div class="attack-info"><!--
----------------------- displays the listed fields in the table portion of the move card -----------------------
----------------------- displays the listed fields in the table portion of the move card -----------------------
------ If the move is a single input with multiple versions, use the |versioned arg to show version names ------
------ If the move is a single input with multiple versions, use the |versioned arg to show version names ------
-->{{#cargo_query:tables=MoveData_DBFZ
-->{{#cargo_query:tables=MoveData_DBFZ
|fields={{#if:{{{versioned|}}}|name=Name,|}}damage=Damage,guard=Guard,startup=Startup,active=Active,recovery=Recovery,onBlock=On-Block,invuln=Invuln
|fields={{#if: {{#var:input2}} {{{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}}') {{#if: {{{type|}}}| and MoveData_DBFZ.type="{{{type|}}}" |}}
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}') {{#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. --------------------------->
{{{description|Add a description to this move using the <nowiki>"|description="</nowiki> field
<div class="attack-info-body">
{{{description|Add a description to this move using the <code><nowiki>|description=</nowiki></code> field
 
Describe what the move is used for.


Describe what the move is used for. Maybe mention some positive traits or downsides that are important.
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 stategy 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.}}}
*Bullet point of supplemental data}}}
<!-- Temporary disabling additional data
</div></div></includeonly><noinclude>{{clear}}{{doc}}</noinclude>
<div class="mw-collapsible mw-collapsed" data-expandtext="Show Stats for Nerds" data-collapsetext="Hide Additional Data" style="width: 100%; max-width: 900px;">
{{#cargo_query:tables=MoveData_DBFZ
|fields={{#if:{{#var:input2}} {{{versioned|}}} |input=Version,|}}attribute=Attribute,prorate=Proration,kigain=Ki Gain,smash=Smash
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_DBFZ.type="{{{type|}}}" |}}
|format=table|named args=yes|order by=_ID
}}
{{#cargo_query:tables=MoveData_DBFZ
|fields={{#if:{{#var:input2}} {{{versioned|}}} |input=Version,|}}notes
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_DBFZ.type="{{{type|}}}" |}}
|format=ul|named args=yes|order by=_ID
}}</div>
Temporary disabling additional data --></div></div></div><templatestyles src="Template:Move Card/shared/styles.css" /></includeonly><noinclude>{{clear}}{{doc}}</noinclude>

Latest revision as of 15:12, 22 January 2023

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.

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 stategy 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.

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.

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 stategy 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.

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.

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 stategy 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.