Category
You're no bot and a page you've created got automatically deleted? Add your name to FreewarWiki:NoSpamUser |
Difference between revisions of "Template:Map/Layout/Counter"
From FreewarWiki
(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...") |
(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: | + | -->{{#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/ | + | -->{{Map/Coords|{{#expr:{{#var:relative_Y}} + {{#var:{{#var:name}}TopLeftY}} {{#ifeq:{{#var:map_mountain}}|-|+ 1}}}}}}<!-- |
-->}}<!-- | -->}}<!-- | ||
Revision as of 20: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.