Difference between revisions of "Template:Location mark~"
Jump to navigation
Jump to search
imported>Primefac m (Protected "Template:Location mark~": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access]...) |
imported>Frietjes m |
||
| Line 3: | Line 3: | ||
top: {{#if:{{{y%|}}} | top: {{#if:{{{y%|}}} | ||
| {{{y%|}}}%; | | {{{y%|}}}%; | ||
| − | | {{#expr:{{ | + | | {{#expr:{{if empty|{{{width|}}}|220}} * {{{y|}}} e -3 round 0 }}px; }} |
left: {{#if:{{{x%|}}} | left: {{#if:{{{x%|}}} | ||
| {{{x%|}}}%; | | {{{x%|}}}%; | ||
| − | | {{#expr:{{ | + | | {{#expr:{{if empty|{{{width|}}}|220}} * {{{x|}}} e -3 round 0 }}px; }} "> |
<div style="position: relative; z-index: 3; line-height: 0; text-align: center; | <div style="position: relative; z-index: 3; line-height: 0; text-align: center; | ||
| − | width: {{ | + | width: {{if empty|{{{mark_width|}}}|8}}px; |
| − | left: -{{#expr:{{ | + | left: -{{#expr:{{if empty|{{{mark_width|}}}|8}} / 2 round 2}}px; |
| − | top: -{{#expr:{{ | + | top: -{{#expr:{{if empty|{{{mark_width|}}}|8}} / 2 round 2}}px;"><!-- |
| − | -->[[File:{{ | + | -->[[File:{{if empty|{{{mark|}}}|Red pog.svg}}|{{if empty|{{{mark_width|}}}|8}}px|{{{label|}}}<!-- |
| − | -->{{#if:{{{alt|}}}{{{mark_alt|}}}{{{label|}}}|{{!}}alt={{ | + | -->{{#if:{{{alt|}}}{{{mark_alt|}}}{{{label|}}}|{{!}}alt={{if empty|{{{alt|}}}|{{{mark_alt|}}}|{{{label|}}} }} }}<!-- |
| − | -->{{#if:{{{link|}}}{{{mark_link|}}}|{{!}}link={{ | + | -->{{#if:{{{link|}}}{{{mark_link|}}}|{{!}}link={{if empty|{{{mark_link|}}}|{{{link|}}} }} }}]]</div><!-- |
-->{{#ifeq:{{{position|}}}|none| | -->{{#ifeq:{{{position|}}}|none| | ||
| − | | <div style="position: relative; z-index: 4; font-size: {{ | + | | <div style="position: relative; z-index: 4; font-size: {{if empty|{{{font_size|}}}|90}}%; line-height: 111%; width: 6em; |
{{#switch: {{{position|}}} | {{#switch: {{{position|}}} | ||
| left = top: -1.5em; left: -6.5em; text-align: right; | | left = top: -1.5em; left: -6.5em; text-align: right; | ||
| Line 23: | Line 23: | ||
| top = top: -2.65em; left: -3em; text-align: center; | | top = top: -2.65em; left: -3em; text-align: center; | ||
| bottom = top: -0.15em; left: -3em; text-align: center; | | bottom = top: -0.15em; left: -3em; text-align: center; | ||
| − | | #default = {{#ifexpr:({{ | + | | #default = {{#ifexpr:({{if empty|{{{x|}}}|0}}>700) or ({{if empty|{{{x%|}}}|0}}>70) |
| top: -1.5em; left: -6.5em; text-align: right; | | top: -1.5em; left: -6.5em; text-align: right; | ||
| top: -1.5em; left: 0.5em; text-align: left;}} | | top: -1.5em; left: 0.5em; text-align: left;}} | ||
Latest revision as of 12:16, 11 October 2019
| See {{location mark+}} for documentation. |
| The above documentation is transcluded from Template:Location mark~/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |