User:Llamageddon/Test: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>{{trim|
<includeonly>{{trim|
{{#lvardef: exlk | {{{1 |}}} }}
{{#lvardef: icon | {{{1 |}}} Item Icon.png }}
{{#lvardef: text | {{{2 | {{{1}}} }}} }}
{{#lvardef: text | {{{2 | {{{1}}} }}} Item Icon.png }}
{{#lvardef: rrty | {{{3 |}}} }}
{{#lvardef: rrty | {{{3 |}}} }}
{{#lvardef: void | {{#if: {{#switch: {{{3}}} | common = common | uncommon = uncommon | rare = rare | very rare = very rare | legendary = legendary | story = story }} | {{{3 |}}} | common |}} }}
{{#lvardef: stor | {{#If: {{#Switch: {{{3}}} | common = common | uncommon = uncommon | rare = rare | very rare = very rare | legendary = legendary | story = story }} | {{{3 |}}} | norare |}} }}
{{#lvardef: tchk | {{#if: {{#switch: {{{2}}} | common = common | uncommon = uncommon | rare = rare | very rare = very rare | legendary = legendary | story = story }} | 0 | 1 }} }}
{{#lvardef: mode | {{#Ifeq: {{#lvar:rrty}} | {{#If: {{#Switch: {{{2}}} | common = common | uncommon = uncommon | rare = rare | very rare = very rare | legendary = legendary | story = story }} | 0 | 1 }} | 1 }} }}
{{#lvardef: spna | <span style="display: inline-block; vertical-align: middle; width: 25px; height: 25px; overflow: hidden;">}}
{{#lvardef: spna | <span style="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; padding: 4px 0px 6px 0px; max-width: 25px; border-radius: 5px; border: 2px solid {{#Switch: {{#lvar:rrty}}
}}<span class="bg3wiki-div-border bg3wiki-icon-colour-{{#ifeq: {{#lvar:rrty}} | very rare | veryrare | {{#ifeq: {{#lvar:rrty}} | | {{#lvar:void}} |{{#var:rrty}} }} }}"> {{#lvar:spna}}[[File:{{#lvar:exlk}} Icon.png|25px]]</span></span>&nbsp;{{#ifeq: {{#lvar:tchk}} | 1 | [[{{#lvar:text}}]] | [[{{#lvar:exlk}}]] }} Textcheck is {{#lvar:tchk}} {{Rarity|{{#lvar:void}}}}</includeonly><noinclude>
| common = #1B1A1999
== Header ==
| uncommon = #00491599
| rare = #00374999
| veryrare = #54003299
| legendary = #563E0D99
| story = #561D0099
| #1B1A1999 }};">}}
{{#lvardef: spnb | <span style="display: inline-block; vertical-align: middle; width: 25px; height: 25px; overflow: hidden;">}}
}}{{#lvar:spna}}{{#lvar:spnb}}[[File:{{#lvar:text}}|25px]]</span></span>&nbsp;[[{{#lvar:text}}]] | [[{{#lvar:icon}}]]&nbsp;Textcheck is {{#lvar:stor}} {{Rarity|{{#lvar:mode}} }}</includeonly><noinclude>
== Debug ==
<nowiki>{{User:Llamageddon/Test|A|B|Rarevalue|Xvalue|Zvalue}} {{#lvar:icon}} {{#lvar:text}} {{#lvar:tchk}} {{#lvar:tchk}} {{#lvar:tchk}}</nowiki>
 
{{User:Llamageddon/Test|A|B|Rarevalue|Xvalue|Zvalue}} {{#lvar:icon}} {{#lvar:text}} {{#lvar:tchk}} {{#lvar:tchk}} {{#lvar:tchk}}
 
== Examples ==
<nowiki>{{Icon|{{#lvar:exlk}} Icon.png}}</nowiki>
<nowiki>{{Icon|{{#lvar:exlk}} Icon.png}}</nowiki>



Revision as of 14:08, 5 September 2023

Debug

{{User:Llamageddon/Test|A|B|Rarevalue|Xvalue|Zvalue}} {{#lvar:icon}} {{#lvar:text}} {{#lvar:tchk}} {{#lvar:tchk}} {{#lvar:tchk}}

File:B Item Icon.png B Item Icon.png | A Item Icon.png Textcheck is norare Rarity: Common

Examples

{{Icon|{{#lvar:exlk}} Icon.png}}

File:Icon.png


{{User:Llamageddon/Test|Club|Mace|uncommon}}

Mace Item Icon.png Mace Item Icon.png | Club Item Icon.png Textcheck is uncommon Rarity: Common

Mace Item Icon.png Mace Item Icon.png | Club Item Icon.png Textcheck is uncommon Rarity: Common


{{User:Llamageddon/Test|Club|{{blank}}|rare}}

[[File: Item Icon.png|25px]] [[ Item Icon.png]] | Club Item Icon.png Textcheck is rare Rarity: Common


{{User:Llamageddon/Test|Club|Mace|very rare}}

Mace Item Icon.png Mace Item Icon.png | Club Item Icon.png Textcheck is very rare Rarity: Common


{{User:Llamageddon/Test|Club|rare}}

File:Rare Item Icon.png rare Item Icon.png | Club Item Icon.png Textcheck is norare Rarity: Common


{{User:Llamageddon/Test|Wrong|Mace|legendary}}

Mace Item Icon.png Mace Item Icon.png | Wrong Item Icon.png Textcheck is legendary Rarity: Common


{{User:Llamageddon/Test|Club|Mace|wrong}}

Mace Item Icon.png Mace Item Icon.png | Club Item Icon.png Textcheck is norare Rarity: Common


{{User:Llamageddon/Test|||}}

File:Item Icon.png Item Icon.png | Item Icon.png Textcheck is norare Rarity: Common


{{User:Llamageddon/Test|{{blank}}|{{blank}}|{{blank}}}}

[[File: Item Icon.png|25px]] [[ Item Icon.png]] | [[ Item Icon.png]] Textcheck is norare Rarity: Common