Template:ItemTT: Difference between revisions

From Elwiki
No edit summary
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| cellpadding="5" border="0" width="600" style="color: white; background-color: black; text-align: left top; "
<includeonly>{{#css:
|-  
.item_tt {
|  
    padding: 1rem 1.5rem 1.5rem 1.5rem;
| |{{ItemName|{{{Name|}}}|{{{Rarity|}}}}}<br>{{#if:{{{Rarity|}}}|[{{{Rarity|}}}]}}
    background-color: rgb(30,30,30);
|-
    border: 1px solid;
| rowspan=4  |
    text-align: left;
| {{{Description|}}}
    position: relative;
|-
    max-width: 450px;
{{#if: {{{Resell|{{{Trade|{{{Bank|}}}}}}}}}|<nowiki/>
    color: white;
{{!}}}}
}
 
.item_tt .corner {
    position: absolute;
    top: 0;
    left: 0;
    user-select: none;
    pointer-events: none;
}
 
.item_tt p:last-child {
    margin-bottom: 0;
}
}}<div class="item_tt border-color">
<div class="corner">[[File:UI - Corner.png]]</div>
{{color|white|{{ItemName|{{{Name|}}}|{{{Rarity|}}}}}}}<br>{{color|white|{{#if:{{{Rarity|}}}|[{{{Rarity|}}}]}}}}
<div>{{color|white|{{{Description|}}}}}</div>
{{#switch:{{{Resell|}}}
{{#switch:{{{Resell|}}}
|  =<nowiki/>
|  =<nowiki/>
| No=<font color="red">Reselling impossible.</font><br>
| No=<font color="red">Reselling impossible.</font><br>
| #default = Reselling price: {{{Resell|}}}<br>
| #default = {{color|white|Reselling price: {{{Resell|}}}}}<br>
}}
{{#switch:{{{Dismiss|}}}
|  =<nowiki/>
| No=<font color="red">Cannot Dismiss</font><br>
| #default = <font color="red">{{{Dismiss|}}}</font><br>
}}
{{#switch:{{{Repair|}}}
|  =<nowiki/>
| No=<font color="red">Cannot Repair</font><br>
| #default = <font color="red">{{{Repair|}}}</font><br>
}}
}}
{{#switch:{{{Trade|}}}
{{#switch:{{{Trade|}}}
Line 24: Line 50:
| #default = <font color="red">{{{Bank|}}}</font>
| #default = <font color="red">{{{Bank|}}}</font>
}}
}}
|}
</div></includeonly><noinclude>{{Doc}}</noinclude>

Latest revision as of 13:29, 11 January 2023

Information: If you want to test this template, please use Sandbox.
The documentation does not exist, you can click here to create.