Template:Location map many: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
adjusting end-tags of nested HTML divisions
meta>Wikid77
indented code for floating the division placement; moved caption-logic near end
Line 7: Line 7:
     | #CCCCCC  
     | #CCCCCC  
   }}; margin: 3px;
   }}; margin: 3px;
}} float:{{#switch:{{{float|}}}|"center"=none|center=none|"left"=left|"right"=right|left=left|right=right|"none"=none|none=none|right}}; clear:{{#switch:{{{float|}}}|"center"=both|center=both|"left"=left|"right"=right|left=left|right=right|"none"=none|none=none|right}}; {{#if: {{{caption|}}} | ;background:#F9F9F9"|" }}><!--
}} float:{{#switch:{{{float|}}}
| "center"=none | center=none | "left"=left   | left=left
"right"=right | right=right | "none"=none   | none=none
|right}}; clear:{{#switch:{{{float|}}}
| "center"=both | center=both | "left"=left | left=left
"right"=right | right=right | "none"=none | none=none
|right}}; {{#if: {{{caption|}}}
  | ;background:#F9F9F9"|"
  }}><!--
----------------------------------------------------- Map division
----------------------------------------------------- Map division
--><div style="position: relative;{{#ifeq: {{{border|}}} | none |  
--><div style="position: relative;{{#ifeq: {{{border|}}} | none |  
Line 18: Line 26:
   | {{PAGENAME}}  
   | {{PAGENAME}}  
}} ({{Location map {{{1}}}|name}})]]<br /><!--
}} ({{Location map {{{1}}}|name}})]]<br /><!--
====================================================== Map Caption div
--><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}
  | {{{label}}}
  | {{PAGENAME}}
}} ({{Location map {{{1}}}|name}})}}}</div>
<!--
================================================== Marker/Label #1
================================================== Marker/Label #1
--><div style="position: absolute; z-index: 2; top: {{#expr:  
--><div style="position: absolute; z-index: 2; top: {{#expr:  
Line 365: Line 367:
--------------------------------------------------------- -->
--------------------------------------------------------- -->
</div><!-- end-div map part -->
</div><!-- end-div map part -->
================================================== Map Caption div
--><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}
  | {{{label}}}
  | {{PAGENAME}}
}} ({{Location map {{{1}}}|name}})}}}</div>
<!--
</div><!-- end-div bordered box -->
</div><!-- end-div bordered box -->
<!-- </div></div><!--force any divisions closed -->
</div></div><!--force any divisions closed -->
</includeonly><noinclude><!--
</includeonly><noinclude><!--
--
--

Revision as of 10:16, 8 September 2007