Template:MMC-UNI2: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#vardefine:MMCTargetCharacter|{{{chara|{{SUBPAGENAME}} }}} }}<!-- -->{{#vardefine:moveName |{{#explode:{{{input|}}}| |0|2}} }}<!-- -->{{#vardefine:inputInfo|{{#explode:{{{input|}}}| |1|2}} }}<!-- -->{{#vardefine:childImageTable|{{#ifeq: {{{hitboxMode|}}}|true|hitboxes|images}}}}<!-- -->{{TooltipPopup|dir={{{dir|}}}|width={{{width|300}}}|{{{text|}}}|{{#cargo_query:tables=UNI2_MoveData,UNI2_MoveData__{{#var:childImageTable}} |join on=UNI2_MoveData._ID=UNI2...") |
No edit summary |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:MMCTargetCharacter|{{{chara|{{SUBPAGENAME}} }}} }}<!-- | <includeonly>{{#vardefine:MMCTargetCharacter|{{{chara|{{SUBPAGENAME}} }}} }}<!-- | ||
-->{{#vardefine: | -->{{#vardefine:moveId|{{MoveData-UNI2/QueryMoveId|chara={{#var:MMCTargetCharacter}}|input={{{input|}}} }} }}<!-- | ||
-->{{#vardefine:childImageTable|{{#ifeq: {{{hitboxMode|}}}|true|hitboxes|images}}}}<!-- | -->{{#vardefine:childImageTable|{{#ifeq: {{{hitboxMode|}}}|true|hitboxes|images}}}}<!-- | ||
-->{{ | -->{{Ttp|width={{{width|300}}}|dir={{{dir|u}}}|{{{label|{{{input|}}}}}}|<!-- | ||
-->{{#cargo_query:tables=UNI2_MoveData,UNI2_MoveData__{{#var:childImageTable}} | |||
|join on=UNI2_MoveData._ID=UNI2_MoveData__{{#var:childImageTable}}._rowID | |join on=UNI2_MoveData._ID=UNI2_MoveData__{{#var:childImageTable}}._rowID | ||
|fields={{#var:childImageTable}}=image,startup,guard,recovery,frameAdv, assaultAdv | |fields={{#var:childImageTable}}=image,startup,guard,recovery,frameAdv, assaultAdv | ||
|where= | |where=moveId="{{#var:moveId}}" {{#if:{{{imageNumber|}}}|and UNI2_MoveData__{{#var:childImageTable}}._position="{{{imageNumber|}}}"|}} | ||
|format=template|template= | |format=template|template=MMC-UNI2/Card|named args=yes|limit=1|more results text=|default= | ||
}}}}</includeonly><noinclude>{{ | }}}}</span></includeonly><noinclude>{{clear}}{{doc}}</noinclude> |
Latest revision as of 23:37, 8 February 2024
Template DocumentationEdit This Documentation
A template for writing shorthand cargo queries that display a Mini Move Card pop-up.
This documentation is automatically transcluded from Template:MMC-UNI2/Documentation and is not included when this page is transcluded.
WARNING: This is a pure CSS implementation and will have issues such as clipping out of a page, not friendly with responsive (mobiles), and more. Use with caution.
Usage
Expects argument: input = input for the move for the cargo query
Optional arguments: 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. 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. width = change the width of the box. Only use it when the card does not fit the move dir = change the direction of the box (top/bottom/left/right). AVOID USING IT AT ALL COST as it is real bonkers
Examples
Default Behavior
{{MMC-UNI2|chara=Hyde|input=236A}}
Lorem ipsum dolor sit amet, 236AGuardStartupAll13RecoveryAdvantage--7, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
With Custom Label
{{MMC-UNI2|chara=Carmine|input=22C|label= A house}}
Lorem ipsum dolor sit amet, A houseGuardStartupLow16RecoveryAdvantage24+3 [+4], sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
ImageNumber Specifier
{{MMC-UNI2|chara=Hyde|input=6B|imageNumber=2}}
Lorem ipsum dolor sit amet, 6BGuardStartupMid8RecoveryAdvantage--5, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Hitbox Mode
{{MMC-UNI2|chara=Phonon|input=3C|hitboxMode=true}}
Lorem ipsum dolor sit amet, 3CGuardStartupLow16RecoveryAdvantage22-14, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Hitbox Mode + ImageNumberSpecifier
{{MMC-UNI2|chara=Hyde|input=41236D|hitboxMode=true|imageNumber=2}}Lorem ipsum dolor sit amet, 41236DGuardStartupMid1+7RecoveryAdvantage--18, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
This documentation is automatically transcluded from Template:MMC-UNI2/Documentation and is not included when this page is transcluded.