-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathitembox_template.wikitext
63 lines (50 loc) · 3.01 KB
/
itembox_template.wikitext
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<noinclude>{{Item|Liberator|type=Weapon|rarity=Epic|grade=5|level=89|banner1=ExWeapon|banner2=Collection|caption=[[Liberator]]}}</noinclude>
<includeonly><!--
-->{{#if: {{{caption|}}} |
<div class="itembox-container {{{container-class|}}}">
}}<!--
--><div class="itembox {{lc: {{{rarity|}}} }} {{{class|}}} {{{animation|}}}"><!--#
#### Elements of Itembox ####
#-->{{#if: {{{level|}}} |
<div class="level" data-nosnippet aria-hidden="true"><!--
--><span class="level-text">Lv.</span><span class="level-number">{{{level}}}</span>
</div>
}}<!--#
#-->{{#if: {{{banner|{{{banner1|}}}}}} |
<div class="banner" data-nosnippet aria-hidden="true"><!--
-->[[File:Icon Banner {{{banner|{{{banner1}}}}}}.png|alt=Banner|link=]]{{#if: {{{banner2|}}} | [[File:Icon Banner {{{banner2}}}.png|alt=Banner|link=]] }}
</div>
}}<!--#
#-->{{#if: {{{1|{{{file|}}}}}} |
<div class="item"><!--
-->{{#if: {{{smallicon|}}}<!--
---- smallicon passed; use different markup for desktop and mobile ----
-->|{{#ifeq: {{IsDesktop}} | desktop<!--
---- desktop skin ----
-->|[[File:{{{type|}}} {{{1|}}}.png|{{#if: {{{link|}}} | link={{{link}}} }}|alt={{{alt|<!-- auto-generated alt -->{{{amount|}}} {{{1|}}} {{#if: {{{level|{{{grade|{{{rarity|}}}}}}}}} | ({{#sub: <!--trim whitespace and last comma-->{{#if:{{{level|}}}|Level {{{level}}},}} {{#if:{{{grade|}}}|Grade {{{grade|}}},}} {{#if:{{{rarity|}}}|{{ucfirst:{{{rarity|}}}}},}} | 0 | -1 }}) }} <!-- /auto-generated alt -->}}}]]<!--
---- mobile skin ----
-->|{{#tag: gallery | {{{type|}}} {{{1|}}}.png{{!}}{{#if: {{{link|}}} | link={{{link}}} }}{{!}}alt={{{alt|<!-- auto-generated alt -->{{{amount|}}} {{{1|}}} {{#if: {{{level|{{{grade|{{{rarity|}}}}}}}}} | ({{#sub: {{#if:{{{level|}}}|Level {{{level}}},}} {{#if:{{{grade|}}}|Grade {{{grade|}}},}} {{#if:{{{rarity|}}}|{{ucfirst:{{{rarity|}}}}},}} | 0 | -1 }}) }} <!-- /auto-generated alt -->}}}}}<!--
-->}}<!--
---- smallicon not passed; use single markup ----
-->|{{{file|[[File:{{{type|}}} {{{1|}}}.png|{{#if: {{{link|}}} | link={{{link}}} }}|alt={{{alt|<!-- auto-generated alt -->{{{amount|}}} {{{1|}}} {{#if: {{{level|{{{grade|{{{rarity|}}}}}}}}} | ({{#sub: {{#if:{{{level|}}}|Level {{{level}}},}} {{#if:{{{grade|}}}|Grade {{{grade|}}},}} {{#if:{{{rarity|}}}|{{ucfirst:{{{rarity|}}}}},}} | 0 | -1 }}) }} <!-- /auto-generated alt -->}}}]]}}}<!--
-->}}
</div>
}}<!--#
#-->{{#if: {{{grade|}}} |
<div class="grade" data-nosnippet aria-hidden="true"><!--
-->[[File:Icon EquipStar {{{rarity|}}} {{{grade}}}.png|alt=Grade|link=]]
</div>
}}<!--#
#-->{{#if: {{{amount|}}} |
<div class="amount" data-nosnippet aria-hidden="true">{{{amount}}}</div>
}}<!--#
#-->{{#ifeq: {{{{rarity|}}} | Exclusive |
<div class="exclusive-banner" data-nosnippet aria-hidden="true"><!--
-->[[File:Icon Banner Exclusive Artifact.png|alt=Exclusive Artifact Banner|link=]]
</div>
}}
</div><!--
-->{{#if: {{{caption|}}} |
<div class="itembox-caption">{{{caption}}}</div>
</div>
}}</includeonly><noinclude>{{Documentation}}</noinclude>