Template:MiniMoveCard: Difference between revisions

Template page
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#vardefine:gameTable|{{#if:{{{game|}}}|{{{game|}}}|{{ROOTPAGENAME}}}}}}<!-- If a game is not provided, fall back to the root page name  
{{#vardefine:gameTable|{{#if:{{{game|}}}|{{{game|}}}|{{ROOTPAGENAME}}}}}}<!-- If a game is not provided, fall back to the root page name  
-->{{#vardefine:targetChara|{{#if:{{{chara|}}}|{{{chara|}}}|{{#titleparts:{{PAGENAME}}|1|2}}}}}}<!-- If a chara is not provided, fall back to the second segment of the page title
-->{{#vardefine:targetChara|{{#if:{{{chara|}}}|{{{chara|}}}|{{#titleparts:{{PAGENAME}}|1|2}}}}}}<!-- If a chara is not provided, fall back to the second segment of the page title
--><includeonly>{{Tt|{{{label|{{{input}}}}}}|{{#cargo_query:tables=MoveData_{{#var:gameTable}},MoveData_{{#var:gameTable}}__images|join on=MoveData_{{#var:gameTable}}._ID=MoveData_{{#var:gameTable}}__images._rowID|fields=images=image,name,guard,startup,recovery,onBlock|where=chara="{{#var:targetChara}}" and input="{{{input}}}" {{#if: {{{type|}}}|and type="{{{type|}}}"|}}|format=template|template=TooltipMovePreview|named args=yes|limit=1|more results text=}}}}</includeonly><noinclude>{{clear}}{{doc}}</noinclude>
--><includeonly>{{Tt|{{{label|{{{input}}}}}}|<!--
-->{{#cargo_query:tables=MoveData_{{#var:gameTable}},MoveData_{{#var:gameTable}}__images<!--
-->|join on=MoveData_{{#var:gameTable}}._ID={{#if:{{{hitboxes|}}}|MoveData_{{#var:gameTable}}__images._rowID|}}<!--
-->|fields=images=image,name,guard,startup,recovery,onBlock<!--
-->|where=chara="{{#var:targetChara}}" and input="{{{input}}}" {{#if: {{{type|}}}|and type="{{{type|}}}"|}}<!--
-->|format=template|template=TooltipMovePreview|named args=yes|limit=1|more results text=}}}}</includeonly><noinclude>{{clear}}{{doc}}</noinclude>

Revision as of 12:32, 22 June 2022

A template for writing shorthand cargo queries that display a Mini Move Card pop-up.

Usage

Using MMC instead of MiniMoveCard is also valid.

 Expects argument:
 input = input for the move for the cargo query
 Optional arguments:
 game        = name of the game as it appears in the cargo table. If this is not provided, it will assume the game from the RootPageName of the current page.
 chara       = full name of the character for the cargo query (e.g. "Sol Badguy"). If this is not provided, it will assume the character from the second segment of the current page title.
 label       = whatever text you want the tooltip to appear over. If not provided, uses the move input instead.
 type        = Narrows the query down using the type field. Used to resolve conflicts of overlapping inputs between differing moves.
 imageNumber = Specifies an image when a move has more than one image per version.
 hitboxMode  = provide the value "true" to override the image with a single hitbox image. Pair with the imageNumber argument to target a specific hitbox frame.

Examples

Default Behavior

{{MiniMoveCard|chara=Testament|input=236P|game=GGML}}
Lorem ipsum dolor sit amet, 236P
Table and field name must both be specified in .
, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

With Custom Label

{{MiniMoveCard|chara=Sol Badguy|input=214S|game=GGST|label=Sol's low-profiling special}}
Lorem ipsum dolor sit amet, Sol's low-profiling special
Table and field name must both be specified in .
, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

With Type Specifier

{{MiniMoveCard|chara=Zappa|input=j.S|game=GGACR|type=normal}}
Lorem ipsum dolor sit amet, j.S
Table and field name must both be specified in .
, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

With Colored Move Input

{{MiniMoveCard|chara=Ramlethal Valentine|input=f.S|game=GGST|label={{color|game=GGST|S|f.S}}}}
Lorem ipsum dolor sit amet, f.S
Table and field name must both be specified in .
, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

With Move Link

{{MiniMoveCard|chara=Ky Kiske|input=236S|game=GGXRDR2|label=[[GGXRD-R2/Ky Kiske#Stun Edge|Stun Edge]]}}
Lorem ipsum dolor sit amet, Stun Edge
Table and field name must both be specified in .
, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

ImageNumber Specifier

{{MMC|game=DNFD|chara=Troubleshooter|input=214M|imageNumber=2|label={{Clr|2|214M}}}}
Lorem ipsum dolor sit amet, 214M
Table and field name must both be specified in .
, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Hitbox Mode

{{MMC|game=GGACR|chara=Venom|input=6P|hitboxMode=true|label={{Clr|1|6P}}}}
Lorem ipsum dolor sit amet, 6P
Table and field name must both be specified in .
, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Hitbox Mode + ImageNumberSpecifier

{{MMC|game=GGACR|chara=Venom|input=6P|hitboxMode=true|imageNumber=2|label={{Clr|1|6P}}}}
Lorem ipsum dolor sit amet, 6P
Table and field name must both be specified in .
, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.