User:Moxian/Sandbox: Difference between revisions

From Dustloop Wiki
No edit summary
(Replaced content with "hello lorem ipsum {{#vardefine:MoveCardTargetChara|Aigis}} {{#vardefine:input1|5A}} <div class="mw-collapsible mw-collapsed additional-data-section" data-expandtext="Sh...")
Tag: Replaced
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!--------------------------- defaults the character to the subpagename ---------------------------
hello
-->{{#vardefine:targetChara|Sol Badguy}}<!-----------
 
<!----------- determines up to 4 inputs from a comma seperated list of inputs in the |input argument -----------
lorem ipsum
-->{{#vardefine:input1|623H DI}}<!--
 
-->{{#vardefine:input2|623S DI}}<!--
{{#vardefine:MoveCardTargetChara|Aigis}}
-->{{#vardefine:input3|{{#explode:{{{input}}}|,|2}}}}<!--
{{#vardefine:input1|5A}}
-->{{#vardefine:input4|{{#explode:{{{input}}}|,|3}}}}<!--
 
-->{{#vardefine:input5|{{#explode:{{{input}}}|,|4}}}}<!--
<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: 1920px; padding-top: 5px;">&nbsp;
-->{{#vardefine:input6|{{#explode:{{{input}}}|,|5}}}}<!--
<div class="mw-collapsible-content">
-->{{#vardefine:input7|{{#explode:{{{input}}}|,|6}}}}<!--
{| class="wikitable" style="text-align: center; width: 50%"
---><div class="attack-container"><div class="attack-gallery">
{{AdditionalDataHeader-P4U2R|versioned=input}}
Images = <!------------------- Pulls the images and captions from the game's moveData table ------------------->
|-
Hitboxes = <!-------------- Pulls the hitboxes and hitboxCaptions from the game's moveData table -------------->
{{#cargo_query:tables=MoveData_P4U2R
{{#cargo_query:tables=MoveData_GGACR, MoveData_GGACR__hitboxes, MoveData_GGACR__hitboxCaption
|fields=input=name,p1,p2,smp,level
|join on= MoveData_GGACR._ID=MoveData_GGACR__hitboxes._rowID , MoveData_GGACR._ID=MoveData_GGACR__hitboxCaption._rowID <!--MoveData_GGACR__hitboxes._position=MoveData_GGACR__hitboxCaption._position-->
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}', '{{#var:input9}}') {{#if: {{{type|}}}| and MoveData_P4U2R.type="{{{type|}}}" |}}
|fields= MoveData_GGACR.input,  
|format=template|template=AdditionalData-P4U2R|named args=yes|order by=_ID
MoveData_GGACR._ID, MoveData_GGACR__hitboxes._rowID ,
|delimiter=\n{{!}}-\n
MoveData_GGACR__hitboxes._value=image,
MoveData_GGACR__hitboxCaption._value=caption
|where=MoveData_GGACR.chara="{{#var:targetChara}}" and MoveData_GGACR.input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}') {{#if: {{{type|}}}| and MoveData_GGACR.type="{{{type|}}}" |}}
|group by= MoveData_GGACR__hitboxes._value
|order by=_ID,MoveData_GGACR__hitboxes._position
|format=table|mode=nolines|show filename=0|show bytes=0|show dimensions=0
|image height=210|image width=210
|caption field=hitboxCaption|default=
}}
}}
</div></div></div>
|}
{{#cargo_query:tables=MoveData_P4U2R
|fields={{#if: {{{versioned|}}}|input=name,|}}notes
|where=chara="{{#var:MoveCardTargetChara}}" and input in ('{{#var:input1}}', '{{#var:input2}}', '{{#var:input3}}', '{{#var:input4}}', '{{#var:input5}}', '{{#var:input6}}', '{{#var:input7}}', '{{#var:input8}}', '{{#var:input9}}') {{#if: {{{type|}}}| and MoveData_P4U2R.type="{{{type|}}}" |}} and notes HOLDS LIKE "%"
|format=template|template=Cargo_Notes|named args=yes|order by=_ID
|default=
}}</div></div>

Latest revision as of 00:34, 19 September 2022