Template:Die icon: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Added documentation template and categories)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span style="display: inline-block; width: 30px;">[[File:{{trim | {{{1}}} }} {{trim | {{{2}}} }}.png|link=|x30px]]</span></includeonly><noinclude>{{Documentation|content=
<includeonly><span style="display: inline-block; width: 30px;">[[File:{{#switch: {{lc: {{{1}}} }}
| d4 = D4
| d6 = D6
| d8 = D8
| d10 = D10
| d12 = D12
| #default = D20
}}_{{#switch: {{lc: {{{2}}} }}
| acid = Acid
| cold = Cold
| fire = Fire
| force = Force
| healing = Healing
| lightning = Lightning
| necrotic = Necrotic
| poison = Poison
| radiant = Radiant
| thunder = Thunder
| psychic = Psychic
| #default = Physical}}.png|link=|x30px]] </span></includeonly><noinclude>{{Documentation|content=
A simple template that displays a die icon with the specified damage type.
A simple template that displays a die icon with the specified damage type.


Line 5: Line 24:
{{Template demo
{{Template demo
| style = table
| style = table
| <nowiki>{{DieIcon|d6|Radiant}}</nowiki>
| <nowiki>{{Die icon|d6|Radiant}}</nowiki>
| <nowiki>{{DieIcon|d4|Force}}</nowiki>
| <nowiki>{{Die icon|d4|Force}}</nowiki>
| <nowiki>{{Die icon|d12}}</nowiki>
}}
}}



Latest revision as of 11:48, 19 January 2025

Template documentation

A simple template that displays a die icon with the specified damage type.

Examples

Markup Renders as
{{Die icon|d6|Radiant}}
D6 Radiant.png
{{Die icon|d4|Force}}
D4 Force.png
{{Die icon|d12}}
D12 Physical.png