User:Moxian/SandboxTemplate: Difference between revisions

From Dustloop Wiki
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: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 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}}}}<!--
-->{{#vardefine:cond1|{{#explode:{{{conditions|}}}|\|0}}}}<!--
------------------ Pulls the hitboxes and hitboxCaptions from the game's moveData table --------------
-->{{#vardefine:cond2|{{#explode:{{{conditions|}}}|\|1}}}}<!--
-->{{#vardefine:images|{{#cargo_query:tables= MoveData_GGST__images, MoveData_GGST, MoveData_GGST__caption
-->{{#vardefine:cond3|{{#explode:{{{conditions|}}}|\|2}}}}<!--
-->{{#vardefine:cond4|{{#explode:{{{conditions|}}}|\|3}}}}<!--
-->{{#vardefine:input1Color| {{#switch: {{#sub:{{#var:input1}}|-3}}
    | S+H = D
    | SxN = S
    | 66 | 44 = X
    | #default = {{#sub:{{#var:input1}}|-1}}
}}}}<!--
-->{{#vardefine:input2Color| {{#switch: {{#sub:{{#var:input2}}|-3}}
    | S+H = D
    | SxN = S
    | 66 | 44 = X
    | #default = {{#sub:{{#var:input2}}|-1}}
}}}}<!--
-->{{#vardefine:input3Color| {{#switch: {{#sub:{{#var:input3}}|-3}}
    | S+H = D
    | SxN = S
    | 66 | 44 = X
    | #default = {{#sub:{{#var:input3}}|-1}}
}}}}<!--
-->{{#vardefine:input4Color| {{#switch: {{#sub:{{#var:input4}}|-3}}
    | S+H = D
    | SxN = S
    | 66 | 44 = X
    | #default = {{#sub:{{#var:input4}}|-1}}
}}}}<!--
--------><div style="display: block;"><span class="input-badge">'''{{clr|{{#var:input1Color}}|{{#var:input1}}}}'''{{#if: {{#var:cond1}}|&#32;{{#var:cond1}}|}}</span><!-----
-->{{#if: {{#var:input2}}|&#32;or&#32;<span class="input-badge">'''{{clr|{{#var:input2Color}}|{{#var:input2}}}}'''{{#if: {{#var:cond2}}|&#32;{{#var:cond2}}|}}</span>|}}<!--
-->{{#if: {{#var:input3}}|&#32;or&#32;<span class="input-badge">'''{{clr|{{#var:input3Color}}|{{#var:input3}}}}'''{{#if: {{#var:cond3}}|&#32;{{#var:cond3}}|}}</span>|}}<!--
-->{{#if: {{#var:input4}}|&#32;or&#32;<span class="input-badge">'''{{clr|{{#var:input4Color}}|{{#var:input4}}}}'''{{#if: {{#var:cond4}}|&#32;{{#var:cond4}}|}}</span>|}}<!--
---><div class="attack-container"><div class="attack-gallery">
<tabber>
Images = <!------------------- Pulls the images and captions from the game's moveData table ------------------->
{{#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:targetChara}}" and MoveData_GGST.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_GGST.type="{{{type|}}}" |}}
|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
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
|where=MoveData_GGST.chara="{{#var:targetChara}}" and MoveData_GGST.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}') {{#if: {{{type|}}}| and MoveData_GGST.type="{{{type|}}}" |}}
|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------
</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 71: Line 41:
|-
|-
{{#cargo_query:tables=MoveData_GGST
{{#cargo_query:tables=MoveData_GGST
|fields={{#if:{{{versioned|}}}|input=name,|}}damage,guard,startup,active,recovery,onBlock,invuln
|fields={{#switch:{{{versioned}}}|input = input=name,|name = name=name,}}damage,guard,startup,active,recovery,onBlock,invuln
|where=chara="{{#var:targetChara}}" 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=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>"|description="</nowiki> field
--------------------- 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. Maybe mention some positive traits or downsides that are important.
Describe what the move is used for.
*Bullet point of supplemental data}}}
 
</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>

Latest revision as of 01:33, 6 September 2022