Template:Location map many: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>Wikid77 Calculated 72 label positions by marker + label sizes. Shortened latitude/longitude messages; Defaulted mark#high to mark#size if no template value. |
meta>Wikid77 labels 1-9: set bottom position = - mark*.50 - label*.02 + 4.9, tested for 12 various cases -- had been: .62 / .08 / +10.5 |
||
Line 2: | Line 2: | ||
-- Template for image with markers/labels (see bottom "NOTES") | -- Template for image with markers/labels (see bottom "NOTES") | ||
-- | -- | ||
-- Warning: Code multi-nested | -- Warning: Code multi-nested 18 levels across 1050+ lines. | ||
-- Warning: {{Might}}{{{appear|become}}}{{unreadable}}? | -- Warning: {{Might}}{{{appear|become}}}{{unreadable}}? | ||
-- Warning: This template might exceed wiki-template resources. | -- Warning: This template might exceed wiki-template resources. | ||
Line 109: | Line 109: | ||
+ {{{label_size|90}}}*.15 + 1.5 round 0}}px; | + {{{label_size|90}}}*.15 + 1.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: | |bottom = top: {{#expr: -{{{markhigh|{{{marksize|8}}}}}}*.50 | ||
- {{{label_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--out-->}}"><span style="padding: 1px; | |<!--out-->}}"><span style="padding: 1px; | ||
Line 216: | Line 216: | ||
+ {{{label2_size|90}}}*.16 + 1.5 round 0}}px; | + {{{label2_size|90}}}*.16 + 1.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: | |bottom = top: {{#expr: -{{{mark2high|{{{mark2size|8}}}}}}*.50 | ||
- {{{label2_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--otherwise-->}}"><span style="padding: 1px; | |<!--otherwise-->}}"><span style="padding: 1px; | ||
Line 326: | Line 326: | ||
+ {{{label3_size|90}}}*.14 + 1.5 round 0}}px; | + {{{label3_size|90}}}*.14 + 1.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: | |bottom = top: {{#expr: -{{{mark3high|{{{mark3size|8}}}}}}*.50 | ||
- {{{label3_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--otherwise-->}}"><span style="padding: 1px; | |<!--otherwise-->}}"><span style="padding: 1px; | ||
Line 436: | Line 436: | ||
+ {{{label4_size|90}}}*.13 + 2.5 round 0}}px; | + {{{label4_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: -{{#expr:{{{mark4high|{{{mark4size|8}}}}}}*. | |bottom = top: -{{#expr:{{{mark4high|{{{mark4size|8}}}}}}*.50 | ||
- {{{label4_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--otherwise-->}}"><span style="padding: 1px; | |<!--otherwise-->}}"><span style="padding: 1px; | ||
Line 546: | Line 546: | ||
+ {{{label5_size|90}}}*.13 + 2.5 round 0}}px; | + {{{label5_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: -{{#expr:{{{mark5high|{{{mark5size|8}}}}}}*. | |bottom = top: -{{#expr:{{{mark5high|{{{mark5size|8}}}}}}*.50 | ||
- {{{label5_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--otherwise-->}}"><span style="padding: 1px; | |<!--otherwise-->}}"><span style="padding: 1px; | ||
Line 656: | Line 656: | ||
+ {{{label6_size|90}}}*.13 + 2.5 round 0}}px; | + {{{label6_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: -{{#expr:{{{mark6high|{{{mark6size|8}}}}}}*. | |bottom = top: -{{#expr:{{{mark6high|{{{mark6size|8}}}}}}*.50 | ||
- {{{label6_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--otherwise-->}}"><span style="padding: 1px; | |<!--otherwise-->}}"><span style="padding: 1px; | ||
Line 766: | Line 766: | ||
+ {{{label7_size|90}}}*.13 + 2.5 round 0}}px; | + {{{label7_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: -{{#expr:{{{mark7high|{{{mark7size|8}}}}}}*. | |bottom = top: -{{#expr:{{{mark7high|{{{mark7size|8}}}}}}*.50 | ||
- {{{label7_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--otherwise-->}}"><span style="padding: 1px; | |<!--otherwise-->}}"><span style="padding: 1px; | ||
Line 876: | Line 876: | ||
+ {{{label8_size|90}}}*.13 + 2.5 round 0}}px; | + {{{label8_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: -{{#expr:{{{mark8high|{{{mark8size|8}}}}}}*. | |bottom = top: -{{#expr:{{{mark8high|{{{mark8size|8}}}}}}*.50 | ||
- {{{label8_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--otherwise-->}}"><span style="padding: 1px; | |<!--otherwise-->}}"><span style="padding: 1px; | ||
Line 986: | Line 986: | ||
+ {{{label9_size|90}}}*.13 + 2.5 round 0}}px; | + {{{label9_size|90}}}*.13 + 2.5 round 0}}px; | ||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|bottom = top: -{{#expr:{{{mark9high|{{{mark9size|8}}}}}}*. | |bottom = top: -{{#expr:{{{mark9high|{{{mark9size|8}}}}}}*.50 | ||
- {{{label9_size|90}}}*.02 + 4.9 round 0}}px; | |||
left: -3em; text-align: center; | left: -3em; text-align: center; | ||
|<!--otherwise-->}}"><span style="padding: 1px; | |<!--otherwise-->}}"><span style="padding: 1px; | ||
Line 1,029: | Line 1,029: | ||
-- 15Sep07 Wikibug: (but image:Green/Blue_pog.svg work ok.) | -- 15Sep07 Wikibug: (but image:Green/Blue_pog.svg work ok.) | ||
-- 15Sep07 Defaulted mark#high to mark#size if no template value. | -- 15Sep07 Defaulted mark#high to mark#size if no template value. | ||
-- 07Oct07 Set label bottom position = -mark*.50 - label*.02 + 4.9 | |||
--> | --> | ||
{{/doc}} | {{/doc}} |