User:Moxian/SandboxTemplate: Difference between revisions

From Dustloop Wiki
No edit summary
No edit summary
Line 6: Line 6:
-->{{#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">
--><div class="attack-container"><div class="attack-gallery"><!--
<tabber>
------------------ Pulls the hitboxes and hitboxCaptions from the game's moveData table --------------
Images = <!------------------- Pulls the images and captions from the game's moveData table ------------------->
-->{{#vardefine:images|{{#cargo_query:tables= MoveData_GGST__images, MoveData_GGST, MoveData_GGST__caption
{{#cargo_query:tables= MoveData_GGST__images, MoveData_GGST, MoveData_GGST__caption
|join on= MoveData_GGST__images._rowID=MoveData_GGST._ID, MoveData_GGST__images._rowID=MoveData_GGST__caption._rowID, MoveData_GGST__images._position=MoveData_GGST__caption._position
|join on= MoveData_GGST__images._rowID=MoveData_GGST._ID, MoveData_GGST__images._rowID=MoveData_GGST__caption._rowID, MoveData_GGST__images._position=MoveData_GGST__caption._position
|fields= MoveData_GGST__images._value=image, MoveData_GGST__caption._value=caption
|fields= MoveData_GGST__images._value=image, MoveData_GGST__caption._value=caption
Line 18: Line 17:
|image height=210|image width=210
|image height=210|image width=210
|caption field=caption|default=
|caption field=caption|default=
}}
}} }}<!--
|-|
-->{{#vardefine:hitboxes|{{#cargo_query:tables=MoveData_GGST__hitboxes, MoveData_GGST, MoveData_GGST__hitboxCaption
Hitboxes = <!-------------- Pulls the hitboxes and hitboxCaptions from the game's moveData table -------------->
{{#cargo_query:tables=MoveData_GGST__hitboxes, MoveData_GGST, MoveData_GGST__hitboxCaption
|join on= MoveData_GGST__hitboxes._rowID=MoveData_GGST._ID, MoveData_GGST__hitboxes._rowID=MoveData_GGST__hitboxCaption._rowID, MoveData_GGST__hitboxes._position=MoveData_GGST__hitboxCaption._position
|join on= MoveData_GGST__hitboxes._rowID=MoveData_GGST._ID, MoveData_GGST__hitboxes._rowID=MoveData_GGST__hitboxCaption._rowID, MoveData_GGST__hitboxes._position=MoveData_GGST__hitboxCaption._position
|fields= MoveData_GGST__hitboxes._value=image, MoveData_GGST__hitboxCaption._value=hitboxCaption
|fields= MoveData_GGST__hitboxes._value=image, MoveData_GGST__hitboxCaption._value=hitboxCaption
Line 30: Line 27:
|image height=210|image width=210
|image height=210|image width=210
|caption field=hitboxCaption|default=
|caption field=hitboxCaption|default=
}}
}} }}<!------------  ... and puts those in the tabber container------
</tabber></div><div class="attack-info"><!--
--><div class="attack-container"><div class="attack-gallery"><!---
{{#if:{{#var:hitboxes}}|{{#tag:tabber|
Images = {{#var:images}}
{{!}}-{{!}}
Hitboxes = {{#var:hitboxes}}}}|{{#var:images}}}}</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 ------
Line 59: Line 61:


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.}}}
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.}}}
<br><div class="mw-collapsible mw-collapsed" data-expandtext="Show Stats for Nerds" data-collapsetext="Hide Additional Data" style="width: 100%; max-width: 900px;">
<div class="mw-collapsible mw-collapsed additional-data-section" data-expandtext="Show Stats for Nerds" data-collapsetext="Hide Additional Data" style="width: 100%; max-width: 900px; padding-top: 5px;">
{| class="wikitable attack-data"
{| class="wikitable attack-data"
{{AdditionalDataHeader-GGST|version={{{versioned|}}}}}
{{AdditionalDataHeader-GGST|version={{{versioned|}}}}}
|-
|-
{{#cargo_query:tables=MoveData_GGST
{{#cargo_query:tables=MoveData_GGST
|fields={{#switch:{{{versioned}}}|input = input=name,|name = name=name,}}prorate,onHit,counter,riscGain,level
|fields={{#switch:{{{versioned}}}|input = input=name,|name = name=name,}}prorate,onHit,counter,riscGain,riscLoss,level,wallDamage,OTGRatio,chipRatio,inputTension
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_GGST.type="{{{type|}}}" |}}
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_GGST.type="{{{type|}}}" |}}
|format=template|template=AdditionalData-GGST|named args=yes|order by=_ID
|format=template|template=AdditionalData-GGST|named args=yes|order by=_ID
Line 70: Line 72:
}}
}}
|}
|}
<br/>
{{#cargo_query:tables=MoveData_GGST
{{#cargo_query:tables=MoveData_GGST
|fields={{#switch:{{{versioned}}}|input = input=name,|name = name=name,}}notes
|fields={{#switch:{{{versioned}}}|input = input=name,|name = name=name,}}notes
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_GGST.type="{{{type|}}}" |}} and notes HOLDS LIKE "%"
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_GGST.type="{{{type|}}}" |}} and notes HOLDS LIKE "%"
|format={{#if:{{{versioned|}}}|ul|list}}|named args=yes|order by=_ID
|format=template|template=GGST_Data_Notes|named args=yes|order by=_ID
|default=
|default=
}}</div></div></div></includeonly><noinclude>{{clear}}{{doc}}</noinclude>
}}</div></div></div></includeonly><noinclude>{{clear}}{{doc}}</noinclude>

Revision as of 01:30, 6 September 2022