Template:Tag: Difference between revisions
From Step Mods | Change The Game
m (→Examples) |
m (→Examples) |
||
Line 16: | Line 16: | ||
<br> | <br> | ||
'''Code:''' | '''Code:''' | ||
<pre>some text {{Tag|bg= | <pre>some text {{Tag|bg=mpurple|bd=magent|tx=hl|text=TAG}} some text</pre> | ||
'''Result:''' | '''Result:''' | ||
some text {{Tag|bg=mpurple|bd=magent|tx=hl|text=TAG}} some text | some text {{Tag|bg=mpurple|bd=magent|tx=hl|text=TAG}} some text |
Revision as of 18:23, 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