Template:Tag: Difference between revisions
From Step Mods | Change The Game
m (→Examples) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly><span class="{{{bg|blue}}}bg {{{bd|yellow}}}bd {{{tx|hl}}}tx px-1" style="cursor:default; border-radius:2px; width:auto; border: 2px solid transparent; text-align:center; font-family: Montserrat,sans-serif!important">'''''{{{text}}}'''''</span></includeonly><noinclude>__NOTOC__ [[Category: | <includeonly><span class="{{{bg|blue}}}bg {{{bd|yellow}}}bd {{{tx|hl}}}tx px-1" style="cursor:default; border-radius:2px; width:auto; border: 2px solid transparent; text-align:center; font-family: Montserrat,sans-serif!important">'''''{{{text}}}'''''</span></includeonly><noinclude>__NOTOC__ [[Category:Formatting Templates]] | ||
== Purpose & Usage == | == Purpose & Usage == |
Latest revision as of 18:25, September 20, 2021
Purpose & Usage
Create tags to use as indicators where appropriate (DO NOT overuse this!). This template makes use of custom CSS classes to display theme-friendly colors. Reference the Site Color Pallet for CSS classes.
{{Tag|bg|bd|tx|text}}
Examples
Default Call
Code:
some text {{Tag|text=TAG}} some text
Result:
some text TAG some text
Code:
some text {{Tag|bg=mpurple|bd=magent|tx=hl|text=TAG}} some text
Result:
some text TAG some text
Code:
some text {{Tag|bg=yellow|bd=purple|tx=dim|text=Long Tag}} some text
Result: some text Long Tag some text
See Also
None