Template:IconLink: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 3: Line 3:
{{#vardefine: max-w | {{{w|}}} }}
{{#vardefine: max-w | {{{w|}}} }}
{{#vardefine: max-h | {{{h | {{{size | 40}}} }}} }}
{{#vardefine: max-h | {{{h | {{{size | 40}}} }}} }}
}}{{#if: {{{block|}}} | <span style="display: inline-flex; align-items: center;"> }}<span style="display: inline-flex; align-items: center; justify-content: center; min-width: {{#var:min-w}}px; height: {{#var:max-h}}px;">[[File:{{{1}}}|frameless|link={{{2}}}|{{#var:max-w}}x{{#var:max-h}}px|{{{2}}}]]</span>&nbsp;[[ {{{2}}} |{{{ 3 |{{{ 2 }}} }}} ]]{{#if: {{{block|}}} | </span> }}</includeonly><noinclude>
}}{{#if: {{{block|}}} | <span style="display: inline-flex; align-items: center; {{#if: {{{gap|}}} | gap: {{{gap}}}px; }}"> }}<span style="display: inline-flex; align-items: center; justify-content: center; min-width: {{#var:min-w}}px; height: {{#var:max-h}}px;">[[File:{{{1}}}|frameless|link={{{2}}}|{{#var:max-w}}x{{#var:max-h}}px|{{{2}}}]]</span>&nbsp;[[ {{{2}}} |{{{ 3 |{{{ 2 }}} }}} ]]{{#if: {{{block|}}} | </span> }}</includeonly><noinclude>
Usage: {{code|<nowiki>{{IconLink|Flourish Icon.png|Flourish}}</nowiki>}}
Usage: {{code|<nowiki>{{IconLink|Flourish Icon.png|Flourish}}</nowiki>}}


Line 31: Line 31:
! colspan="2" | Rolls
! colspan="2" | Rolls
|-
|-
| {{IconLink|w=20|h=20|D20.png|Attack Roll}} || The roll you make to determine whether an attack hits an enemy at all.
| {{IconLink | block = yes | w = 22 | h = 22 | gap = 2 | D20.png | Attack Roll }}
| The roll you make to determine whether an attack hits an enemy at all.
|-
|-
| {{IconLink|w=20|h=20|D6 Thunder.png|Damage Roll}} || The roll you make to determine the amount of damage done by a successful attack.
| {{IconLink | block = yes | w = 22 | h = 22 | gap = 2 | D6 Thunder.png | Damage Roll }}
| The roll you make to determine the amount of damage done by a successful attack.
|-
|-
| {{IconLink|w=20|h=20|Saving Throw Icon.png|Saving Throw}} || The roll you make to attempt avoiding various threats other than direct attacks.
| {{IconLink | block = yes | w = 22 | h = 22 | gap = 2 | Saving Throw Icon.png | Saving Throw }}
| The roll you make to attempt avoiding various threats other than direct attacks.
|-
|-
| {{IconLink|w=20|h=20|D20.png|Ability Check}} || The roll you make when attempting anything else that requires a roll to succeed.
| {{IconLink | block = yes | w = 22 | h = 22 | gap = 2 | D20.png | Ability Check }}
| The roll you make when attempting anything else that requires a roll to succeed.
|-
|-
! colspan="2" | Modifiers
! colspan="2" | Modifiers
|-
|-
| {{IconLink|w=20|h=20|Advantage Icon.png|Advantage}} || Roll the die twice, and use the higher result. [[Disadvantage]] is the exact opposite.  
| {{IconLink | block = yes | w = 22 | h = 22 | gap = 2 | Advantage_Icon.png | Advantage }}
| Roll the die twice, and use the higher result. [[Disadvantage]] is the exact opposite.  
|-
|-
| {{IconLink|block=yes|w=20|h=20|Charisma Ability Icon.png|Ability Score Modifier}} || The number you add to your rolls based on your [[Ability Scores]].
| {{IconLink | block = yes | w = 22 | h = 22 | gap = 2 | Charisma Ability Icon.png | Ability Score Modifier }}
| The number you add to your rolls based on your [[Ability Scores]].
|-
|-
| {{IconLink|block=yes|w=20|h=20|Proficiency Icon.png|Proficiency Bonus}} || The number you add to your rolls based on whether you have [[Proficiency]].
| {{IconLink | block = yes | w = 22 | h = 22 | gap = 2 | Proficiency Icon.png | Proficiency Bonus }}
| The number you add to your rolls based on whether you have [[Proficiency]].
|}
|}


[[Category:Icon Templates]]
[[Category:Icon Templates]]
</noinclude>
</noinclude>

Navigation menu