m (Undo revision 264183 by PrivateTarkus (talk)) Tag: Undo |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#vardefine:gameTable|{{#if:{{{game|}}}|{{{game|}}}|{{BASEPAGENAME}}}}}}<!-- If a game is not provided, fall back to the base page name | |||
-->{{#vardefine:targetChara|{{#if:{{{chara|}}}|{{{chara|}}}|{{#titleparts:{{PAGENAME}}|1|2}}}}}}<!-- If a game is not provided, fall back to the base page name | |||
--><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}}}"|format=template|template=TooltipMovePreview|named args=yes|limit=1|more results text=}}}}</includeonly><noinclude>{{clear}}{{doc}}</noinclude> |
Revision as of 04:29, 14 March 2022
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, 236PGuardAllStartup18RecoveryAdvantage+3, 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 specialGuardAllStartup15~31 [32]Recovery32Advantage-17, 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.SGuardAllStartup10Recovery25Advantage-, 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.SGuardAllStartup11Recovery21Advantage-10 [-13], 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 EdgeGuardAllStartup10RecoveryTotal 46Advantage-10, 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, 214MGuardAllStartup18RecoveryAdvantage-23, 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, 6PGuardMidStartup9Recovery20Advantage-12, 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, 6PGuardMidStartup9Recovery20Advantage-12, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
The above documentation is transcluded from Template:MiniMoveCard/doc. (edit | history)