Template:Damage colour: Difference between revisions
Jump to navigation
Jump to search
(Use properly namespaced CSS class names. (bg3wiki-blah-blah)) |
HiddenDragon (talk | contribs) (Add documentation and template demo templates) |
||
Line 1: | Line 1: | ||
<includeonly><span class="bg3wiki-damage-type-{{lc:{{{1|}}}}}">{{trim | {{{2| {{{1}}} }}} }}</span></includeonly><noinclude> | <includeonly><span class="bg3wiki-damage-type-{{lc:{{{1|}}}}}">{{trim | {{{2| {{{1}}} }}} }}</span></includeonly><noinclude>{{Documentation|content= | ||
== Examples == | |||
{{Template demo | |||
| style = table | |||
| <nowiki>{{DamageColor|Force|1d4 + 4 Force damage.}}</nowiki> | |||
| <nowiki>{{DamageColor|Healing|1d4 + 4 Healing}}</nowiki> | |||
}} | |||
== Complete list of all colors == | |||
* {{DamageColor|Acid|Acid}} | * {{DamageColor|Acid|Acid}} | ||
Line 25: | Line 28: | ||
Note to future editors: it's important for these colors to be legible on both a light and a dark background! | Note to future editors: it's important for these colors to be legible on both a light and a dark background! | ||
[[Category:Templates]] | |||
[[Category:Damage info templates]] | [[Category:Damage info templates]] | ||
</noinclude> | </noinclude> |
Revision as of 10:50, 19 January 2025
{{Documentation|content=
Examples
Markup | Renders as |
---|---|
{{DamageColor|Force|1d4 + 4 Force damage.}} | 1d4 + 4 Force damage. |
{{DamageColor|Healing|1d4 + 4 Healing}} | 1d4 + 4 Healing |
Complete list of all colors
- Acid
- Cold
- Fire
- Force
- Healing
- Lightning
- Necrotic
- Poison
- Radiant
- Thunder
- Psychic
- Physical
- Piercing
- Bludgeoning
- Slashing
Note to future editors: it's important for these colors to be legible on both a light and a dark background!