Template:MoveTooltip-UNICLR: Difference between revisions

From Mizuumi Wiki
Jump to navigation Jump to search
No edit summary
(Reverting to old version which uses Javascript)
 
Line 1: Line 1:
<includeonly><!--      // If there are 2 unnamed arguments, then set 'character' to the first argument and 'moveInput' to the second argument
<!--      // If there are 2 unnamed arguments, then set 'character' to the first argument and 'moveInput' to the second argument
-->{{#if:{{{2|}}}|<!--
-->{{#if:{{{2|}}}|<!--
---->{{#vardefine:character|{{{1}}}}}<!--
---->{{#vardefine:character|{{{1}}}}}<!--
Line 11: Line 11:
           // If at least 1 unnamed parameter exists, make the tooltip.
           // If at least 1 unnamed parameter exists, make the tooltip.
-->{{#if:{{{1|}}}{{{2|}}}|<!--
-->{{#if:{{{1|}}}{{{2|}}}|<!--
--><span class="tooltip"><!--
--><span class="ajaxttlink"><span>[[Under_Night_In-Birth/UNICLR/{{#var:character}}/Data#{{#replace:{{#replace:{{#var:moveInput}}|[|.5B}}|]|.5D}}|<span class="ttlink">{{{text|{{#var:moveInput}}}}}</span>]]</span></span>|<!--
--><div class="plainlinks" style="display:inline-block;">[https://wiki.gbl.gg/index.php?title=Under_Night_In-Birth/UNICLR/{{#var:character}}#{{#replace:{{#replace:{{#var:moveInput}}|[|.5B}}|]|.5D}} {{{text|{{#var:moveInput}}}}}]</div><!--
-->{{#if:{{{moveId|}}}|<!--
    // If user inputs moveId
-->{{#cargo_query: tables=UNICLR_MoveData<!--
-->| fields = UNICLR_MoveData.moveId, UNICLR_MoveData.input, UNICLR_MoveData.images = image, UNICLR_MoveData.damage, UNICLR_MoveData.name, UNICLR_MoveData.guard, UNICLR_MoveData.startup, UNICLR_MoveData.overall<!--
-->| where = moveId = '{{{moveId}}}'<!--
-->| format = template<!--
-->| template = MoveTooltip-UNICLR/Table<!--
-->| named args = yes<!--
-->}}|<!--
  // If moveId isn't used, used moveInput instead
-->{{#cargo_query: tables=UNICLR_MoveData<!--
-->| fields = UNICLR_MoveData.moveId, UNICLR_MoveData.input, UNICLR_MoveData.images = image, UNICLR_MoveData.damage, UNICLR_MoveData.name, UNICLR_MoveData.guard, UNICLR_MoveData.startup, UNICLR_MoveData.overall<!--
-->| where = input = '{{#var:moveInput}}'<!--
-->| format = template<!--
-->| template = MoveTooltip-UNICLR/Table<!--
-->| named args = yes<!--
-->}}<!--
-->}}<!--
--></span>|<!--
           // Otherwise, show this error and add the below tracking category
           // Otherwise, show this error and add the below tracking category
-->'''Invalid Move Tooltip'''[[Category:Pages with invalid move tooltips]]<!--
-->'''Invalid Move Tooltip'''<includeonly>[[Category:Pages with invalid move tooltips]]</includeonly><!--
-->}}</includeonly><noinclude>
-->}}
{{doc}}
[[Category:Under Night In-Birth]]
[[Category:Templates]]
</noinclude>

Latest revision as of 06:53, 3 October 2021

Invalid Move Tooltip