Template:Potion

From The Magical Mixture Mill Wiki
Jump to navigation Jump to search
Template-info.svg Documentation The documentation below is transcluded from Template:Potion/doc.

This template is used to create inline colored potion images. It uses a direct image call on a potion bottle, and CSS mask images for a potion mask and optional glow mask. All of these image types can be found in Category:Potion icons.

Usage

Parameters

Used to create potion bottles with colored mixtures.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Mixture Colorcolor

The color of the mixture. Uses any valid CSS color format.

Example
#325AFF
Stringrequired
Bottle Typetype

The type of bottle to use

Suggested values
classic elegant fancy quality robust
Default
classic
Stringsuggested
Glow ColorglowColor

The color of the glow around the bottle. Uses any valid CSS color format. If left blank, there will be no glow.

Stringoptional
Bottle Sizesize

Determines the size of the bottle image. Uses standard MediaWiki image size format.

Default
64px
Stringoptional
Linklink

A page for the potion to link to. There will be no link if left blank.

Page nameoptional

Examples

{{Potion|#325AFF}}
{{Potion|red|robust|glowColor=blue}}
{{Potion|#FF69B4|fancy}}
{{Potion|#FF4B4B|elegant|48px}}
{{Potion|color=#CD853F|type=quality|size=72px}}

produces

InventoryIcon Potion Classic.png
InventoryIcon Potion Robust.png
InventoryIcon Potion Fancy.png
InventoryIcon Potion Elegant.png
InventoryIcon Potion Quality.png