Template:Medium rarity item: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
No edit summary
(add alias parameter, templatedata)
Line 1: Line 1:
<includeonly><onlyinclude>{{RarityItem|{{{1}}}|30|alias={{{alias|}}}}}</onlyinclude></includeonly><noinclude>
<includeonly><onlyinclude>{{RarityItem|{{{1}}}|30|alias={{{alias|}}}{{{2|}}} }}</onlyinclude></includeonly><noinclude>{{documentation|content=
As [[Template:RarityItem]] but sets the default size to 30 instead of 25.
As [[Template:RarityItem]] but sets the default size to 30 instead of 25.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
 
== Template data ==
<templatedata>
{
"params": {
"1": {
"label": "item name",
"description": "Sets the item name to look up.",
"required": true
},
"2": {
"label": "alias2",
"description": "An alternative for the \"alias\" parameter. Sets the display name of the link."
},
"alias": {
"description": "Sets the display name of the link"
}
},
"description": "Displays an item's rarity and item from a cargo table lookup.",
"paramOrder": [
"alias",
"1",
"2"
],
"format": "inline"
}
</templatedata>
}}</noinclude>

Revision as of 17:54, 16 November 2023

Template documentation

As Template:RarityItem but sets the default size to 30 instead of 25.

Template data

Displays an item's rarity and item from a cargo table lookup.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
aliasalias

Sets the display name of the link

Unknownoptional
item name1

Sets the item name to look up.

Unknownrequired
alias22

An alternative for the "alias" parameter. Sets the display name of the link.

Unknownoptional