Template:Location map many: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77
added program NOTES comments, finally!!
meta>Wikid77
renested divisions from original rambling spaghetti-code
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"|" }}><div style="position: relative;{{#ifeq: {{{border|}}} | none |  
}} 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"|" }}><!--
------------------------------------------- Map division --
--><div style="position: relative;{{#ifeq: {{{border|}}} | none |  
   |border: 1px solid {{#if: {{{border|}}}  
   |border: 1px solid {{#if: {{{border|}}}  
     | {{{border}}}  
     | {{{border}}}  
Line 40: Line 42:
   | {{{label}}}  
   | {{{label}}}  
   | {{PAGENAME}}  
   | {{PAGENAME}}  
}}]]</div>{{#ifeq: {{{position|}}} | none  
}}]]</div><!--end-div marker1 -->{{#ifeq: {{{position|}}} | none  
   |
   |
   |<div style="font-size: {{{label_size|90}}}%; line-height: 110%; position: relative; top: -1.5em; width: 6em; {{#switch: {{{position}}}
   |<div style="font-size: {{{label_size|90}}}%; line-height: 110%; position: relative; top: -1.5em; width: 6em; {{#switch: {{{position}}}
Line 50: Line 52:
   }}"><span style="padding: 1px; {{#if: {{{background|}}}  
   }}"><span style="padding: 1px; {{#if: {{{background|}}}  
     | background-color: {{{background}}};  
     | background-color: {{{background}}};  
   }}">{{{label|}}}</span></div>
   }}">{{{label|}}}</span></div><!--end-div label1 -->
}}</div></div><!-- ---------------------- Caption (division)
--><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}
  | {{{label}}}
  | {{PAGENAME}}
}} ({{Location map {{{1}}}|name}})}}}</div><!--
------------------------------------------------ Marker/Label #2
------------------------------------------------ Marker/Label #2
--><div style="position: absolute; z-index: 2; top: {{#expr:  
--><div style="position: absolute; z-index: 2; top: {{#expr:  
Line 89: Line 86:
   }}"><span style="padding: 1px; {{#if: {{{background2|}}}  
   }}"><span style="padding: 1px; {{#if: {{{background2|}}}  
     | background-color: {{{background2}}};  
     | background-color: {{{background2}}};  
   }}">{{{label2|}}}</span></div>
   }}">{{{label2|}}}</span></div><!-- end #2
}}</div><!-- end #2
-------------------------------------------------- Marker/Label #3
-------------------------------------------------- Marker/Label #3
--><div style="position: absolute; z-index: 2; top: {{#expr:  
--><div style="position: absolute; z-index: 2; top: {{#expr:  
Line 124: Line 120:
   }}"><span style="padding: 1px; {{#if: {{{background3|}}}  
   }}"><span style="padding: 1px; {{#if: {{{background3|}}}  
     | background-color: {{{background3}}};  
     | background-color: {{{background3}}};  
   }}">{{{label3|}}}</span></div>
   }}">{{{label3|}}}</span></div><!-- end #3
}}</div><!-- end #3
}}<!-- ---------------------- Caption (division)
--></div></includeonly><noinclude><!--
--><div style="font-size: 90%">{{{caption|{{#if: {{{label|}}}
  | {{{label}}}
  | {{PAGENAME}}
}} ({{Location map {{{1}}}|name}})}}}</div><!--
</div></div></div><!--force any divisions closed -->
</includeonly><noinclude><!--
--
--
-- NOTES:
-- NOTES:

Revision as of 11:32, 6 September 2007