Template:Rarity item: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
No edit summary
(New demo template)
Line 10: Line 10:
|override_rarity={{{override_rarity|}}}
|override_rarity={{{override_rarity|}}}
}}</onlyinclude></includeonly><noinclude>
}}</onlyinclude></includeonly><noinclude>
{| class="wikitable"
|-
|<code><nowiki>{{RarityItem|Potion of Supreme Healing}}</nowiki></code> || {{RarityItem|Potion of Supreme Healing}}
|-
|<code><nowiki>{{RarityItem|Potion of Supreme Healing|40}}</nowiki></code> || {{RarityItem|Potion of Supreme Healing|40}}
|-
|<code><nowiki>{{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}}</nowiki></code> || {{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}}
|-
|<code><nowiki>{{RarityItem|Leather Armour|uid=UNI_Leather_Minsc}}</nowiki></code> || {{RarityItem|Leather Armour|uid=UNI_Leather_Minsc}}
|}


See [[Template:ItemIcon/Family]] for more variations of ItemIcon.
See [[Template:ItemIcon/Family]] for more variations of ItemIcon.
Examples:
* {{RarityItem|Handmaiden's Mace}}
* {{RarityItem|Handmaiden's Mace|override_icon=Ring G Faded.png|override_rarity=uncommon}} - with an alternative icon


Other options
Other options
Line 32: Line 17:
* [[Template:MdRarityItem]] - sets the default size to 30 instead of 25
* [[Template:MdRarityItem]] - sets the default size to 30 instead of 25
* [[Template:SmRarityItem]] - sets the default size to 20 instead of 25
* [[Template:SmRarityItem]] - sets the default size to 20 instead of 25
== Examples ==
{{Template demo
| style = table
| <nowiki>{{RarityItem|Potion of Supreme Healing}}</nowiki>
| <nowiki>{{RarityItem|Potion of Supreme Healing|40}}</nowiki>
| <nowiki>{{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}}</nowiki>
| <nowiki>{{RarityItem|Leather Armour|uid=UNI_Leather_Minsc}}</nowiki>
| <nowiki>{{RarityItem|Handmaiden's Mace|override_icon=Ring G Faded.png|override_rarity=uncommon}}</nowiki>
}}


<templatedata>
<templatedata>

Revision as of 22:59, 19 July 2024


See Template:ItemIcon/Family for more variations of ItemIcon.

Other options

Examples

Markup Renders as
{{RarityItem|Potion of Supreme Healing}}
Potion of Supreme Healing
{{RarityItem|Potion of Supreme Healing|40}}
Potion of Supreme Healing
{{RarityItem|Potion of Supreme Healing|alias=Supremey Boi}}
Supremey Boi
{{RarityItem|Leather Armour|uid=UNI_Leather_Minsc}}
Leather Armour
{{RarityItem|Handmaiden's Mace|override_icon=Ring G Faded.png|override_rarity=uncommon}}
Handmaiden's Mace

Inserts an item's icon, rarity colours, and name into a page. Specialization of Template:ItemIcon.

Template parameters

ParameterDescriptionTypeStatus
name1

The name of the item

Page namerequired
size2

(optional) Size of the item's icon. Default 25

Suggested values
25 30 40
Numberoptional
uiduid

The uid of the item. If specified, will search by UID *instead of* item name. Must be specified with the name parameter as well.

Unknownoptional
aliasalias

(optional) If specified, renames link text to this.

Unknownoptional
override_iconoverride_icon

If specified, overrides the icon.

Unknownoptional
override_rarityoverride_rarity

If specified along with override_icon, sets the rarity.

Unknownoptional