4,977
editsMore actions
m
Testing out "WTP" colours as primary.
Llamageddon (talk | contribs) mNo edit summary |
Llamageddon (talk | contribs) m (Testing out "WTP" colours as primary.) |
||
Line 7: | Line 7: | ||
{{#lvardef: size | {{{6 |}}} }} | {{#lvardef: size | {{{6 |}}} }} | ||
{{#lvardef: cols | {{#switch: {{#lvar:rrty}} | {{#lvardef: cols | {{#switch: {{#lvar:rrty}} | ||
| common = # | | common = #48484899 | ||
| uncommon = # | | uncommon = #01BD3999 | ||
| u = # | | u = #01BD3999 | ||
| rare = # | | rare = #01BFFF99 | ||
| r = # | | r = #01BFFF99 | ||
| veryrare = # | | veryrare = #D1017B99 | ||
| v = # | | v = #D1017B99 | ||
| legendary = # | | legendary = #B7861D99 | ||
| l = # | | l = #B7861D99 | ||
| story = # | | story = #FF590199 | ||
| s = # | | s = #FF590199 | ||
| # | | #48484899 }} }} | ||
{{#lvardef: sufx | {{#switch: {{#lvar:file}} | {{#lvardef: sufx | {{#switch: {{#lvar:file}} | ||
| ii = Item Icon.png | | ii = Item Icon.png | ||
Line 32: | Line 32: | ||
| inline = 25px | | inline = 25px | ||
| 25px }} }} | | 25px }} }} | ||
{{#lvardef: spna | <span style="display: inline-block; box-shadow: rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset, rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset; background: #1B1A19; vertical-align: middle; height: {{#lvar:pixl}}; width: {{#lvar:pixl}}; overflow: hidden | {{#lvardef: spna | <span style="display: inline-block; box-shadow: rgba(0, 0, 0, 0.14) 3px 3px 6px 0px inset, rgba(0, 0, 0, 0.14) -3px -3px 6px 1px inset; background: #1B1A19; vertical-align: middle; height: {{#lvar:pixl}}; width: {{#lvar:pixl}}; overflow: hidden; border: 2px solid {{#lvar:cols}};"><span class="body.theme-dark-grey bg3wiki-tooltip-gradient-{{#lvar:rrty}}" style="display: inline-block; height: {{#lvar:pixl}}">}}}}{{#lvar:spna}} {{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}} {{#lvar:sufx}}|{{#lvar:pixl}}]]</span></span> | [[File:{{#lvar:item}} {{#lvar:sufx}}|{{#lvar:pixl}}|{{#Ifeq: {{#lvar:link}} | item | link={{#lvar:item}} | link={{#lvar:link}}}}]]</span></span> <span>{{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | {{#Ifeq: {{#lvar:text}} | notext | | [[{{#lvar:link}}|{{#lvar:text}}]]}}}}</span>}}</includeonly><noinclude>__NOTOC__ | ||
This is a template for colouring icon borders depending on the value of a 'rarity' variable. The icon size is set to the standard {{C|25px}} maximum height for inline use by default. {{C|_Item_Icon.png}} is set as the default image type. | This is a template for colouring icon borders depending on the value of a 'rarity' variable. The icon size is set to the standard {{C|25px}} maximum height for inline use by default. {{C|_Item_Icon.png}} is set as the default image type. | ||
The rarity is defined by the second paramater: {{ | The rarity is defined by the second paramater: {{InfoBlob|{{Color|#48484899|common}}}}, {{InfoBlob|{{Color|#01BD3999|uncommon}}}}, {{InfoBlob|{{Color|#01BFFF99|rare}}}}, {{InfoBlob|{{Color|#D1017B99|veryrare}}}}, {{InfoBlob|{{Color|#B7861D99|legendary}}}}, or {{InfoBlob|{{Color|#FF590199|story}}}}. If left blank, it will default to dark grey (common) for the border. | ||
== Examples == | == Examples == | ||
Line 49: | Line 49: | ||
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}</nowiki>}} | {{C|<nowiki>{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}</nowiki>}} | ||
Using shortcuts for rarity and image type, and {{ | Using shortcuts for rarity and image type, and {{InfoBlob|item}} keyword in 4th to copy item name as text link. | ||
{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}} | {{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}} | ||
Line 63: | Line 63: | ||
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Longsword|u|tt|List_of_Weapons#Uncommon|notext|small}}</nowiki>}} | {{C|<nowiki>{{User:Llamageddon/RrtyItem|Longsword|u|tt|List_of_Weapons#Uncommon|notext|small}}</nowiki>}} | ||
Using a tooltip (large "faded") image. Shortcuts in 2nd and 3rd, custom link in 4th, keyword {{ | Using a tooltip (large "faded") image. Shortcuts in 2nd and 3rd, custom link in 4th, keyword {{InfoBlob|notext}} in 5th, and {{InfoBlob|small}} in 6th. | ||
{{User:Llamageddon/RrtyItem|Longsword|u|tt|List_of_Weapons#Uncommon|notext|small}} | {{User:Llamageddon/RrtyItem|Longsword|u|tt|List_of_Weapons#Uncommon|notext|small}} | ||
Line 93: | Line 93: | ||
'''2nd parameter''' | '''2nd parameter''' | ||
''Default/null value'': common = #{{ | ''Default/null value'': common = #{{InfoBlob|{{Color|#48484899|48484899}}}} | ||
({{C|u}}) {{C|uncommon}} = #{{ | ({{C|u}}) {{C|uncommon}} = #{{InfoBlob|{{Color|#01BD3999|01BD3999}}}} | ||
({{C|r}}) {{C|rare}} = #{{ | ({{C|r}}) {{C|rare}} = #{{InfoBlob|{{Color|#01BFFF99|01BFFF99}}}} | ||
({{C|v}}) {{C|veryrare}} = #{{ | ({{C|v}}) {{C|veryrare}} = #{{InfoBlob|{{Color|#D1017B99|D1017B99}}}} | ||
({{C|l}}) {{C|legendary}} = #{{ | ({{C|l}}) {{C|legendary}} = #{{InfoBlob|{{Color|#B7861D99|B7861D99}}}} | ||
({{C|s}}) {{C|story}} = #{{ | ({{C|s}}) {{C|story}} = #{{InfoBlob|{{Color|#FF590199|FF590199}}}} | ||
=== Image Type === | === Image Type === |