Template:Map/Layout/Counter: Difference between revisions

From FreewarWiki
Jump to navigation Jump to search
Istrugar (talk | contribs)
Created page with "<!-- Calculate the relative X and Y; LoopCount contains the quantity on so far iterations (Start: 1) -->{{#vardefine:relative_Y|{{#expr:trunc(({{{LoopCount}}} - 1) / {{#var..."
 
Istrugar (talk | contribs)
update
Line 6: Line 6:
-->{{#vardefine:relative_X|{{#expr:(({{{LoopCount}}} - 1) mod {{#var:{{#var:name}}LoopX}}) - 1}}}}<!--
-->{{#vardefine:relative_X|{{#expr:(({{{LoopCount}}} - 1) mod {{#var:{{#var:name}}LoopX}}) - 1}}}}<!--


-->{{#ifexpr:{{#var:relative_Y}} + {{#var:{{#var:name}}TopLeftY}} {{#ifeq:{{#var:map_bergfelder}}|+|-|+}} 1 <= {{#var:{{#var:name}}BottomRightY}}|<!--
-->{{#ifexpr:{{#var:relative_Y}} + {{#var:{{#var:name}}TopLeftY}} {{#ifeq:{{#var:map_mountain}}|+|-|+}} 1 <= {{#var:{{#var:name}}BottomRightY}}|<!--


Binding coordinates if necessary. (Beginning of line)
Binding coordinates if necessary. (Beginning of line)
Line 12: Line 12:
  -->{{#ifeq:{{#var:relative_X}}|-1|<!--
  -->{{#ifeq:{{#var:relative_X}}|-1|<!--
   -->{{Map/NewRow}}<!--
   -->{{Map/NewRow}}<!--
   -->{{Map/Coord|{{#expr:{{#var:relative_Y}} + {{#var:{{#var:name}}TopLeftY}} {{#ifeq:{{#var:map_mountain}}|-|+ 1}}}}}}<!--
   -->{{Map/Coords|{{#expr:{{#var:relative_Y}} + {{#var:{{#var:name}}TopLeftY}} {{#ifeq:{{#var:map_mountain}}|-|+ 1}}}}}}<!--
  -->}}<!--
  -->}}<!--



Revision as of 19:13, 24 January 2017

Expression error: Unexpected < operator.


[Create] Documentation

No documentation page has been created for this template. If you are familiar with this template, you should create a documentation page. For more information, see Help:Templates.