No edit summary |
No edit summary |
||
(28 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><!--------------------------- defaults the character to the subpagename --------------------------- | <includeonly><!--------------------------- defaults the character to the subpagename --------------------------- | ||
-->{{#vardefine: | -->{{#vardefine:MoveCardTargetChara|{{{chara|{{SUBPAGENAME}}}}}}}<!----------- | ||
<!----------- determines up to 4 inputs from a comma seperated list of inputs in the |input argument ----------- | <!----------- determines up to 4 inputs from a comma seperated list of inputs in the |input argument ----------- | ||
-->{{#vardefine:input1|{{#explode:{{{input}}}|,|0}}}}<!-- | -->{{#vardefine:input1|{{#explode:{{{input}}}|,|0}}}}<!-- | ||
Line 6: | Line 6: | ||
-->{{#vardefine:input3|{{#explode:{{{input}}}|,|2}}}}<!-- | -->{{#vardefine:input3|{{#explode:{{{input}}}|,|2}}}}<!-- | ||
-->{{#vardefine:input4|{{#explode:{{{input}}}|,|3}}}}<!-- | -->{{#vardefine:input4|{{#explode:{{{input}}}|,|3}}}}<!-- | ||
------------------ Pulls the hitboxes and hitboxCaptions 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 | ||
|where=MoveData_GGST.chara="{{#var: | |where=MoveData_GGST.chara="{{#var:MoveCardTargetChara}}" and MoveData_GGST.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_GGST.type="{{{type|}}}" |}} | ||
|group by= MoveData_GGST__images._value | |group by= MoveData_GGST__images._value | ||
|order by=_ID,MoveData_GGST__images._position | |order by=_ID,MoveData_GGST__images._position | ||
Line 50: | Line 16: | ||
|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 | |||
{{#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 | ||
|where=MoveData_GGST.chara="{{#var: | |where=MoveData_GGST.chara="{{#var:MoveCardTargetChara}}" and MoveData_GGST.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_GGST.type="{{{type|}}}" |}} | ||
|group by= MoveData_GGST__hitboxes._value | |group by= MoveData_GGST__hitboxes._value | ||
|order by=_ID,MoveData_GGST__hitboxes._position | |order by=_ID,MoveData_GGST__hitboxes._position | ||
Line 62: | Line 26: | ||
|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------ | ||
< | --><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 71: | Line 41: | ||
|- | |- | ||
{{#cargo_query:tables=MoveData_GGST | {{#cargo_query:tables=MoveData_GGST | ||
|fields={{# | |fields={{#switch:{{{versioned}}}|input = input=name,|name = name=name,}}damage,guard,startup,active,recovery,onBlock,invuln | ||
|where=chara="{{#var: | |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=FrameData-GGST|named args=yes|order by=_ID | |format=template|template=FrameData-GGST|named args=yes|order by=_ID | ||
|delimiter=\n{{!}}-\n | |delimiter=\n{{!}}-\n | ||
}} | }} | ||
|}<!--------------------------- this is where the body of the move card is written. ---------------------------> | |}<!------------------ Frame chart, if any ------------------------------------------- | ||
{{{description|Add a description to this move using the <nowiki> | --------------------- if it's set to `auto` then try to draw it automatically ------- | ||
-->{{#ifeq:{{{frameChart|}}}|auto|<!-- | |||
-->{{#if:{{#var:input1}}| {{#invoke:GGST-FrameChart|drawFrameData|chara={{#var:MoveCardTargetChara}}|input={{#var:input1}}}} }}<!-- | |||
-->{{#if:{{#var:input2}}| {{#invoke:GGST-FrameChart|drawFrameData|chara={{#var:MoveCardTargetChara}}|input={{#var:input2}}}} }}<!-- | |||
-->{{#if:{{#var:input3}}| {{#invoke:GGST-FrameChart|drawFrameData|chara={{#var:MoveCardTargetChara}}|input={{#var:input3}}}} }}<!-- | |||
-->{{#if:{{#var:input4}}| {{#invoke:GGST-FrameChart|drawFrameData|chara={{#var:MoveCardTargetChara}}|input={{#var:input4}}}} }}<!-- | |||
----- else, use the supplied text as is--- | |||
-->|{{{frameChart|}}} }}<!-- | |||
----------------------- this is where the body of the move card is written. ---------------------------> | |||
{{{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. | ||
</div></div></includeonly><noinclude>{{clear}}{{doc}}</noinclude> | 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.}}} | ||
<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" | |||
{{AdditionalDataHeader-GGST|version={{{versioned|}}}}} | |||
|- | |||
{{#cargo_query:tables=MoveData_GGST | |||
|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|}}}" |}} | |||
|format=template|template=AdditionalData-GGST|named args=yes|order by=_ID | |||
|delimiter=\n{{!}}-\n | |||
}} | |||
|} | |||
{{#cargo_query:tables=MoveData_GGST | |||
|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 "%" | |||
|format=template|template=GGST_Data_Notes|named args=yes|order by=_ID | |||
|default= | |||
}}</div></div></div></includeonly><noinclude>{{clear}}{{doc}}</noinclude> |