Template:Icon link

From bg3.wiki
(Redirected from Template:IconLink)
Jump to navigation Jump to search

Displays a link with an icon.

This template simply calls {{Icon text}}, passing on all parameters, except that the second parameter (text) implicitly becomes the link, and an optional third parameter can override the actual text to use.

Examples

Example Markup Renders as
Default
{{icon link | Flourish Icon.png | Flourish }}
Flourish Flourish
Custom link text
{{icon link | Flourish Icon.png | Flourish | Custom Text }}
Custom Text Custom Text

The default size is 25x25px meaning the icon is scaled until the width or height is 25 px. An alternative value for the height can be provided via the size or h or w parameters. See {{Icon}} for more information on setting icon size.

Markup Renders as
{{icon link | size = 40 | Flourish Icon.png | Flourish }}
Flourish Flourish
{{icon link | size = 20 | font size = 80% | Flourish Icon.png | Flourish | Custom Text }}
Custom Text Custom Text
{{icon link | Missing Icon 123.png | Flourish | Custom Text | size = 30}}
Custom Text Custom Text


Rolls
Attack RollAttack Roll The roll you make to determine whether an attack hits an enemy at all.
Damage RollDamage Roll The roll you make to determine the amount of damage done by a successful attack.
Saving ThrowSaving Throw The roll you make to attempt avoiding various threats other than direct attacks.
Ability CheckAbility Check The roll you make when attempting anything else that requires a roll to succeed.
Modifiers
AdvantageAdvantage Roll the die twice, and use the higher result. Disadvantage is the exact opposite.
Ability Score ModifierAbility Score Modifier The number you add to your rolls based on your Ability Scores.
Proficiency BonusProficiency Bonus The number you add to your rolls based on whether you have Proficiency.

Template parameters

Insert a linked icon.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Icon1

The file to display as an icon, without the File: prefix.

Stringrequired
Link2

Where to link to.

Page namerequired
Text3

Replaces the link text with this if specified.

Stringoptional
Widthw

Override the width of the image.

Numberoptional
Heighth

Override the height of the image.

Numberoptional
Sizesize

Set the size of the image to this by this.

Numberoptional
Blockblock

Whether to wrap the icon and link in a container HTML element.

Stringoptional
Gapgap

If 'block' is set, the exact gap to use between the icon and link.

Numberoptional
Nowrapnowrap

If specified, will add the nowrap css style to the span.

Stringoptional
Classclass

Any classes to add to the img

Stringoptional
Font sizefont size

Font size for the link.

Numberoptional
Separatorseparator

Separator between icon and link; default is NBSP.

Contentoptional