From Brotato Wiki
(add more title attrs) |
(make tier buttons optional. Will replace them with buttons to toggle cost/tags shortly) |
||
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> | ||
<td style="padding-left: 20px;"> | {{#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 13: | Line 13: | ||
<span class="btn btn--active" data-hide-type="item" data-hide-target="rarity3" title="Tier 3 (Rare)">{{Color|tier3|Rare}}</span> | <span class="btn btn--active" data-hide-type="item" data-hide-target="rarity3" title="Tier 3 (Rare)">{{Color|tier3|Rare}}</span> | ||
<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="text-align: right;"> | <td style="text-align: right;"> | ||
<!-- Item Tags (Stats) --> | <!-- Item Tags (Stats) --> | ||
Line 39: | Line 39: | ||
See [[Mod:Extatonion/Items]] for a working example. | See [[Mod:Extatonion/Items]] for a working example. | ||
== Default == | |||
<pre style="display: inline-block;"> | <pre style="display: inline-block;"> | ||
Line 46: | Line 48: | ||
{{StatsCard_GridToggles}} | {{StatsCard_GridToggles}} | ||
== Tier Buttons == | |||
<pre style="display: inline-block;"> | |||
{{StatsCard_GridToggles|tier_btns=1}} | |||
</pre> | |||
{{StatsCard_GridToggles|tier_btns=1}} | |||
</noinclude> | </noinclude> |
Revision as of 16:10, 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 |
|