From Brotato Wiki
(updates) |
(updates) |
||
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="padding-left: 20px; text-align: right;"> | <td style="padding-left: 20px; text-align: right;"> | ||
Line 38: | Line 33: | ||
<span class="btn btn--active" data-hide-type="item" data-hide-target="stat_harvesting" title="Harvesting">{{StatIcon|Harvesting|nolink=1}}</span> | <span class="btn btn--active" data-hide-type="item" data-hide-target="stat_harvesting" title="Harvesting">{{StatIcon|Harvesting|nolink=1}}</span> | ||
</td> | </td> | ||
{{#ifeq:{{{extra_btns|}}}|1|<td style="padding-left: 10px; text-align: right;"> | |||
<!-- Extras: Cost/Tags --> | |||
<span class="btn btn--active" data-hide-type="misc" data-hide-target=".ibox__stats-costs" title="Costs" style="height: 20px;">{{StatIcon|Materials|nolink=1}}</span> | |||
<span class="btn btn--active" data-hide-type="misc" data-hide-target=".ibox__stats-tags" title="Tags" style="height: 20px;">🏷️</span> | |||
</td>|}} | |||
</tr> | </tr> | ||
</table><!-- | </table><!-- | ||
Line 68: | Line 68: | ||
{{StatsCard_GridToggles|extra_btns=1}} | {{StatsCard_GridToggles|extra_btns=1}} | ||
</noinclude> | </noinclude> |
Revision as of 19:38, 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}}
❌ ✔️ |
|
🏷️ |