4,977
editsAd placeholder
User:Llamageddon/RrtyItem: Difference between revisions
Jump to navigation
Jump to search
m
no edit summary
Llamageddon (talk | contribs) m (→List Layout) |
Llamageddon (talk | contribs) mNo edit summary |
||
Line 34: | Line 34: | ||
| 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; border-radius: 5px; border: 2px solid {{#lvar:cols}};">}} | {{#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-radius: 5px; border: 2px solid {{#lvar:cols}};">}} | ||
}}{{#lvar:spna}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}} {{#lvar:sufx}}|{{#lvar:pixl}}]] | [[File:{{#lvar:item}} {{#lvar:sufx}}|{{#lvar:pixl}}| link={{#lvar:link}}]]</span> {{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | [[{{#lvar:link}}|{{#lvar:text}}]]}} }}</includeonly><noinclude>__NOTOC__ | }}{{#lvar:spna}}{{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}} {{#lvar:sufx}}|{{#lvar:pixl}}]] | [[File:{{#lvar:item}} {{#lvar:sufx}}|{{#lvar:pixl}}|{{#Ifeq: {{#lvar:link}} | item | link={{#lvar:item}} | link={{#lvar:link}}}}]]</span> {{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | {{#Ifeq: {{#lvar:text}} | notext | | [[{{#lvar:link}}|{{#lvar:text}}]]}}}} }}</includeonly><noinclude>__NOTOC__ | ||
This is a proof of concept 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. | This is a proof of concept 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. | ||
Line 42: | Line 42: | ||
== Examples == | == Examples == | ||
{{C|<nowiki>{{User:Llamageddon/RrtyItem}}</nowiki>}} Only first parameter defined. | {{C|<nowiki>{{User:Llamageddon/RrtyItem|Mace}}</nowiki>}} | ||
Only first parameter defined. | |||
{{User:Llamageddon/RrtyItem|Mace}} | {{User:Llamageddon/RrtyItem|Mace}} | ||
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Mace|x|x| | {{C|<nowiki>{{User:Llamageddon/RrtyItem|Mace|x|x|List_of_Weapons#Common|A common mace.}}</nowiki>}} | ||
Unrecognised values in 2nd & 3rd. Link and link text in 4th and 5th. | |||
{{User:Llamageddon/RrtyItem|Mace|x|x|List_of_Weapons#Common|A common mace.}} | |||
{{User:Llamageddon/RrtyItem| | {{C|<nowiki>{{User:Llamageddon/RrtyItem|Longsword|uncommon|tt|List_of_Weapons#Uncommon|notext|small}}</nowiki>}} | ||
Using a tooltip (large "faded") image, {{User:Llamageddon/Highlight|notext}} in 5th, and {{User:Llamageddon/Highlight|small}} in 6th. | |||
{{User:Llamageddon/RrtyItem|Longsword|uncommon|tt|List_of_Weapons#Uncommon|notext|small}} | |||
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}}</nowiki>}} | |||
Blank image type. | |||
{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}} | {{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}} | ||
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Club|veryrare|tt|item}}</nowiki>}} Using {{User:Llamageddon/Highlight|tt}} and {{User:Llamageddon/Highlight|item}} keywords in 3rd & 4th parameters. | {{C|<nowiki>{{User:Llamageddon/RrtyItem|Club|veryrare|tt|item}}</nowiki>}} | ||
Using {{User:Llamageddon/Highlight|tt}} and {{User:Llamageddon/Highlight|item}} keywords in 3rd & 4th parameters. | |||
{{User:Llamageddon/RrtyItem|Club|veryrare|tooltip|item}} | {{User:Llamageddon/RrtyItem|Club|veryrare|tooltip|item}} | ||
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Warhammer|legendary}}</nowiki>}} | {{C|<nowiki>{{User:Llamageddon/RrtyItem|Warhammer|legendary|||medium}}</nowiki>}} | ||
Larger than native icon resolution defined. | |||
{{User:Llamageddon/RrtyItem|Warhammer|legendary||||medium}} | |||
{{User:Llamageddon/RrtyItem| | {{C|<nowiki>{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|story|tooltip|item||small}}</nowiki>}} | ||
Using shortcuts for rarity and image type, and {{User:Llamageddon/Highlight|item}} keyword in 4th to copy item name as text link. | |||
{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item||small}} | |||
{{C|<nowiki>{{User:Llamageddon/RrtyItem}}</nowiki>}} | |||
Missing page/icon links and unrecognised or invalid values. | |||
{{User:Llamageddon/RrtyItem|Missing Link|Missing Link|Missing Link|Missing Link|Missing Link}} | {{User:Llamageddon/RrtyItem|Missing Link|Missing Link|Missing Link|Missing Link|Missing Link|Missing Link}} | ||