Template:Location mark a: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{float|}}}|center|<div class="center">}}
<includeonly>{{Location mark
 
| width = {{{width|}}}
  <div {{#ifeq:{{{type|}}}|thumb|class="thumbinner"}} style="{{#switch:{{{type|}}}
| image = {{{image|}}}
  | thumb | border = width:{{#expr:{{if empty|{{{width|}}}|220}}+2}}
| overlay = {{{overlay|}}}
  | #default = width:{{if empty|{{{width|}}}|220}}}}px;">
| caption = {{{caption|}}}
 
| alt = {{{alt|}}}
{{{marks|}}}</div>
| float = {{{float|}}}
  </div>
| type = {{{type|}}}
{{#if:{{{x|}}}{{{y|}}}{{{x%|}}}{{{y%|}}}
| marks = {{Location mark~
| <div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
  top:  {{#if:{{{y%|}}}
        | {{{y%|}}}%;
        | {{#expr:{{if empty|{{{width|}}}|220}} * {{{y|}}} e -3 round 0 }}px; }}
  left: {{#if:{{{x%|}}}
        | {{{x%|}}}%;
        | {{#expr:{{if empty|{{{width|}}}|220}} * {{{x|}}} e -3 round 0 }}px; }} ">
 
  <div style="position: relative; z-index: 3; line-height: 0; text-align: center;
  width: {{if empty|{{{mark_width|}}}|8}}px;
  left: -{{#expr:{{if empty|{{{mark_width|}}}|8}} / 2 round 2}}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></div>}}
   | width = {{{width|}}}
   | width = {{{width|}}}
   | label = {{{label|}}}
   | label = {{{label|}}}
Line 35: Line 20:
   | y = {{{y|}}}
   | y = {{{y|}}}
   | x% = {{{x%|}}}
   | x% = {{{x%|}}}
   | y% = {{{y%|}}}
   | y% = {{{y%|}}} }}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
Above marks:
| width = {{{width|}}}
| image = {{{image|}}}
| overlay = {{{overlay|}}}
| caption = {{{caption|}}}
| alt = {{{alt|}}}
| float = {{{float|}}}
| type = {{{type|}}}
<!--
<!--
   Please add categories and interwikis
   Please add categories and interwikis

Latest revision as of 00:36, 17 November 2019