Vorlage:GebietAufKarte: Unterschied zwischen den Versionen

aus FreewarWiki, der Referenz für Freewar
Zur Navigation springen Zur Suche springen
(komplettumarbeitung, u. a. mit ParserFunctions. Bereichsanzeigen sind erst mal weg, ich prüfe den Rest erst auf Bugs.)
(unglaublich - alles klappt auf Anhieb :D +Bereiche)
Zeile 66: Zeile 66:
   | <!-- übriges Festland -->
   | <!-- übriges Festland -->
     <div style="position:absolute; left:{{expr:({{{X}}} - 55) * 5 - 1}}px; top:-1px; width:5px; height:210px; border:1px solid red;"></div>
     <div style="position:absolute; left:{{expr:({{{X}}} - 55) * 5 - 1}}px; top:-1px; width:5px; height:210px; border:1px solid red;"></div>
  }}
}}
}}
{{ifeq:{{{X1|none}}}|none||
{{ifexpr:{{{X1}}} > 490| <!-- Narubia oder gefrorene Insel -->
  {{ifexpr:{{{X1}}} > 1000| <!-- Gefrorene Insel -->
    <div style="position:absolute; left:{{expr:384 + ({{{X1}}} - {{{X2}}} - 1002) * 5}}px; top:69px; width:5px; height:45px; border:1px solid red; border-width:0 1px;"></div>
    <div style="position:absolute; left:384px; top:{{expr:69 + ({{{Y1}}} - {{{Y2}}} - 1001) * 5}}px; width:55px; height:5px; border:1px solid red; border-width:1px 0;"></div>
  | <!-- Narubia -->
    <div style="position:absolute; left:{{expr:379 + ({{{X1}}} - {{{X2}}} - 498) * 5}}px; top:-1px; width:5px; height:45px; border:1px solid red; border-width:0 1px;"></div>
    <div style="position:absolute; left:379px; top:{{expr:({{{Y1}}} - {{{Y2}}} - 50) * 5 - 1}}px; width:60px; height:5px; border:1px solid red; border-width:1px 0;"></div>
  }}
| <!-- zuerst X (vertikal) --> <!-- Festland -->
  {{ifexpr:({{{Y1}}} > 108) and ({{{Y1}}} < 122)| <!-- Linya-Breite -->
    <div style="position:absolute; left:-1px; top:{{expr:({{{Y1}}} - {{{Y2}}} - 80) * 5 - 1}}px; width:440px; height:5px; border:1px solid red; border-width:0 1px;"></div>
  | <!-- normal breites Festland -->
    <div style="position:absolute; left:-1px; top:{{expr:({{{Y1}}} - {{{Y2}}} - 80) * 5 - 1}}px; width:350px; height:5px; border:1px solid red; border-width:0 1px;"></div>
  }}
<!-- ab hier Y (horizontal) -->
  {{ifexpr:({{{X1}}} > 130) and ({{{X1}}} < 143)| <!-- Linya -->
    <div style="position:absolute; left:{{expr:({{{X1}}} - {{{X2}}} - 55) * 5 - 1}}px; top:149px; width:5px; height:60px; border:1px solid red; border-width:1px 0;"></div>
  | <!-- übriges Festland -->
    <div style="position:absolute; left:{{expr:({{{X1}}} - {{{X2}}} - 55) * 5 - 1}}px; top:-1px; width:5px; height:210px; border:1px solid red; border-width:1px 0;"></div>
   }}
   }}
}}
}}

Version vom 3. Juli 2006, 21:08 Uhr