Ad placeholder

User:Llamageddon/RrtyItem: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 45: Line 45:
| inline = 25px  
| inline = 25px  
| 25px }} }}
| 25px }} }}
{{#lvardef: spna |  
{{#lvardef: spna | <span
class="bg3wiki-icon-gradient-{{#lvar:scol}}"
style="display: inline-block;
style="display: inline-block;
vertical-align: middle;   
vertical-align: middle;   
height: {{#lvar:pixl}};  
height: {{#lvar:pixl}};  
width: {{#lvar:pixl}};   
width: {{#lvar:pixl}};   
overflow: hidden;  
overflow: hidden;
border: 1px solid {{#lvar:cols}};
border: 1px solid {{#lvar:cols}};"
class="bg3wiki-rarity-gradient-{{#lvar:scol}}
">
}}
}}
}}
{{clear}} {{#lvar:spna}} {{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}}&nbsp; {{#lvar:sufx}} | {{#lvar:pixl}}]]</span>  
<span {{#lvar:spna}}"> {{#Ifeq: {{#lvar:link}} | | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|{{#lvar:pixl}}]]</span> | [[File:{{#lvar:item}}&nbsp;{{#lvar:sufx}}|{{#lvar:pixl}}|{{#Ifeq: {{#lvar:link}} | item | link={{#lvar:item}} | link={{#lvar:link}}}}]]</span>&nbsp;<span>{{#Ifeq: {{#lvar:link}} | item | [[{{#lvar:item}}]] | {{#Ifeq: {{#lvar:text}} | notext | | [[{{#lvar:link}}|{{#lvar:text}}]]}}}}<span>}}</includeonly><noinclude>__NOTOC__
| [[File:{{#lvar:item}}&nbsp; {{#lvar:sufx}} | {{#lvar:pixl}} | {{#Ifeq: {{#lvar:link}} | item | link={{#lvar:item}} | link={{#lvar:link}}}}]]</span>&nbsp; <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.
Line 65: Line 67:
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Mace}}</nowiki>}}  
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Mace}}</nowiki>}}  


Only first parameter defined.
:Only first parameter defined.


{{User:Llamageddon/RrtyItem|Mace}}
{{User:Llamageddon/RrtyItem|Mace}}
Line 72: Line 74:
{{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 {{InfoBlob|item}} keyword in 4th to copy item name as text link.
: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 79: Line 81:
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Mace|v|x|List of Weapons#Very Rare|A very rare mace.}}</nowiki>}}  
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Mace|v|x|List of Weapons#Very Rare|A very rare mace.}}</nowiki>}}  


Unrecognised value in 3rd. Link and link text in 4th and 5th.
:Unrecognised value in 3rd. Link and link text in 4th and 5th.


{{User:Llamageddon/RrtyItem|Mace|v|x|List of Weapons#Very Rare|A very rare mace.}}
{{User:Llamageddon/RrtyItem|Mace|v|x|List of Weapons#Very Rare|A very rare mace.}}
Line 86: Line 88:
{{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 {{InfoBlob|notext}} in 5th, and {{InfoBlob|small}} in 6th.
: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 95:
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}}</nowiki>}}
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}}</nowiki>}}


Blank image type.
:Blank image type.


{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}}
{{User:Llamageddon/RrtyItem|Longbow|rare||Longbows}}
Line 100: Line 102:
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Warhammer|legendary||||medium}}</nowiki>}}
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Warhammer|legendary||||medium}}</nowiki>}}


Larger than native icon resolution defined.
:Larger than native icon resolution defined.


{{User:Llamageddon/RrtyItem|Warhammer|legendary||||medium}}
{{User:Llamageddon/RrtyItem|Warhammer|legendary||||medium}}
Line 107: Line 109:
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Missing Link|Link Missing|Missing Link|Link Missing|Missing Link|Link Missing}}</nowiki>}}  
{{C|<nowiki>{{User:Llamageddon/RrtyItem|Missing Link|Link Missing|Missing Link|Link Missing|Missing Link|Link Missing}}</nowiki>}}  


Missing page/icon links and unrecognised or invalid values.
:Missing page/icon links and unrecognised or invalid values.


{{User:Llamageddon/RrtyItem|Missing Link|Link Missing|Missing Link|Link Missing|Missing Link|Link Missing}}
{{User:Llamageddon/RrtyItem|Missing Link|Link Missing|Missing Link|Link Missing|Missing Link|Link Missing}}
Line 153: Line 155:


*{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}
*{{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}
* {{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}
** {{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}
* {{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}
** {{User:Llamageddon/RrtyItem|Armour of Uninhibited Kushigo|s|tt|item}}
</noinclude>
</noinclude>

Navigation menu