Jump to content

Template:Location mark~/sandbox: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
test
sync
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
<includeonly>{{#if:{{{x|}}}{{{y|}}}{{{x%|}}}{{{y%|}}}
| <div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
top: {{#if:{{{y%|}}}
top: {{#if:{{{y%|}}}
| {{{y%|}}}%;
| {{{y%|}}}%;
| {{#expr:{{ifempty|{{{width|}}}|220}} * {{{y|}}} e -3 round 0 }}px; }}
| {{#expr:{{if empty|{{{width|}}}|220}} * {{{y|}}} e -3 round 0 }}px; }}
left: {{#if:{{{x%|}}}
left: {{#if:{{{x%|}}}
| {{{x%|}}}%;
| {{{x%|}}}%;
| {{#expr:{{ifempty|{{{width|}}}|220}} * {{{x|}}} e -3 round 0 }}px; }} ">
| {{#expr:{{if empty|{{{width|}}}|220}} * {{{x|}}} e -3 round 0 }}px; }} ">


<div style="position: relative; text-align: center; z-index: 100;
<div style="position: relative; z-index: 3; line-height: 0; text-align: center;
width: {{ifempty|{{{mark_width|}}}|8}}px;
width: {{if empty|{{{mark_width|}}}|8}}px;
left: -{{#expr:{{ifempty|{{{mark_width|}}}|8}}/ 2 round 0}}px;
left: -{{#expr:{{if empty|{{{mark_width|}}}|8}} / 2 round 2}}px;
top: -{{#expr:{{ifempty|{{{mark_height|}}}|8}}/ 2 round 0}}px;"><!--
top: -{{#expr:{{if empty|{{{mark_width|}}}|8}} / 2 round 2}}px;"><!--
-->[[File:{{if empty|{{{mark|}}}|Red pog.svg}}|{{if empty|{{{mark_width|}}}|8}}px|{{{label|}}}<!--
-->{{#if:{{{alt|}}}{{{mark_alt|}}}{{{label|}}}|{{!}}alt={{if empty|{{{alt|}}}|{{{mark_alt|}}}|{{{label|}}} }} }}<!--
-->{{#if:{{{link|}}}{{{mark_link|}}}|{{!}}link={{if empty|{{{mark_link|}}}|{{{link|}}} }} }}]]</div><!--


-->{{#ifeq:{{{position|}}}|none|
-->[[File:{{ifempty|{{{mark|}}}|Red pog.svg}}|{{ifempty|{{{mark_width|}}}|8}}px|{{{label|}}}<!--
| <div style="position: relative; z-index: 4; font-size: {{if empty|{{{font_size|}}}|90}}%; line-height: 111%; width: 6em;
-->{{#if:{{{alt|}}}{{{mark_alt|}}}{{{label|}}}|{{!}}alt={{ifempty|{{{alt|}}}|{{{mark_alt|}}}|{{{label|}}} }} }}<!--
{{#switch: {{{position|}}}
-->{{#if:{{{link|}}}{{{mark_link|}}}|{{!}}link={{ifempty|{{{link|}}}|{{{mark_link|}}} }} }}]]</div>
| left = top: -1.5em; left: -6.5em; text-align: right;

| right = top: -1.5em; left: 0.5em; text-align: left;
{{#if:{{{label|}}}
| top = top: -2.65em; left: -3em; text-align: center;
| <div style="position: relative; z-index: 90; font-size: {{ifempty|{{{font_size|}}}|90}}%; line-height: 110%; width: 6em;
| bottom = top: -0.15em; left: -3em; text-align: center;
{{#switch: {{{position|}}}
| #default = {{#ifexpr:({{if empty|{{{x|}}}|0}}>700) or ({{if empty|{{{x%|}}}|0}}>70)
| left = top: -1.5em; left: -6.5em; text-align: right;
| right = top: -1.5em; left: 0.5em; text-align: left;
| top: -1.5em; left: -6.5em; text-align: right;
| top = top: -2.65em; left: -3em; text-align: center;
| top: -1.5em; left: 0.5em; text-align: left;}}
}}"><span style="padding: 1px; {{#if:{{{background|}}}|background-color: {{{background|}}}; }}">{{{label|}}}</span></div>}}
| bottom = top: -0.15em; left: -3em; text-align: center;
</div>}}</includeonly><noinclude>
|#default= {{#ifexpr:{{{x|}}}>700
{{documentation}}
| top: -1.5em; left: -6.5em; text-align: right;
<!--
| top: -1.5em; left: 0.5em; text-align: left;}}
Please add categories and interwikis
}}"><span style="padding: 1px; {{#if:{{{background|}}}|background-color: {{{background|}}}; }}">{{{label|}}}</span>
to the /doc sub-page, thanks
</div>}}
-->
</div></includeonly><noinclude>

{{template sandbox notice}}
</noinclude>
</noinclude>

Latest revision as of 13:32, 12 October 2019