Template:Location map many: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
commented code for marker/label #1
meta>Wikid77
re-added code for marker #2
Line 56: Line 56:
}}<!--
}}<!--
====================================================== Marker/Label #2
====================================================== Marker/Label #2
--><div style="position: relative; text-align: center; {{#if: {{{mark2size|}}}
  | left: -{{#expr: {{{mark2size}}} / 2 round 0 }}px; top: -{{#expr: {{{mark2size}}} / 2 round 0 }}px; width: {{{mark2size}}}px; font-size: {{{mark2size}}}px;
  | left: -{{#expr: {{#if: {{Location map {{{1}}}|mark2size}}|{{Location map {{{1}}}|mark2size}}|8}} / 2 round 0 }}px; top: -{{#expr: {{#if: {{Location map {{{1}}}|mark2size}}|{{Location map {{{1}}}|mark2size}}|8}} / 2 round 0 }}px; width: {{#if: {{Location map {{{1}}}|mark2size}}|{{Location map {{{1}}}|mark2size}}|8}}px; font-size: {{#if: {{Location map {{{1}}}|mark2size}}|{{Location map {{{1}}}|mark2size}}|8}}px;
}}"><!-- specify marker#1 -->[[Image:{{#if: {{{mark2|}}}
  | {{{mark2}}}
  | {{#if: {{Location map {{{1}}}|mark2}}|{{Location map {{{1}}}|mark2}}|Red pog.svg}}
}}|{{#if: {{{mark2size|}}}
  | {{{marksize}}}x{{{mark2size}}}
  | {{#if: {{Location map {{{1}}}|mark2size}}|{{Location map {{{1}}}|mark2size}}|8}}x{{#if: {{Location map {{{1}}}|mark2size}}|{{Location map {{{1}}}|mark2size}}|8}}
}}px|{{#if: {{{label2|}}}
  | {{{label2}}}
  | {{PAGENAME}}
}}]]</div><!-- end-div marker2
---------------------------------------------- Label #2
-->{{#ifeq: {{{position2|}}} | none
  |
  |<div style="font-size: {{{label2_size|90}}}%; line-height: 110%; position: relative; top: -1.5em; width: 6em; {{#switch: {{{position2}}}
    |left = left: -6.5em; text-align: right;
    |right = left: 0.5em; text-align: left;
    |top = top:-2.65em; left:-3em; text-align: center;
    |bottom = top:-0.15em; left: -3em; text-align: center;
    |left: 0.5em; text-align: left;
  }}"><span style="padding: 1px; {{#if: {{{background2|}}}
    | background-color: {{{background2}}};
  }}">{{{label2|}}}</span></div><!-- end-div label2 -->
}}<!--
-->
-->
</div>
</div>

Revision as of 11:52, 6 September 2007