Template:Equipment slot: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Created page with "<includeonly>{{#switch:{{{1|}}} | Amulet = {{#lvardef: icon | Amulets Icon.png}} | Cloak = {{#lvardef: icon | Cloaks Icon.png}} | Clothing | Armour = {{#lvardef: icon | Armour Icon.png}} | Gloves = {{#lvardef: icon | Gloves Icon.png}} | Camp Clothing | Overclothes = {{#lvardef: icon | Camp Clothing Icon.png}} | Camp Shoes | Overshoes = {{#lvardef: icon | Camp Shoes Icon.png}} | Footwear | Boots = {{#lvardef: icon | Boots Icon.png}} | Headgear = {{#lvardef: icon | Headgea...")
 
mNo edit summary
 
Line 9: Line 9:
| Headgear = {{#lvardef: icon | Headgear Icon.png}}
| Headgear = {{#lvardef: icon | Headgear Icon.png}}
| Light Source = {{#lvardef: icon | Light Source Icon.png}}
| Light Source = {{#lvardef: icon | Light Source Icon.png}}
| Main Hand Melee Weapon = {{#lvardef: icon | Main Hand Melee Weapon Icon.png}}
| Main Hand Melee = {{#lvardef: icon | Main Hand Melee Weapon Icon.png}}
| Main Hand Ranged Weapon = {{#lvardef: icon | Main Hand Ranged Weapon Icon.png}}
| Main Hand Ranged = {{#lvardef: icon | Main Hand Ranged Weapon Icon.png}}
| Musical Instruments | Musical Instrument = {{#lvardef: icon | Musical Instrument Icon.png}}
| Musical Instruments | Musical Instrument = {{#lvardef: icon | Musical Instrument Icon.png}}
| Off-Hand Melee Weapon = {{#lvardef: icon | Off-Hand Melee Weapon Icon.png}}
| Off-Hand Melee = {{#lvardef: icon | Off-Hand Melee Weapon Icon.png}}
| Ring = {{#lvardef: icon | Rings Icon.png}}
| Ring = {{#lvardef: icon | Rings Icon.png}}
| Undergarments | Underwear = {{#lvardef: icon | Underwear Icon.png}}
| Undergarments | Underwear = {{#lvardef: icon | Underwear Icon.png}}
Line 50: Line 50:
* {{Equipment slot|Headgear}}
* {{Equipment slot|Headgear}}
* {{Equipment slot|Light Source}}
* {{Equipment slot|Light Source}}
* {{Equipment slot|Main Hand Melee Weapon}}
* {{Equipment slot|Main Hand Melee}}
* {{Equipment slot|Main Hand Ranged Weapon}}
* {{Equipment slot|Main Hand Ranged}}
* {{Equipment slot|Musical Instrument}}
* {{Equipment slot|Musical Instrument}}
* {{Equipment slot|Off-Hand Melee Weapon}}
* {{Equipment slot|Off-Hand Melee}}
* {{Equipment slot|Ring}}
* {{Equipment slot|Ring}}
* {{Equipment slot|Underwear}}
* {{Equipment slot|Underwear}}
Line 85: Line 85:
"Headgear",
"Headgear",
                 "Light Source",
                 "Light Source",
"Main Hand Melee Weapon",
"Main Hand Melee",
"Main Hand Ranged Weapon",
"Main Hand Ranged",
"Musical Instrument",
"Musical Instrument",
"Off-Hand Melee Weapon",
"Off-Hand Melee",
"Ring",
"Ring",
"Undergarments",
"Undergarments",

Latest revision as of 09:05, 8 November 2024

Template documentation

Insert a link to one of the equipment slots, accompanied by the associated icon.

Usage

This is intended mainly for lists, not in-line in body content as per the Style Manual. The slot name is case sensitive and needs to exactly match.

Examples

Example Markup Renders as
Basic usage
{{Equipment slot|Clothing}}
Clothing Clothing
Adjusted icon size
{{Equipment slot|Ring|w=40}}
Ring Ring
Link alias
{{Equipment slot|Underwear|Undergarments}}
Undergarments Undergarments
Alias and adjusted size
{{Equipment slot|Headgear|Helmet|w=20}}
Helmet Helmet
Unknown slot
{{Equipment slot|Socks}}
Socks

Exhaustive list

For sanity check:

See also

Template data

Insert a pre-formatted link and icon to an equipment slot.

Template parameters

ParameterDescriptionTypeStatus
equipment slot1

The equipment slot you want to link to. Subclasses will automatically insert the parent class name for you.

Suggested values
Amulet Cloak Clothing Armour Gloves Camp Clothing Overclothes Camp Shoes Overshoes Footwear Boots Headgear Light Source Main Hand Melee Main Hand Ranged Musical Instrument Off-Hand Melee Ring Undergarments Underwear
Stringrequired
Alias2

A user-defined alias to be shown instead of the slot.

Stringoptional
icon sizew

(Optional) The size of the icon to display. Default is 25 (pixels).

Suggested values
25 35
Numberoptional