User:Llamageddon/RrtyItem: Difference between revisions
Llamageddon (talk | contribs) mNo edit summary |
Llamageddon (talk | contribs) |
||
Line 108: | Line 108: | ||
''Default/null value'': common = #{{InfoBlob|{{Color|#48484899|48484899}}}} | ''Default/null value'': common = #{{InfoBlob|{{Color|#48484899|48484899}}}} | ||
:({{C|u}}) {{C|uncommon}} = #{{InfoBlob|{{Color|#01BD3999|01BD3999}}}} | |||
:({{C|r}}) {{C|rare}} = #{{InfoBlob|{{Color|#01BFFF99|01BFFF99}}}} | |||
:({{C|v}}) {{C|veryrare}} = #{{InfoBlob|{{Color|#D1017B99|D1017B99}}}} | |||
:({{C|l}}) {{C|legendary}} = #{{InfoBlob|{{Color|#B7861D99|B7861D99}}}} | |||
:({{C|s}}) {{C|story}} = #{{InfoBlob|{{Color|#FF590199|FF590199}}}} | |||
=== Image Type === | === Image Type === | ||
Line 118: | Line 118: | ||
''Default/null value'': ({{C|ii}}) = Item Icon.png | ''Default/null value'': ({{C|ii}}) = Item Icon.png | ||
:({{C|tt}}) {{C|tooltip}} = Icon.png | |||
:({{C|im}}) {{C|unfaded}} = Item Image.png | |||
=== Link and Text Keywords === | === Link and Text Keywords === | ||
''4th parameter'' | '''4th parameter''' | ||
:{{C|item}} = Copy in the item name (1st parameter) as the link text. | |||
''5th parameter'' | '''5th parameter''' | ||
:{{C|notext}} = Don't use any custom link (4th parameter) as a text link. | |||
=== Image Size === | === Image Size === | ||
Line 132: | Line 132: | ||
''Default/null value'': {{C|inline}} = 25px | ''Default/null value'': {{C|inline}} = 25px | ||
:{{C|large}} = 380px (''Native "faded" tooltip resolution'') | |||
:{{C|medium}} = 144px (''Most common native "unfaded" tooltip resolution'') | |||
:{{C|small}} = 40px (''Native item icon resolution'') | |||
:{{C|inline}} = 25px (''Typical size for inline image use'') | |||
</noinclude> | </noinclude> |
Revision as of 19:38, 8 September 2023
This is a template for colouring icon borders depending on the value of a 'rarity' variable. The icon size is set to the standard 25px
maximum height for inline use by default. _Item_Icon.png
is set as the default image type.
The rarity is defined by the second paramater: common, uncommon, rare, veryrare, legendary, or story. If left blank, it will default to dark grey (common) for the border.
Examples
{{User:Llamageddon/RrtyItem|Mace}}
Only first parameter defined.
{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}
Using shortcuts for rarity and image type, and item keyword in 4th to copy item name as text link.
{{User:Llamageddon/RrtyItem|Mace|v|x|List of Weapons#Very Rare|A very rare mace.}}
Unrecognised value in 3rd. Link and link text in 4th and 5th.
{{User:Llamageddon/RrtyItem|Longsword|u|tt|List of Weapons#Uncommon|notext|small}}
Using a tooltip (large "faded") image. Shortcuts in 2nd and 3rd, custom link in 4th, keyword notext in 5th, and small in 6th.
{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}}
Blank image type.
{{User:Llamageddon/RrtyItem|Warhammer|legendary||||medium}}
Larger than native icon resolution defined.
{{User:Llamageddon/RrtyItem|Missing Link|Link Missing|Missing Link|Link Missing|Missing Link|Link Missing}}
Missing page/icon links and unrecognised or invalid values.
Shortcuts and Keywords
Rarity and Colour
2nd parameter
Default/null value: common = #48484899
- (
u
)uncommon
= #01BD3999 - (
r
)rare
= #01BFFF99 - (
v
)veryrare
= #D1017B99 - (
l
)legendary
= #B7861D99 - (
s
)story
= #FF590199
Image Type
3rd parameter
Default/null value: (ii
) = Item Icon.png
- (
tt
)tooltip
= Icon.png - (
im
)unfaded
= Item Image.png
Link and Text Keywords
4th parameter
item
= Copy in the item name (1st parameter) as the link text.
5th parameter
notext
= Don't use any custom link (4th parameter) as a text link.
Image Size
6th parameter
Default/null value: inline
= 25px
large
= 380px (Native "faded" tooltip resolution)medium
= 144px (Most common native "unfaded" tooltip resolution)small
= 40px (Native item icon resolution)inline
= 25px (Typical size for inline image use)