Template:AdvancedTooltip: Difference between revisions

From MalveraWiki
Kuba445 (talk | contribs)
No edit summary
Kuba445 (talk | contribs)
No edit summary
Line 1: Line 1:
<div class="tooltip-wrapper">
<noinclude>
  <span style="border-bottom: 1px dotted #e2d8ff; cursor: help;">{{{1|?}}}</span>
This template displays an item tooltip.
  <div class="custom-tooltip" style="width: auto; min-width: 350px; max-width: 650px;">
<pre>
    {{#if:{{{1|}}}|<div style="text-align: center; font-weight: bold; font-size: 1.1em; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 4px; color:#e2d8ff;">{{{1}}}</div>}}
{{AdvancedTooltip | ItemName
    <div style="display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;">
| Attr1 Name | Attr1 Values | Attr1 Chance
     
| Attr2 Name | Attr2 Values | Attr2 Chance
      {{#if:{{{2|}}}|<div style="flex: 1 1 140px; min-width: 140px;"><table class="wikitable" style="margin:0; width:100%; text-align:center;"><tr><th style="color:#cbb4ff;">{{{2}}}</th><th style="width:35%; color:#a89ad1; font-size:0.9em;">Chance</th></tr><tr><td style="vertical-align:top;">{{{3}}}</td><td style="color:#ccc; vertical-align:top;">{{{4}}}</td></tr></table></div>}}
}}
</pre>
</noinclude><includeonly><div class="tooltip-wrapper">
<span style="border-bottom: 1px dotted #e2d8ff; cursor: help;">{{{1|?}}}</span>
<div class="custom-tooltip" style="width: auto; min-width: 350px; max-width: 650px;">


      {{#if:{{{5|}}}|<div style="flex: 1 1 140px; min-width: 140px;"><table class="wikitable" style="margin:0; width:100%; text-align:center;"><tr><th style="color:#cbb4ff;">{{{5}}}</th><th style="width:35%; color:#a89ad1; font-size:0.9em;">Chance</th></tr><tr><td style="vertical-align:top;">{{{6}}}</td><td style="color:#ccc; vertical-align:top;">{{{7}}}</td></tr></table></div>}}
{{#if:{{{1|}}}|<div style="text-align: center; font-weight: bold; font-size: 1.2em; margin-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 5px; color:#e2d8ff;">{{{1}}}</div>}}


      {{#if:{{{8|}}}|<div style="flex: 1 1 140px; min-width: 140px;"><table class="wikitable" style="margin:0; width:100%; text-align:center;"><tr><th style="color:#cbb4ff;">{{{8}}}</th><th style="width:35%; color:#a89ad1; font-size:0.9em;">Chance</th></tr><tr><td style="vertical-align:top;">{{{9}}}</td><td style="color:#ccc; vertical-align:top;">{{{10}}}</td></tr></table></div>}}
<div style="display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;">


      {{#if:{{{11|}}}|<div style="flex: 1 1 140px; min-width: 140px;"><table class="wikitable" style="margin:0; width:100%; text-align:center;"><tr><th style="color:#cbb4ff;">{{{11}}}</th><th style="width:35%; color:#a89ad1; font-size:0.9em;">Chance</th></tr><tr><td style="vertical-align:top;">{{{12}}}</td><td style="color:#ccc; vertical-align:top;">{{{13}}}</td></tr></table></div>}}
{{#if:{{{2|}}}|
<div style="flex: 1 1 140px; min-width: 140px;">
<table class="wikitable" style="margin:0; width:100%; text-align:center;">
<tr>
<th style="color:#cbb4ff; text-align:center;">{{{2}}}</th>
<th style="width:35%; color:#a89ad1; font-size:0.9em; text-align:center;">Chance</th>
</tr>
<tr>
<td style="vertical-align:top; text-align:center;">{{{3}}}</td>
<td style="color:#ccc; vertical-align:top; text-align:center;">{{{4}}}</td>
</tr>
</table>
</div>
}}
 
{{#if:{{{5|}}}|
<div style="flex: 1 1 140px; min-width: 140px;">
<table class="wikitable" style="margin:0; width:100%; text-align:center;">
<tr>
<th style="color:#cbb4ff; text-align:center;">{{{5}}}</th>
<th style="width:35%; color:#a89ad1; font-size:0.9em; text-align:center;">Chance</th>
</tr>
<tr>
<td style="vertical-align:top; text-align:center;">{{{6}}}</td>
<td style="color:#ccc; vertical-align:top; text-align:center;">{{{7}}}</td>
</tr>
</table>
</div>
}}
 
{{#if:{{{8|}}}|
<div style="flex: 1 1 140px; min-width: 140px;">
<table class="wikitable" style="margin:0; width:100%; text-align:center;">
<tr>
<th style="color:#cbb4ff; text-align:center;">{{{8}}}</th>
<th style="width:35%; color:#a89ad1; font-size:0.9em; text-align:center;">Chance</th>
</tr>
<tr>
<td style="vertical-align:top; text-align:center;">{{{9}}}</td>
<td style="color:#ccc; vertical-align:top; text-align:center;">{{{10}}}</td>
</tr>
</table>
</div>
}}


      {{#if:{{{14|}}}|<div style="flex: 1 1 140px; min-width: 140px;"><table class="wikitable" style="margin:0; width:100%; text-align:center;"><tr><th style="color:#cbb4ff;">{{{14}}}</th><th style="width:35%; color:#a89ad1; font-size:0.9em;">Chance</th></tr><tr><td style="vertical-align:top;">{{{15}}}</td><td style="color:#ccc; vertical-align:top;">{{{16}}}</td></tr></table></div>}}
{{#if:{{{11|}}}|
<div style="flex: 1 1 140px; min-width: 140px;">
<table class="wikitable" style="margin:0; width:100%; text-align:center;">
<tr>
<th style="color:#cbb4ff; text-align:center;">{{{11}}}</th>
<th style="width:35%; color:#a89ad1; font-size:0.9em; text-align:center;">Chance</th>
</tr>
<tr>
<td style="vertical-align:top; text-align:center;">{{{12}}}</td>
<td style="color:#ccc; vertical-align:top; text-align:center;">{{{13}}}</td>
</tr>
</table>
</div>
}}


      {{#if:{{{17|}}}|<div style="flex: 1 1 140px; min-width: 140px;"><table class="wikitable" style="margin:0; width:100%; text-align:center;"><tr><th style="color:#cbb4ff;">{{{17}}}</th><th style="width:35%; color:#a89ad1; font-size:0.9em;">Chance</th></tr><tr><td style="vertical-align:top;">{{{18}}}</td><td style="color:#ccc; vertical-align:top;">{{{19}}}</td></tr></table></div>}}
{{#if:{{{14|}}}|
<div style="flex: 1 1 140px; min-width: 140px;">
<table class="wikitable" style="margin:0; width:100%; text-align:center;">
<tr>
<th style="color:#cbb4ff; text-align:center;">{{{14}}}</th>
<th style="width:35%; color:#a89ad1; font-size:0.9em; text-align:center;">Chance</th>
</tr>
<tr>
<td style="vertical-align:top; text-align:center;">{{{15}}}</td>
<td style="color:#ccc; vertical-align:top; text-align:center;">{{{16}}}</td>
</tr>
</table>
</div>
}}


    </div>
{{#if:{{{17|}}}|
  </div>
<div style="flex: 1 1 140px; min-width: 140px;">
<table class="wikitable" style="margin:0; width:100%; text-align:center;">
<tr>
<th style="color:#cbb4ff; text-align:center;">{{{17}}}</th>
<th style="width:35%; color:#a89ad1; font-size:0.9em; text-align:center;">Chance</th>
</tr>
<tr>
<td style="vertical-align:top; text-align:center;">{{{18}}}</td>
<td style="color:#ccc; vertical-align:top; text-align:center;">{{{19}}}</td>
</tr>
</table>
</div>
}}
 
</div>
</div>
</div>
</div></includeonly>

Revision as of 19:46, 2 February 2026

This template displays an item tooltip.

{{AdvancedTooltip | ItemName
 | Attr1 Name | Attr1 Values | Attr1 Chance
 | Attr2 Name | Attr2 Values | Attr2 Chance
}}