Template:ImageText

From bg3.wiki
Jump to navigation Jump to search
Template documentation

This template allows you to add images on top of a piece of text.

The element will be an inline block, meaning several can appear in one line. You can give them all a specific width and height to get a nice consistent layout.

Examples

Standard width/height is 100:

Markup Renders as
{{ImageText | Frenzy Icon.png | Origins }}
Origins
Origins
{{ImageText | Defensive Duellist Icon.png | Backgrounds }}
Backgrounds
Backgrounds
{{ImageText | Passive Feature Generic Icon.png | Just a test with very very long text }}
Just a test with very very long text
Just a test with very very long text

Limiting width only; note this may cause the text to overflow as seen here:

Markup Renders as
{{ImageText | Frenzy Icon.png | Origins | w = 50 }}
Origins
Origins
{{ImageText | Defensive Duellist Icon.png | Backgrounds | w = 50 }}
Backgrounds
Backgrounds

Limiting height only:

Markup Renders as
{{ImageText | Frenzy Icon.png | Origins | h = 50 }}
Origins
Origins
{{ImageText | Defensive Duellist Icon.png | Backgrounds | h = 50 }}
Backgrounds
Backgrounds

Limiting width and height:

Markup Renders as
{{ImageText | Frenzy Icon.png | Origins | w = 50 | h = 50 }}
Origins
Origins
{{ImageText | Defensive Duellist Icon.png | Backgrounds | w = 50 | h = 50 }}
Backgrounds
Backgrounds

You might have noticed the text is often too wide for the icon... You can specify a font size:

Markup Renders as
{{ImageText | Frenzy Icon.png | Origins | w = 80 | h = 80 | font size = 80% }}
Origins
Origins
{{ImageText | Defensive Duellist Icon.png | Backgrounds | w = 80 | h = 80 | font size = 80% }}
Backgrounds
Backgrounds