Vorlage:SetBonus: Unterschied zwischen den Versionen

Aus Wiki The-West DE
Zur Navigation springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
 
(17 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
<includeonly>
<includeonly>{{Popup|1=[[File:{{{2}}}.png|40px|link=]]'''+{{#ifexpr:{{{1}}}<0|<span class="calc" id="{{#expr:{{{1}}}*(-1)}}">{{#expr:{{{1}}}*(-1)}}</span>|<span class="val">{{{1}}}</span>}}{{{4|}}}'''|2=<div id="tooltip_content">{{{3}}}{{#iferror:{{#ifexpr:{{{1}}}<0|<span class="per_level"></span>|}}}}</div>|3=set_bonus}}</includeonly><noinclude>
<style>
 
div.tt_bg_tl, div.tt_bg_tr, div.tt_bg_bl, div.tt_bg_br {
{{SetBonus|-25|Set_luc|Erhöhte Glückschance|%}}{{SetBonus|-0.5|Shot|Schießen}}
    background-image: url("https://wiki.the-west.fr/images/f/fc/Tooltip_bg.png");
 
    background-repeat: no-repeat;
'''SetBonus'''
    position: absolute;
 
    z-index: -1;
<code><nowiki>{{SetBonus|VAL|IMG|NAME|% (optional)}}</nowiki></code>
}
 
.tt_bg_tl {
[[Category:Vorlage]]</noinclude>
    background-position: left top;
    bottom: 50%;
    left: 0;
    right: 50%;
    top: 0;
}
.tt_bg_tr {
    background-position: right top;
    bottom: 50%;
    right: 0;
    top: 0;
    width: 50%;
}
.tt_bg_bl {
    background-position: left bottom;
    bottom: 0;
    height: 50%;
    left: 0;
    right: 50%;
}
.tt_bg_br {
    background-position: right bottom;
    bottom: 0;
    height: 50%;
    right: 0;
    width: 50%;
}
.tooltip_outer {
    bottom: 100%;
    left: 50%;
    margin-bottom: 8px;
    position: absolute;
    z-index: -1;
}
.tooltip {
    color: black;
    left: -50%;
    max-width: 350px;
    opacity: 0;
    padding: 10px 13px 12px;
    position: relative;
    transform: translateZ(0px) scale(1, 1);
    transition: opacity 0.15s ease-in-out 0s;
    visibility: hidden;
    white-space: nowrap;
}
.tooltip::after {
    background-image: url("https://wiki.the-west.fr/images/3/32/Tooltip_arrow.png");
    content: " ";
    height: 11px;
    left: 50%;
    margin-left: -11px;
    margin-top: -4px;
    position: absolute;
    top: 100%;
    width: 22px;
}
.tooltip_container {
    position: relative;
}
.tooltip_container:hover .tooltip {
    opacity: 1;
    transition: opacity 0.15s ease-in-out 0.4s;
    visibility: visible;
}
.tooltip_container:hover > .tooltip_outer {
    z-index: 1000;
}
</style></includeonly>
<includeonly><div style="border:1px solid #997146;width:40px;text-align:center;background-color:#4E3E26;color:#fff;font:12px arial;float:left;" class="tooltip_container">[[Datei:{{{2}}}.png|40px|link=]]'''+{{#iferror: {{#ifexpr:{{{1}}}<1|{{#ifexpr:{{{1}}}<0|<span class="calc" id="{{#expr:{{{1}}}*(-1)}}">{{#expr:{{{1}}}*(-1)}}</span>|<span class="calc" id="{{{1}}}">{{{1}}}</span>}}|{{{1}}}}}|{{{1}}}}}'''<div class="tooltip_outer"><div class="tooltip"><div class="tt_bg_tl"></div><div class="tt_bg_tr"></div><div class="tt_bg_bl"></div><div class="tt_bg_br"></div><div id="tooltip_content">{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}{{#iferror: {{#ifexpr:{{{1}}}<1|&nbsp;<span class="per_level"></span>|}} }}</div></div></div></div></includeonly>

Aktuelle Version vom 24. Mai 2021, 22:08 Uhr


Set luc.png+25%
Erhöhte Glückschance
Shot.png+0.5
Schießen

SetBonus

{{SetBonus|VAL|IMG|NAME|% (optional)}}