Difference between revisions of "Template:Location mark~"

From blackwiki
Jump to navigation Jump to search
imported>Droll
(tweaked)
imported>Droll
(added |position=none option)
Line 16: Line 16:
 
     -->{{#if:{{{link|}}}{{{mark_link|}}}|{{!}}link={{ifempty|{{{mark_link|}}}|{{{link|}}} }} }}]]</div>
 
     -->{{#if:{{{link|}}}{{{mark_link|}}}|{{!}}link={{ifempty|{{{mark_link|}}}|{{{link|}}} }} }}]]</div>
  
   {{#if:{{{label|}}}
+
   {{#ifeq:{{{position|}}}|none|
  | <div style="position: relative; z-index: 4; font-size: {{ifempty|{{{font_size|}}}|90}}%; line-height: 111%; width: 6em;
+
  | {{#if:{{{label|}}}  
  {{#switch: {{{position|}}}
+
    | <div style="position: relative; z-index: 4; font-size: {{ifempty|{{{font_size|}}}|90}}%; line-height: 111%; width: 6em;
  | left  = top: -1.5em;  left: -6.5em; text-align: right;
+
      {{#switch: {{{position|}}}
  | right  = top: -1.5em;  left:  0.5em; text-align: left;
+
      | left  = top: -1.5em;  left: -6.5em; text-align: right;
  | top    = top: -2.65em; left: -3em;  text-align: center;
+
      | right  = top: -1.5em;  left:  0.5em; text-align: left;
  | bottom = top: -0.15em; left: -3em;  text-align: center;
+
      | top    = top: -2.65em; left: -3em;  text-align: center;
  |#default= {{#ifexpr:({{ifempty|{{{x|}}}|0}}>700) or ({{ifempty|{{{x%|}}}|0}}>70)
+
      | bottom = top: -0.15em; left: -3em;  text-align: center;
    | top: -1.5em; left: -6.5em; text-align: right;
+
      | #default = {{#ifexpr:({{ifempty|{{{x|}}}|0}}>700) or ({{ifempty|{{{x%|}}}|0}}>70)
    | top: -1.5em; left:  0.5em; text-align: left;}}
+
        | top: -1.5em; left: -6.5em; text-align: right;
  }}"><span style="padding: 1px; {{#if:{{{background|}}}|background-color: {{{background|}}}; }}">{{{label|}}}</span></div>}}
+
        | top: -1.5em; left:  0.5em; text-align: left;}}
 +
      }}"><span style="padding: 1px; {{#if:{{{background|}}}|background-color: {{{background|}}}; }}">{{{label|}}}</span></div>}}}}
 
</div>}}</includeonly><noinclude>
 
</div>}}</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}

Revision as of 00:39, 22 November 2012

50px Template documentation[view] [edit] [history] [purge]

ru:Template:Location mark~