<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?action=history&amp;feed=atom&amp;title=Template%3ALawTreePositionDef</id>
	<title>Template:LawTreePositionDef - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?action=history&amp;feed=atom&amp;title=Template%3ALawTreePositionDef"/>
	<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:LawTreePositionDef&amp;action=history"/>
	<updated>2026-10-02T12:02:34Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.5</generator>
	<entry>
		<id>https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:LawTreePositionDef&amp;diff=13223&amp;oldid=prev</id>
		<title>76561198026315966: obelisk-bot: uploading initial Cargo templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:LawTreePositionDef&amp;diff=13223&amp;oldid=prev"/>
		<updated>2026-05-13T01:12:50Z</updated>

		<summary type="html">&lt;p&gt;obelisk-bot: uploading initial Cargo templates&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&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: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 01:12, 13 May 2026&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-l50&quot;&gt;Line 50:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 50:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;| slot = {{{slot|}}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;| slot = {{{slot|}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;| law_id = {{{law_id|}}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; 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;| law_id = {{{law_id|}}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Created &amp;lt;code&amp;gt;LawTreePosition&amp;lt;/code&amp;gt; entry: &amp;lt;code&amp;gt;{{{law_id|}}}&amp;lt;/code&amp;gt;&lt;/ins&gt;&amp;lt;/includeonly&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>76561198026315966</name></author>
	</entry>
	<entry>
		<id>https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:LawTreePositionDef&amp;diff=13146&amp;oldid=prev</id>
		<title>76561198026315966: obelisk-bot: uploading initial Cargo templates</title>
		<link rel="alternate" type="text/html" href="https://wiki.hoodedhorse.com/Heroes_of_Might_and_Magic_Olden_Era/index.php?title=Template:LawTreePositionDef&amp;diff=13146&amp;oldid=prev"/>
		<updated>2026-05-12T23:33:24Z</updated>

		<summary type="html">&lt;p&gt;obelisk-bot: uploading initial Cargo templates&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
One row per law placement in a faction&amp;#039;s law screen. Production laws (~198) each get exactly one row; test laws get none (they don&amp;#039;t appear in any faction&amp;#039;s &amp;lt;code&amp;gt;fractionLawsLines&amp;lt;/code&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
Captures the &amp;#039;&amp;#039;display&amp;#039;&amp;#039; layout of the law tree as shown in-game: which side (Faction column / Army column), which slot within that side, and which tier row. The balance-relevant &amp;lt;code&amp;gt;tier&amp;lt;/code&amp;gt; is duplicated here from &amp;lt;code&amp;gt;Law.tier&amp;lt;/code&amp;gt; for convenience — &amp;lt;code&amp;gt;LawTreePositionDef&amp;lt;/code&amp;gt; is the table to query when reconstructing the screen layout, while &amp;lt;code&amp;gt;Law.tier&amp;lt;/code&amp;gt; is the table to query when asking &amp;quot;where in the balance-tree does this law live.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
== Page layout ==&lt;br /&gt;
&amp;lt;code&amp;gt;LawTreePositionDef&amp;lt;/code&amp;gt; rows are emitted inline on the parent &amp;lt;code&amp;gt;FactionDef&amp;lt;/code&amp;gt; page (no separate &amp;lt;code&amp;gt;Data:LawTreePosition/…&amp;lt;/code&amp;gt; pages):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{LawTreePositionDef | faction=human | tier=1 | side=faction | slot=0 | law_id=fraction_law_human_3}}&lt;br /&gt;
{{LawTreePositionDef | faction=human | tier=1 | side=faction | slot=1 | law_id=fraction_law_human_2}}&lt;br /&gt;
…&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Schema ==&lt;br /&gt;
{{#cargo_declare:_table=LawTreePosition&lt;br /&gt;
| faction = String&lt;br /&gt;
| tier = Integer&lt;br /&gt;
| side = String&lt;br /&gt;
| slot = Integer&lt;br /&gt;
| law_id = String&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{{LawTreePositionDef&lt;br /&gt;
| faction = String           &amp;lt;!-- human, demon, dungeon, nature, undead, unfrozen --&amp;gt;&lt;br /&gt;
| tier = Integer             &amp;lt;!-- 1-5 --&amp;gt;&lt;br /&gt;
| side = String              &amp;lt;!-- faction | army --&amp;gt;&lt;br /&gt;
| slot = Integer             &amp;lt;!-- 0-based position within (faction, tier, side) --&amp;gt;&lt;br /&gt;
| law_id = String&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Field notes ==&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Primary key is &amp;lt;code&amp;gt;(faction, tier, side, slot)&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039;, which is also unique on &amp;lt;code&amp;gt;law_id&amp;lt;/code&amp;gt; (each law occupies exactly one tree position).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;side&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; is derived from the source &amp;lt;code&amp;gt;groups[]&amp;lt;/code&amp;gt; index: &amp;lt;code&amp;gt;groups[0]&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;&amp;quot;faction&amp;quot;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;groups[1]&amp;lt;/code&amp;gt; → &amp;lt;code&amp;gt;&amp;quot;army&amp;quot;&amp;lt;/code&amp;gt;. Mirrors the in-game screen labels (left = &amp;quot;Faction&amp;quot;, right = &amp;quot;Army&amp;quot;).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;slot&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; is the law&amp;#039;s index within its &amp;lt;code&amp;gt;groups[k].laws[]&amp;lt;/code&amp;gt; array (0-based). Laws per side range from 2 to 4.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;&amp;lt;code&amp;gt;tier&amp;lt;/code&amp;gt;&amp;#039;&amp;#039;&amp;#039; is the row index of &amp;lt;code&amp;gt;fractionLawsLines[]&amp;lt;/code&amp;gt; (1-based on emit, 0-based in source).&lt;br /&gt;
&lt;br /&gt;
== Related tables ==&lt;br /&gt;
* [[Template:LawDef|Law]] — joined on &amp;lt;code&amp;gt;law_id = Law.id&amp;lt;/code&amp;gt; (1:1 for placed laws).&lt;br /&gt;
* [[Template:FactionLawTierDef|FactionLawTier]] — joined on &amp;lt;code&amp;gt;(faction, tier)&amp;lt;/code&amp;gt; for the unlock threshold at this row.&lt;br /&gt;
* [[Template:FactionDef|Faction]] — joined on &amp;lt;code&amp;gt;faction = Faction.id&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[Category:Cargo Definitions]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&amp;lt;includeonly&amp;gt;{{#cargo_store:_table=LawTreePosition&lt;br /&gt;
| faction = {{{faction|}}}&lt;br /&gt;
| tier = {{{tier|}}}&lt;br /&gt;
| side = {{{side|}}}&lt;br /&gt;
| slot = {{{slot|}}}&lt;br /&gt;
| law_id = {{{law_id|}}}&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>76561198026315966</name></author>
	</entry>
</feed>