From Brotato Wiki
(updates) |
(updates) |
||
Line 7: | Line 7: | ||
<span class="btn" data-hide-type="item" data-hide-target="show-none" title="Apply All Filters">✔️</span> | <span class="btn" data-hide-type="item" data-hide-target="show-none" title="Apply All Filters">✔️</span> | ||
</td> | </td> | ||
{{#ifeq:{{{tier_btns|}}}|1|<td style="padding-left: | {{#ifeq:{{{tier_btns|}}}|1|<td style="padding-left: 20px;"> | ||
<!-- Rarities/Tiers --> | <!-- Rarities/Tiers --> | ||
<span class="btn btn--active" data-hide-type="item" data-hide-target="rarity1" title="Tier 1 (Common)">{{Color|tier1|Common}}</span> | <span class="btn btn--active" data-hide-type="item" data-hide-target="rarity1" title="Tier 1 (Common)">{{Color|tier1|Common}}</span> | ||
Line 14: | Line 14: | ||
<span class="btn btn--active" data-hide-type="item" data-hide-target="rarity4" title="Tier 4 (Legendary)">{{Color|tier4|Legendary}}</span> | <span class="btn btn--active" data-hide-type="item" data-hide-target="rarity4" title="Tier 4 (Legendary)">{{Color|tier4|Legendary}}</span> | ||
</td>|}} | </td>|}} | ||
<td style="padding-left: 20px | <td style="padding-left: 20px;"> | ||
<!-- Item Tags (Stats) --> | <!-- Item Tags (Stats) --> | ||
<span class="btn btn--active" data-hide-type="item" data-hide-target="stat_max_hp" title="Max HP">{{StatIcon|Max HP|nolink=1}}</span> | <span class="btn btn--active" data-hide-type="item" data-hide-target="stat_max_hp" title="Max HP">{{StatIcon|Max HP|nolink=1}}</span> |
Revision as of 19:39, 16 December 2022
Creates buttons that can be used above a table grid of items, shown with StatsCard, to toggle the visibility of those items.
See Mod:Extatonion/Items for a working example.
Default
{{StatsCard_GridToggles}}
❌ ✔️ |
|
Tier Buttons
{{StatsCard_GridToggles|tier_btns=1}}
❌ ✔️ |
Common Uncommon Rare Legendary |
|
Extra Buttons
{{StatsCard_GridToggles|extra_btns=1}}
❌ ✔️ |
|
🏷️ |