Template:Item Infobox: Difference between revisions

From Digimon Masters Online Wiki - DMO Wiki
Jump to navigation Jump to search
m (Undo revision 56899 by Tronirix (talk))
mNo edit summary
Line 1: Line 1:
<div class="itembox"{{#ifeq:{{{left}}}|1| style="float: left;"|}}>
<!-- intemTemplate start-->
<div class="itemheader">{{#arraydefine:classexist|normal,rare,characterbound,magic}}
<div class="itembox"{{#ifeq:{{{left}}}|1| style="float: left;"|}} style="display:none;">
[[File:{{#if:{{{pic|}}}|{{{pic}}}|{{{item}}}}}.png]] <span class="{{#if:{{{characterbound|}}}|characterbound|{{#if:{{{class|}}}|{{#arraysearch:classexist|{{lc:{{{class}}}}}||{{lc:{{{class}}}}}|normal}}|normal}}}}">{{#if:{{{item|}}}|{{{item}}}|{{PAGENAME}}}}</span>
    <!-- header start -->
</div>
    <div class="itemheader">{{#arraydefine:classexist|normal,rare,characterbound,magic}}[[File:{{#if:{{{pic|}}}|{{{pic}}}|{{{item}}}}}.png]]  
<hr style="margin-top: 0px;">
        <span class="{{#if:{{{characterbound|}}}|characterbound|{{#if:{{{class|}}}|{{#arraysearch:classexist|{{lc:{{{class}}}}}||{{lc:{{{class}}}}}|normal}}|normal}}}}">{{#if:{{{item|}}}|{{{item}}}|{{PAGENAME}}}}
<div class="iteminfo">{{#if:{{{boundonuse|}}}|
        </span>
<span class="itemspan" style="width: auto">Bounded when it's used</span>}}{{#if:{{{characterbound|}}}|
    </div>
<span class="itemspan characterbound">Character Bound</span>}}{{#if:{{{kind|}}}|
    <!-- end of header -->
<br /><span class="itemspan">Kind</span><span class="normal">{{{kind}}}</span>}}{{#if:{{{remaining|}}}|
   
<br /><span class="itemspan">Remaining</span><span class="normal">{{{remaining}}}</span>}}{{#if:{{{class|}}}|
    <hr style="margin-top: 0px; width:295px;">
<br /><span class="itemspan">Class</span><span class="normal">{{ucfirst:{{lc:{{{class}}}}}}} Item</span>}}{{#if:{{{target|}}}|
   
<br /><span class="itemspan">Target</span><span class="normal">{{{target}}}</span>}}{{#if:{{{limitation|}}}|
    <!-- intemInfo start -->
<br /><span class="itemspan">Tamer Limitation Lv</span><span class="normal">{{{limitation}}}</span>}}{{#if:{{{limited|}}}|
    <div class="iteminfo">{{#if:{{{boundonuse|}}}|
<br /><span class="itemspan">Limited Use</span><span class="normal">{{{limited}}}</span>}}{{#if:{{{cooldown|}}}|
            <span class="itemspan" style="width: auto">Bounded when it's used</span>}}{{#if:{{{characterbound|}}}|
            <span class="itemspan characterbound">Character Bound</span>}}{{#if:{{{kind|}}}|
            <br/>
            <span class="itemspan">Kind</span>
            <span class="normal">{{{kind}}}</span>}}{{#if:{{{remaining|}}}|
            <br/>
            <span class="itemspan">Remaining</span>
            <span class="normal">{{{remaining}}}</span>}}{{#if:{{{class|}}}|
            <br/>
            <span class="itemspan">Class</span>
            <span class="normal">{{ucfirst:{{lc:{{{class}}}}}}} Item</span>}}{{#if:{{{target|}}}|
            <br/>
            <span class="itemspan">Target</span>
            <span class="normal">{{{target}}}</span>}}{{#if:{{{limitation|}}}|
            <br/>
            <span class="itemspan">Tamer Limitation Lv</span>
            <span class="normal">{{{limitation}}}</span>}}{{#if:{{{limited|}}}|
            <br/>
            <span class="itemspan">Limited Use</span>
            <span class="normal">{{{limited}}}</span>}}{{#if:{{{cooldown|}}}|
            <hr style="width:295px;">
            <span class="itemspan">Cool Down</span>
            <span class="normal">{{{cooldown}}}</span>}}{{#if:{{{effect1|}}}|
            <br/>
            <hr style="width:295px;">
            <span class="itemspan normal" style="width: 100%;">{{{effect1}}}</span>
            <br/>}}{{#if:{{{effect2|}}}|
            <span class="itemspan normal" style="width: 100%;">{{{effect2}}}</span>
            <br/>}}{{#if:{{{effect3|}}}|
            <span class="itemspan normal" style="width: 100%;">{{{effect3}}}</span>
            <br/>}}{{#if:{{{desc|}}}|
            <hr style="width:295px;">
            <span class="description normal">{{{desc}}}</span>{{#if:{{{desctype|}}}|
            <span style="color: #{{#ifeq:{{lc:{{{class}}}}}|event|00fb02|{{#ifeq:{{lc:{{{class}}}}}|magic|77ff06|f9f902}}}};">{{{desctype}}}</span>}}}}{{#if:{{{refund|}}}|
            <hr style="width:295px;">
            <span class="itemspan">Refund Amount</span>
            <span class="normal">{{{refund}}}</span>
            <br/>{{#if:{{{scancost|}}}|
                <span class="itemspan">Scanning Cost</span>
                <span class="normal">{{{scancost}}}</span>}}}}{{#if:{{{buy|}}}|
            <hr style="width:295px;">
            <span class="itemspan">Buy for</span>
            <span class="normal">{{{buy}}}</span>
            <br/>{{#if:{{{sell|}}}|
                <span class="itemspan">Sell for</span>
                <span class="normal">{{{sell}}}</span>}}}}{{#if:{{{silk|}}}|
            <hr style="width:295px;">
            <span class="cash">Also a Cash Shop item.</span>
            <br/>
            <span class="itemspan"></span>
            <span class="normal">{{#if:{{{amount|}}}|{{{amount}}} {{ea}}}}{{#if:{{{day|}}}|{{{day}}} {{d}}}}- {{{silk}}} {{s}} / {{ps}}
            </span>{{#if:{{{silk2|}}}|
                <br/>
                <span class="itemspan" style="margin-top: 0px;"></span>
                <span class="normal">{{#if:{{{amount2|}}}|{{{amount2}}} {{ea}}}}{{#if:{{{day2|}}}|{{{day2}}} {{d}}}}- {{{silk2}}} {{s}} / {{ps}}
                </span>}}{{#if:{{{silk3|}}}|
                <br/>
                <span class="itemspan"></span>
                <span class="normal">{{#if:{{{amount3|}}}|{{{amount3}}} {{ea}}}}{{#if:{{{day3|}}}|{{{day3}}} {{d}}}} - {{{silk3}}} {{s}} / {{ps}}
                </span>}}}}


<hr>
    </div>
<span class="itemspan">Cool Down</span><span class="normal">{{{cooldown}}}</span>}}{{#if:{{{effect1|}}}|
    <!-- end of intemInfo -->
</div>
<!-- end of intemTemplate -->


<br />
<hr>
<span class="itemspan normal" style="width: 100%;">{{{effect1}}}</span><br />}}{{#if:{{{effect2|}}}|
<span class="itemspan normal" style="width: 100%;">{{{effect2}}}</span><br />}}{{#if:{{{effect3|}}}|
<span class="itemspan normal" style="width: 100%;">{{{effect3}}}</span><br />}}{{#if:{{{desc|}}}|


<hr>
<!-- intemTemplate example-->
<span class="description normal">{{{desc}}}</span> {{#if:{{{desctype|}}}|<span style="color: #{{#ifeq:{{lc:{{{class}}}}}|event|00fb02|{{#ifeq:{{lc:{{{class}}}}}|magic|77ff06|f9f902}}}};">{{{desctype}}}</span>}}
== Example of item editing ==
}}{{#if:{{{refund|}}}|


<hr>
<noinclude>
<span class="itemspan">Refund Amount</span><span class="normal">{{{refund}}}</span><br />{{#if:{{{scancost|}}}|
    <pre style="width: 770px;">  
<span class="itemspan">Scanning Cost</span><span class="normal">{{{scancost}}}</span>}}}}{{#if:{{{buy|}}}|
    {{Item Infobox
 
        |item=Aquatic DigiEgg
<hr>
        |class=MAGic
<span class="itemspan">Buy for</span><span class="normal">{{{buy}}}</span><br />{{#if:{{{sell|}}}|
        |characterbound=1
<span class="itemspan">Sell for</span><span class="normal">{{{sell}}}</span>}}}}{{#if:{{{silk|}}}|
        |kind=Scannable DigiEgg
 
        |remaining=3 Minute
<hr>
        |target=Digimon
<span class="cash">Also a Cash Shop item.</span><!-- <span class="normal">{{{silk}}} {{s}} / {{ps}}</span>--><br />
        |limitation=25
<span class="itemspan"></span><span class="normal">{{#if:{{{amount|}}}|{{{amount}}} {{ea}}}}{{#if:{{{day|}}}|{{{day}}} {{d}}}} - {{{silk}}} {{s}} / {{ps}}</span>{{#if:{{{silk2|}}}|
        |limited=Usable at all times
<br /><span class="itemspan" style="margin-top: 0px;"></span><span class="normal">{{#if:{{{amount2|}}}|{{{amount2}}} {{ea}}}}{{#if:{{{day2|}}}|{{{day2}}} {{d}}}} - {{{silk2}}} {{s}} / {{ps}}</span>}}{{#if:{{{silk3|}}}|
        |cooldown=3 Minute
<br /><span class="itemspan"></span><span class="normal">{{#if:{{{amount3|}}}|{{{amount3}}} {{ea}}}}{{#if:{{{day3|}}}|{{{day3}}} {{d}}}} - {{{silk3}}} {{s}} / {{ps}}</span>}}}}
        |effect1=HP 1000 Increase
 
        |effect2=DS 500 Increase
<!-- <span class="itemspan"></span><span class="normal">{{s}} / {{ps}}</span>}}<br />-->
        |effect3=MS 30% Increase
</div>
        |scancost=100{{m}}
</div>{{#ifeq:{{lc:{{{kind}}}}}|general consumable item|[[Category:Food]]}}
        |refund=1{{b}}
<noinclude>[[Item Example]]</noinclude>
        |buy=1{{t}} 500{{m}} 275{{b}}
 
        |sell=100{{t}} 200{{m}} 375{{b}}
<!--{| style="float: right; border-collapse: separate; border-padding: 10px 0px; border: 1px solid #ccc; min-width: 250px; max-width: 300px;"
        |desc=HP & DS restoring food
! class="tableheader" colspan="2" style="padding: 4px;" |{{#if:{{{item|}}}|{{{item}}}|{{PAGENAME}}}}
        |desctype=Recommended Level [Lv 41 - Lv 50]
|-
        |silk=100
| colspan="2" style="text-align: center;" |[[File:{{#if:{{{item|}}}|{{{item}}}|{{PAGENAME}}}}.png]]
        |day=10
|-
        |silk2=50
|'''Kind:'''||{{{kind}}}
        |amount2=20
|-
        |silk3=17
|'''Class:'''||{{{class}}}
        |amount3=100
|-
    }}
|'''Description:'''||{{{desc}}}
    </pre>
{{#if:{{{refund|}}}|
{{!}}-
{{!}}'''Refund:'''{{!}}{{!}}{{{refund}}}
{{!}}-
{{!}}'''Scanning Cost:'''{{!}}{{!}}{{{scancost}}}
{{!}}-
}}{{#if:{{{buy|}}}|
{{!}}-
{{!}}'''Buy:'''{{!}}{{!}}{{{buy}}}
{{!}}-
{{!}}'''Sell:'''{{!}}{{!}}{{{sell}}}
{{!}}-
}}{{#if:{{{droppedby|}}}|
{{!}}-
{{!}}'''Dropped by:'''{{!}}{{!}}{{{droppedby}}}
}}
|}--><noinclude>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
<pre>
|item=Mysterious Top Quality Egg
|kind=Scannable DigiEgg
|class=Normal
|desc=Unknown DigiEgg
|refund=100{{b}}
|scancost=1{{m}}
|buy=
|sell=
</pre>
</noinclude>
</noinclude>
[[Category:Item]]
[[Category:Item]]
<!-- end of example-->

Revision as of 00:22, 11 July 2019


Example of item editing

 
    {{Item Infobox
        |item=Aquatic DigiEgg
        |class=MAGic
        |characterbound=1
        |kind=Scannable DigiEgg
        |remaining=3 Minute
        |target=Digimon
        |limitation=25
        |limited=Usable at all times
        |cooldown=3 Minute
        |effect1=HP 1000 Increase
        |effect2=DS 500 Increase
        |effect3=MS 30% Increase
        |scancost=100{{m}}
        |refund=1{{b}}
        |buy=1{{t}} 500{{m}} 275{{b}}
        |sell=100{{t}} 200{{m}} 375{{b}}
        |desc=HP & DS restoring food
        |desctype=Recommended Level [Lv 41 - Lv 50]
        |silk=100
        |day=10
        |silk2=50
        |amount2=20
        |silk3=17
        |amount3=100
    }}