Template:TooltipMovePreview: Difference between revisions

Template page
mNo edit summary
m (Correcting typo)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><span style="display: inline-grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(2,1fr);grid-column-gap:0;grid-row-gap:0;max-height:200px;width:300px"><!--
Have to use span tag instead of div tags since there are some weird bug with MW parser that makes the text after the tooltip into a paragraph element
--><span style="margin:auto;grid-area:1/1/3/3">[[File:{{{image|}}}|130x200px]]</span><!--
--><span style="margin:auto;grid-area:1/3/2/4;padding-left:8px>'''Guard:'''<br>{{{guard|-}}}</span><!--
mw-parser-output needed to bypass TemplateStyles restrictions
--><span style="margin:auto;grid-area:1/4/2/5;padding-left:8px">'''Startup:'''<br>{{{startup|-}}}</span><!--
--><span class="mw-parser-output"><!--
--><span style="margin:auto;grid-area:2/3/3/4;padding-left:8px">'''Recovery:'''<br>{{{recovery|-}}}</span><!--
--><span class="tmp"><!--
--><span style="margin:auto;grid-area:2/4/3/5;padding-left:8px">'''Advantage:'''<br>{{{onBlock|-}}}</span><!--
Image
--></span></includeonly>
--><span class="tmp-image">[[File:{{{image|}}}|130x200px]]</span><!--
--><span class="tmp-items"><!--
Guard
--><span class="tmp-item"><!--
--><span class="tmp-item-label">Guard</span><!--
--><span class="tmp-item-data">{{{guard|-}}}</span><!--
--></span><!--
Startup
--><span class="tmp-item"><!--
--><span class="tmp-item-label">Startup</span><!--
--><span class="tmp-item-data">{{{startup|-}}}</span><!--
--></span><!--
Recovery
--><span class="tmp-item"><!--
--><span class="tmp-item-label">Recovery</span><!--
--><span class="tmp-item-data">{{{recovery|-}}}</span><!--
--></span><!--
Advantage
--><span class="tmp-item"><!--
--><span class="tmp-item-label">Advantage</span><!--
--><span class="tmp-item-data">{{If empty|{{{onBlock|}}}|-}}</span><!--
--></span><!--
--></span><!--
--></span><!--
--></span><!--
--></includeonly><templatestyles src="Template:TooltipMovePreview/styles.css"/>

Latest revision as of 22:53, 21 November 2023