<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wesnoth.org/index.php?action=history&amp;feed=atom&amp;title=TerrainGraphicsReference</id>
	<title>TerrainGraphicsReference - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wesnoth.org/index.php?action=history&amp;feed=atom&amp;title=TerrainGraphicsReference"/>
	<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;action=history"/>
	<updated>2026-04-28T01:44:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.16</generator>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=71956&amp;oldid=prev</id>
		<title>Egallager: /* [terrain_graphics] */ rm stray bracket</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=71956&amp;oldid=prev"/>
		<updated>2023-12-29T20:52:07Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;[terrain_graphics]: &lt;/span&gt; rm stray bracket&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:52, 29 December 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l68&quot; &gt;Line 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''x'' and ''y'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specifies the coordinates at which this rule can match. A rule which has x-y coordinates may only match at this position in the map, and nowhere else.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''x'' and ''y'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specifies the coordinates at which this rule can match. A rule which has x-y coordinates may only match at this position in the map, and nowhere else.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''probability'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; A number from 0 to 100. Means that this rule will only match, when all other conditions are met, if a random number from 0 to 100 is inferior to the ''probability'' value. Obviously, 0 means this rule will never match, and 100 means this rule will always match if all other conditions are met.&amp;#160; See [http://web.archive.org/web/20170323180423/http://wiki.wesnoth.org/TerrainGraphicsTutorial#Cumulative_Probabilities Terrain Graphics Probability&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;]&lt;/del&gt;] for mathematical complications.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''probability'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; A number from 0 to 100. Means that this rule will only match, when all other conditions are met, if a random number from 0 to 100 is inferior to the ''probability'' value. Obviously, 0 means this rule will never match, and 100 means this rule will always match if all other conditions are met.&amp;#160; See [http://web.archive.org/web/20170323180423/http://wiki.wesnoth.org/TerrainGraphicsTutorial#Cumulative_Probabilities Terrain Graphics Probability] for mathematical complications.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''precedence'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; An optional tag which allows to specify in which order rules are to be tested. Generally, rules are tested in the order they are defined. However, rules with a lower precedence will always de tested before rules with higher precedence.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''precedence'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; An optional tag which allows to specify in which order rules are to be tested. Generally, rules are tested in the order they are defined. However, rules with a lower precedence will always de tested before rules with higher precedence.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''map'' : format: see below &amp;lt;br&amp;gt; A string, generally a multi-line one, graphically representing the constraints of this rule. Maps are a shorthand notation to defining several constraints using the '''[tile]''' element. Those have a special structure; see below (`Map Format`).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''map'' : format: see below &amp;lt;br&amp;gt; A string, generally a multi-line one, graphically representing the constraints of this rule. Maps are a shorthand notation to defining several constraints using the '''[tile]''' element. Those have a special structure; see below (`Map Format`).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Egallager</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=71955&amp;oldid=prev</id>
		<title>Egallager: /* [terrain_graphics] */ fix red link</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=71955&amp;oldid=prev"/>
		<updated>2023-12-29T20:51:48Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;[terrain_graphics]: &lt;/span&gt; fix red link&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 20:51, 29 December 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l68&quot; &gt;Line 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''x'' and ''y'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specifies the coordinates at which this rule can match. A rule which has x-y coordinates may only match at this position in the map, and nowhere else.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''x'' and ''y'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specifies the coordinates at which this rule can match. A rule which has x-y coordinates may only match at this position in the map, and nowhere else.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''probability'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; A number from 0 to 100. Means that this rule will only match, when all other conditions are met, if a random number from 0 to 100 is inferior to the ''probability'' value. Obviously, 0 means this rule will never match, and 100 means this rule will always match if all other conditions are met.&amp;#160; See [&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;[&lt;/del&gt;Terrain Graphics Probability]] for mathematical complications.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''probability'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; A number from 0 to 100. Means that this rule will only match, when all other conditions are met, if a random number from 0 to 100 is inferior to the ''probability'' value. Obviously, 0 means this rule will never match, and 100 means this rule will always match if all other conditions are met.&amp;#160; See [&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;http://web.archive.org/web/20170323180423/http://wiki.wesnoth.org/TerrainGraphicsTutorial#Cumulative_Probabilities &lt;/ins&gt;Terrain Graphics Probability]] for mathematical complications.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''precedence'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; An optional tag which allows to specify in which order rules are to be tested. Generally, rules are tested in the order they are defined. However, rules with a lower precedence will always de tested before rules with higher precedence.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''precedence'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; An optional tag which allows to specify in which order rules are to be tested. Generally, rules are tested in the order they are defined. However, rules with a lower precedence will always de tested before rules with higher precedence.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''map'' : format: see below &amp;lt;br&amp;gt; A string, generally a multi-line one, graphically representing the constraints of this rule. Maps are a shorthand notation to defining several constraints using the '''[tile]''' element. Those have a special structure; see below (`Map Format`).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''map'' : format: see below &amp;lt;br&amp;gt; A string, generally a multi-line one, graphically representing the constraints of this rule. Maps are a shorthand notation to defining several constraints using the '''[tile]''' element. Those have a special structure; see below (`Map Format`).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Egallager</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=65654&amp;oldid=prev</id>
		<title>Pentarctagon at 07:17, 16 May 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=65654&amp;oldid=prev"/>
		<updated>2020-05-16T07:17:52Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 07:17, 16 May 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l120&quot; &gt;Line 120:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 120:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== See Also ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== See Also ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[TerrainGraphicsWML]] - More complete, less descriptive reference&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* [[TerrainGraphicsWML]] - More complete, less descriptive reference&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;* [[TerrainGraphicsTutorial]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page originated as a wikified version of the unfinished second half of Ayin's [http://www.anathas.org/ayin/wesnoth/doc/terrain_graphics_wml detailed Terrain Graphics document]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page originated as a wikified version of the unfinished second half of Ayin's [http://www.anathas.org/ayin/wesnoth/doc/terrain_graphics_wml detailed Terrain Graphics document]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:WML Reference]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:WML Reference]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pentarctagon</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=22680&amp;oldid=prev</id>
		<title>Esr: Categorize</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=22680&amp;oldid=prev"/>
		<updated>2008-02-25T10:05:46Z</updated>

		<summary type="html">&lt;p&gt;Categorize&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:05, 25 February 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l123&quot; &gt;Line 123:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 123:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page originated as a wikified version of the unfinished second half of Ayin's [http://www.anathas.org/ayin/wesnoth/doc/terrain_graphics_wml detailed Terrain Graphics document]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This page originated as a wikified version of the unfinished second half of Ayin's [http://www.anathas.org/ayin/wesnoth/doc/terrain_graphics_wml detailed Terrain Graphics document]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:WML Reference]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Esr</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=12059&amp;oldid=prev</id>
		<title>Sparr: /* '''[terrain_graphics]''' */</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=12059&amp;oldid=prev"/>
		<updated>2006-10-16T18:54:03Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;&amp;#039;&amp;#039;&amp;#039;[terrain_graphics]&amp;#039;&amp;#039;&amp;#039;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 18:54, 16 October 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l68&quot; &gt;Line 68:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 68:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''x'' and ''y'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specifies the coordinates at which this rule can match. A rule which has x-y coordinates may only match at this position in the map, and nowhere else.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''x'' and ''y'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specifies the coordinates at which this rule can match. A rule which has x-y coordinates may only match at this position in the map, and nowhere else.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''probability'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; A number from 0 to 100. Means that this rule will only match, when all other conditions are met, if a random number from 0 to 100 is inferior to the ''probability'' value. Obviously, 0 means this rule will never match, and 100 means this rule will always match if all other conditions are met.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''probability'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; A number from 0 to 100. Means that this rule will only match, when all other conditions are met, if a random number from 0 to 100 is inferior to the ''probability'' value. Obviously, 0 means this rule will never match, and 100 means this rule will always match if all other conditions are met&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&amp;#160; See [[Terrain Graphics Probability]] for mathematical complications&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''precedence'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; An optional tag which allows to specify in which order rules are to be tested. Generally, rules are tested in the order they are defined. However, rules with a lower precedence will always de tested before rules with higher precedence.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''precedence'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; An optional tag which allows to specify in which order rules are to be tested. Generally, rules are tested in the order they are defined. However, rules with a lower precedence will always de tested before rules with higher precedence.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''map'' : format: see below &amp;lt;br&amp;gt; A string, generally a multi-line one, graphically representing the constraints of this rule. Maps are a shorthand notation to defining several constraints using the '''[tile]''' element. Those have a special structure; see below (`Map Format`).&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;''map'' : format: see below &amp;lt;br&amp;gt; A string, generally a multi-line one, graphically representing the constraints of this rule. Maps are a shorthand notation to defining several constraints using the '''[tile]''' element. Those have a special structure; see below (`Map Format`).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sparr</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=8682&amp;oldid=prev</id>
		<title>Sparr: first wikified version</title>
		<link rel="alternate" type="text/html" href="https://wiki.wesnoth.org/index.php?title=TerrainGraphicsReference&amp;diff=8682&amp;oldid=prev"/>
		<updated>2006-04-01T06:58:10Z</updated>

		<summary type="html">&lt;p&gt;first wikified version&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Rule structure synopsis ==&lt;br /&gt;
  &lt;br /&gt;
  +--------------------------+&lt;br /&gt;
  | Rule                     |&lt;br /&gt;
  |  +--------------------+  |&lt;br /&gt;
  |  | Constraint         |  |&lt;br /&gt;
  |  |                    |  |&lt;br /&gt;
  |  | * offset           |  |&lt;br /&gt;
  |  | * typestring       |  |&lt;br /&gt;
  |  | * has_flags        |  |&lt;br /&gt;
  |  | * set_flags        |  |&lt;br /&gt;
  |  | * no_flags         |  |&lt;br /&gt;
  |  |                    |  |&lt;br /&gt;
  |  |  +--------------+  |  |&lt;br /&gt;
  |  |  | Image        |  |  |&lt;br /&gt;
  |  |  +--------------+  |  |&lt;br /&gt;
  |  |  | Image        |  |  |&lt;br /&gt;
  |  |  | ...          |  |  |&lt;br /&gt;
  |  |  +--------------+  |  |&lt;br /&gt;
  |  +--------------------+  |&lt;br /&gt;
  |  | Constraint         |  |&lt;br /&gt;
  |  | ...                |  |&lt;br /&gt;
  |  +--------------------+  |&lt;br /&gt;
  |                          |&lt;br /&gt;
  | * position               |&lt;br /&gt;
  | * probability            |&lt;br /&gt;
  | * precedence             |&lt;br /&gt;
  |                          |&lt;br /&gt;
  |  +--------------+        | &lt;br /&gt;
  |  | Image        |        |&lt;br /&gt;
  |  +--------------+        |&lt;br /&gt;
  |  | Image        |        |&lt;br /&gt;
  |  | ...          |        |&lt;br /&gt;
  |  +--------------+        |&lt;br /&gt;
  +--------------------------+&lt;br /&gt;
&lt;br /&gt;
== Rule matching algorithm ==&lt;br /&gt;
&lt;br /&gt;
Each rule will be tested against each hex of the map. For a rule to match on a given hex (let name this hex H), the following conditions have to be met:&lt;br /&gt;
&lt;br /&gt;
* Some random, 1 to 100 number must be inferior to the rule &amp;quot;probability&amp;quot;&lt;br /&gt;
* If the rule has a position set, it may only match on this very location.&lt;br /&gt;
* All constraints of the rule must match.&lt;br /&gt;
&lt;br /&gt;
For a constraint of the rule to match, the following conditions have to be met:&lt;br /&gt;
&lt;br /&gt;
* The hex corresponding to this constraint must have a type which matches the constraint's typestring:&lt;br /&gt;
**  We define the &amp;quot;hex corresponding to this constraint&amp;quot; as the hex, on the map, whose location is the hex H + ofs, ofs being the offset of the constraint.&lt;br /&gt;
**  The hex matches the constraint's typestring if any of those is true:&lt;br /&gt;
***   The typestring contains the metacharacter &amp;quot;*&amp;quot;.&lt;br /&gt;
***   The typestring does not start with the character &amp;quot;!&amp;quot;, and the hex's terrain character is included in the typestring.&lt;br /&gt;
***   The typestring starts with the character &amp;quot;!&amp;quot;, and the hex's terrain character is *not* included in the typestring.&lt;br /&gt;
* The hex corresponding to this constraint must not have any flag in the constraint's &amp;quot;no_flag&amp;quot; list.&lt;br /&gt;
* The hex corresponding to this contraint must have all the flags present in the constraint's &amp;quot;has_flag&amp;quot; list.&lt;br /&gt;
&lt;br /&gt;
== WML Reference ==&lt;br /&gt;
&lt;br /&gt;
=== '''[terrain_graphics]''' ===&lt;br /&gt;
------------------&lt;br /&gt;
&lt;br /&gt;
The '''[terrain_graphics]''' tag represents a terrain graphics rule. It may contain&lt;br /&gt;
the following child tags:&lt;br /&gt;
&lt;br /&gt;
;'''[image]''' : when an image is defined in a '''[terrain_graphics]''' tag, it defines a multi-hex image which will be applied over all tiles of the rule.&lt;br /&gt;
;'''[tile]''' : adds one (or several) constraints to the rule.&lt;br /&gt;
&lt;br /&gt;
Additionally, the '''[terrain_graphics]''' tag may have the following elements:&lt;br /&gt;
&lt;br /&gt;
;''x'' and ''y'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specifies the coordinates at which this rule can match. A rule which has x-y coordinates may only match at this position in the map, and nowhere else.&lt;br /&gt;
;''probability'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; A number from 0 to 100. Means that this rule will only match, when all other conditions are met, if a random number from 0 to 100 is inferior to the ''probability'' value. Obviously, 0 means this rule will never match, and 100 means this rule will always match if all other conditions are met.&lt;br /&gt;
;''precedence'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; An optional tag which allows to specify in which order rules are to be tested. Generally, rules are tested in the order they are defined. However, rules with a lower precedence will always de tested before rules with higher precedence.&lt;br /&gt;
;''map'' : format: see below &amp;lt;br&amp;gt; A string, generally a multi-line one, graphically representing the constraints of this rule. Maps are a shorthand notation to defining several constraints using the '''[tile]''' element. Those have a special structure; see below (`Map Format`).&lt;br /&gt;
;''set_flag'' : Defining a ''set_flag'' element in a rule is identical to defining it on each constraint of this rule.&lt;br /&gt;
;''has_flag'' : Defining a ''has_flag'' element in a rule is identical to defining it on each constraint of this rule.&lt;br /&gt;
;''no_flag'' : Defining a ''no_flag'' element in a rule is identical to defining it on each constraint of this rule.&lt;br /&gt;
;''rotations'' : format: &amp;lt;r0&amp;gt;,&amp;lt;r1&amp;gt;,&amp;lt;r2&amp;gt;,&amp;lt;r3&amp;gt;,&amp;lt;r4&amp;gt;,&amp;lt;r5&amp;gt; &amp;lt;br&amp;gt; r0 to r5 being (usually short) strings. &amp;lt;br&amp;gt; Specifies that this '''[terrain_graphics]''' element does not define an actual rule, but will serve as a template for creating up to 6 rotated rules. &amp;lt;br&amp;gt; Template rules are defined like normal rules, except that flags and image filenames may contain template strings of the form ''@Rn'', n being a number from 0 to 5. &amp;lt;br&amp;gt; A template rule will generate 6 rules, which are similar to the template, except that: &amp;lt;br&amp;gt;&lt;br /&gt;
;:* The map of constraints of this rule will be rotated by an angle, of 0 to 5 pi / 6&lt;br /&gt;
;:* On the rule which is rotated to 0rad, the template strings @R0, @R1, @R2, @R3, @R4, @R5, will be replaced by the corresponding r0, r1, r2, r3, r4, r5 variables given in the ''rotations='' element.&lt;br /&gt;
;:* On the rule which is rotated to pi/3 rad, the template strings @R0, @R1, @R2 etc. will be replaced by the corresponding r1, r2, r3, r4, r5, r0 (note the shift in indices).&lt;br /&gt;
;:* On the rule rotated 2pi/3, those will be replaced by r2, r3, r4, r5, r0, r1 and so on.&lt;br /&gt;
&lt;br /&gt;
=== '''[tile]''' ===&lt;br /&gt;
&lt;br /&gt;
The '''[tile]''' element, in a '''[terrain_graphics]''' rule, adds one (or more) new constraints to a rule. It may contain the following child tags:&lt;br /&gt;
&lt;br /&gt;
;'''[image]''' : Defining an '''[image]''' element inside of a '''[tile]''' element will define a single-hex image which will only be applied to the tile the constraint applies to.&lt;br /&gt;
&lt;br /&gt;
Additionally, the '''[tile]''' tag may contain the following elements:&lt;br /&gt;
&lt;br /&gt;
;''x'' and ''y'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specify the offset of the constraint.&lt;br /&gt;
;''loc'' : format: &amp;lt;number&amp;gt;, &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; An alternative notation for specifying the offset of the constraint.&lt;br /&gt;
;''pos'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Specifies that this '''[tile]''' tag does not define a single constraint, but instead, acts as a template for all constraints defined, on the map, with an anchor of the same number (See `Map format`_.) &amp;lt;br&amp;gt; Only meaningful if the '''[terrain_graphics]''' parent tag contains a ''map'' element.&lt;br /&gt;
;''type'' : format: &amp;lt;string&amp;gt; &amp;lt;br&amp;gt; Defines the typestring for this constraint. This value represents a list of characters. For the constraint to match, the corresponding terrain tile's type must be one of those characters. &amp;lt;br&amp;gt; This string may contain the metacharacter &amp;quot;*&amp;quot; meaning &amp;quot;all terrains&amp;quot;, and the metacharacter &amp;quot;!&amp;quot;, meaning &amp;quot;all terrains except those present in the list.&amp;quot;&lt;br /&gt;
;''set_flag'' : format: &amp;lt;flag&amp;gt; [ &amp;quot;,&amp;quot; &amp;lt;flag&amp;gt; ] + &amp;lt;br&amp;gt; Specifies that, if the rule which contains this constraint matches, the given flags will be applied to the corresponding terrain tile.&lt;br /&gt;
;''has_flag'' : format: &amp;lt;flag&amp;gt; [ &amp;quot;,&amp;quot; &amp;lt;flag&amp;gt; ] + &amp;lt;br&amp;gt; Specifies that this constraint will only match if the corresponding terrain tile already has all the given flags.&lt;br /&gt;
;''no_flag'' : format: &amp;lt;flag&amp;gt; [ &amp;quot;,&amp;quot; &amp;lt;flag&amp;gt; ]  + &amp;lt;br&amp;gt; Specifies that this constraint will only match if the corresponding terrain tile does *not* have any of the given flags.&lt;br /&gt;
&lt;br /&gt;
=== '''[image]''' ===&lt;br /&gt;
&lt;br /&gt;
The '''[image]''' element, in the '''[terrain_graphics]''' element, or in a '''[tile]''' elements, specify an image which will be added on the terrain, if the corresponding rule does match.&lt;br /&gt;
&lt;br /&gt;
It may contain the following child tags:&lt;br /&gt;
&lt;br /&gt;
;'''[variant]''' : A time-of-day specific variant of the image.&lt;br /&gt;
&lt;br /&gt;
Images may contain the following elements:&lt;br /&gt;
&lt;br /&gt;
;''name'' : format: &amp;lt;timed_image&amp;gt; [ &amp;quot;,&amp;quot; &amp;lt;timed_image&amp;gt; ] + &amp;lt;br&amp;gt; &amp;lt;timed_image&amp;gt; = &amp;lt;image_name&amp;gt; [ &amp;quot;:&amp;quot; &amp;lt;timing&amp;gt; ] &amp;lt;br&amp;gt; If the name only contains one timed_image, it will be used as a base to build the filename of the image corresponding to this '''[image]''' tag, with &amp;quot;images/terrain/&amp;quot; prepended, and &amp;quot;.png&amp;quot; appended. &amp;lt;br&amp;gt; If the name contains several timed_images, it will correspond to an animated image, each timed_image being a frame of the animation. For each frame of the animation the &amp;lt;image_name&amp;gt; part corresponds to the base of the filename, which will be built as shown above, and the &amp;lt;timing&amp;gt; part will correspond to the duration, in milliseconds, of this frame.&lt;br /&gt;
;''position'' :  format: &amp;quot;horizontal&amp;quot; | &amp;quot;vertical&amp;quot; &amp;lt;br&amp;gt; The type of layering this image will use. If set to &amp;quot;horizontal&amp;quot;, it will use a layer-based stack model. If set to vertical, images will be assumed  to have an (x,y) position on the screen, and will be layered according to their coordinates.&lt;br /&gt;
;''layer'' : format: &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Only meaningful if the ''position'' tag was set to ''horizontal''. Images with an horizontal position will be drawn, lower layer to upper layer, without taking their position into account.&lt;br /&gt;
;''base'' : format: &amp;lt;number&amp;gt; &amp;quot;,&amp;quot; &amp;lt;number&amp;gt; &amp;lt;br&amp;gt; Only meaningful if the ''position'' tag was set to ''vertical''. Specifies the coordinates of the &amp;quot;base&amp;quot; of the image, which is, the imaginary pixel at which the image reaches the &amp;quot;floor&amp;quot;, relative either to the top-left corner of the rule, or to the top-left corner of the constraint hex, depending on whether the image applies to a rule, or to a constraint.&lt;br /&gt;
&lt;br /&gt;
=== '''[variant]''' ===&lt;br /&gt;
&lt;br /&gt;
'''[variant]''' tags represent a time-of-day-specific version of an image. Variants may contain the following elements:&lt;br /&gt;
&lt;br /&gt;
;''tod'' : format: &amp;lt;string&amp;gt; &amp;lt;br&amp;gt; The identifier of the time-of-day this variant applies to. When the turn's top is equal to this, the &amp;quot;name&amp;quot; element of this variant will replace the &amp;quot;name&amp;quot; element of the parent image.&lt;br /&gt;
;''name'' : format: &amp;lt;timed_image&amp;gt; [ &amp;quot;,&amp;quot; &amp;lt;timed_image&amp;gt; ] + &amp;lt;br&amp;gt; &amp;lt;timed_image&amp;gt; = &amp;lt;image_name&amp;gt; [ &amp;quot;:&amp;quot; &amp;lt;timing&amp;gt; ] &amp;lt;br&amp;gt; The image string, which will replace the &amp;quot;name&amp;quot; element of the parent image on the right time-of-day.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[TerrainGraphicsWML]] - More complete, less descriptive reference&lt;br /&gt;
* [[TerrainGraphicsTutorial]]&lt;br /&gt;
&lt;br /&gt;
This page originated as a wikified version of the unfinished second half of Ayin's [http://www.anathas.org/ayin/wesnoth/doc/terrain_graphics_wml detailed Terrain Graphics document]&lt;/div&gt;</summary>
		<author><name>Sparr</name></author>
		
	</entry>
</feed>