Abrir menu principal

UESPWiki β

Alterações

Predefinição:Image Mark

2 617 bytes adicionados, 20h13min de 6 de setembro de 2012
m
Undo revision 1017186 by RobinHood70 (talk) And back...
<includeonly><cleanspace>
{{#inherit:mark|mark_color|mark_width|mark_height|width|background|text_color|text_bold|text_italics|font_size|position}}
{{#define:x|{{{1}}}}}
{{#define:y|{{{2}}}}}
{{#define:label|{{{3|}}}}}
{{#define:mark_alt|{{{4|{{{label}}}}}}}}
{{#define:width|240}}
{{#define:mark|{{{mark_color|Yellow}}} pog.png}}
{{#define:mark_width|16}}
{{#define:mark_height|{{{mark_width}}}}}
{{#define:x_delt|{{#expr:1 + {{{mark_width}}}/ 2 round 0}}}}
{{#define:y_delt|{{#expr:1 + {{{mark_height}}}/ 2 round 0}}}}
{{#define:position|{{#ifexpr:{{{x|}}}>700|left|right}}}}
</cleanspace><div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
top: {{#if:{{{y%|}}}
| {{{y%|}}}%;
| {{#expr:{{{width}}} * {{{y|}}} e -3 round 0 }}px; }}
left: {{#if:{{{x%|}}}
| {{{x%|}}}%;
| {{#expr:{{{width}}} * {{{x|}}} e -3 round 0 }}px; }} "><div style="position:relative">
{{#ifeq:{{{mark}}}|none||
<div style="position: absolute; z-index: 90;
width: {{{mark_width}}}px;
left: -{{#expr:{{{mark_width}}}/ 2 round 0}}px;
top: -{{#expr:{{{mark_height}}}/ 2 round 0}}px;"><!--

-->[[File:{{{mark}}}|{{#tag:nowiki|{{{mark_alt|}}}}}|{{{mark_width}}}px{{#if:{{{mark_link|}}}|{{!}}link={{{mark_link|}}}}}]]</div>
}}
{{#if:{{{label|}}}
| <div style="position: absolute; z-index: 100; font-size: {{{font_size|90}}}%; line-height: 111%; width: 10em;
{{#switch: {{{position|}}}
| on = top: -0.63em; right: {{{x_delt}}}px; bottom: {{{y_delt}}}px; left: -5.1em; text-align: center;
| left = top: -0.5em; right: {{{x_delt}}}px; text-align: right;
| top = bottom: {{{y_delt}}}px; left: -5em; text-align: center;
| topleft = bottom: {{{y_delt}}}px; right: -{{{x_delt}}}px; text-align: right;
| topright = bottom: {{{y_delt}}}px; left: -{{{x_delt}}}px; text-align: left;
| bottom = top: {{{y_delt}}}px; left: -5em; text-align: center;
| bottomleft = top: {{{y_delt}}}px; right: -{{{x_delt}}}px; text-align: right;
| bottomright= top: {{{y_delt}}}px; left: -{{{x_delt}}}px; text-align: left;
| right
|#default= top: -0.5em; left: {{{x_delt}}}px; text-align: left;
}}" {{#if:{{{mark_alt}}}|title="{{{mark_alt}}}"}}><span style="padding: 1px; {{#if:{{{background|}}}|background-color: {{{background|}}}; }}{{#if:{{{text_color|}}}|color: {{{text_color|}}}; }}{{#if:{{{text_bold|}}}|font-weight:bold;}}{{#if:{{{text_italics|}}}|font-style:italic;}}">{{#if:{{{mark_link|}}}|[[{{{mark_link}}}{{!}}{{{label|}}}]]|{{{label|}}}}}</span></div>}}
</div></div></includeonly><noinclude>
{{/Doc}}
</noinclude>
49 329
edições