<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://newgrf-specs.tt-wiki.net/index.php?action=history&amp;feed=atom&amp;title=NML%3ATown_names_parts</id>
	<title>NML:Town names parts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://newgrf-specs.tt-wiki.net/index.php?action=history&amp;feed=atom&amp;title=NML%3ATown_names_parts"/>
	<link rel="alternate" type="text/html" href="https://newgrf-specs.tt-wiki.net/index.php?title=NML:Town_names_parts&amp;action=history"/>
	<updated>2026-04-25T03:51:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://newgrf-specs.tt-wiki.net/index.php?title=NML:Town_names_parts&amp;diff=3494&amp;oldid=prev</id>
		<title>Planetmaker: some spelling and linke to other part of townname docs</title>
		<link rel="alternate" type="text/html" href="https://newgrf-specs.tt-wiki.net/index.php?title=NML:Town_names_parts&amp;diff=3494&amp;oldid=prev"/>
		<updated>2014-02-01T22:10:58Z</updated>

		<summary type="html">&lt;p&gt;some spelling and linke to other part of townname docs&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-GB&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 22:10, 1 February 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;{{NMLNavBlocksyntax}}&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;{{NMLNavBlocksyntax}}&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;br /&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;br /&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;A &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block has one or more &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;&amp;amp;lt;part&amp;amp;gt;&amp;lt;/code&amp;gt;s. Each part defines a piece of a town name. All pieces together form the name generated by the block.&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;A &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block has one or more &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;&amp;amp;lt;part&amp;amp;gt;&amp;lt;/code&amp;gt;s. Each part defines a piece of a town name. All pieces together form the name generated by the&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; [[NML:town_names|townname]]&lt;/ins&gt; block.&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;br /&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;br /&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;An example of a part is:&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;An example of a part is:&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&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; }&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; }&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;br /&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;br /&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;The simplest form is just a list of &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;text(...)&amp;lt;/code&amp;gt;entries. Each entry contains a possible value of piece, and a probability of picking that name. The &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names(&amp;amp;lt;name&amp;amp;gt;, &amp;amp;lt;probability&amp;amp;gt;)&amp;lt;/code&amp;gt;calls a previous &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block (called &#039;othernames&#039; in the example), and returns the value generated there. A part should have at least one. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;At least up&lt;/del&gt; to 255 entries will always work. If a part contains even more entries, NML tries to make it fit by creating sub-blocks. If that fails, you will get an error.&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;The simplest form is just a list of &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;text(...)&amp;lt;/code&amp;gt;entries. Each entry contains a possible value of piece, and a probability of picking that name. The &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names(&amp;amp;lt;name&amp;amp;gt;, &amp;amp;lt;probability&amp;amp;gt;)&amp;lt;/code&amp;gt;calls a previous &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block (called &#039;othernames&#039; in the example), and returns the value generated there. A part should have at least one&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; entry&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Up&lt;/ins&gt; to 255 entries will always work. If a part contains even more entries, NML tries to make it fit by creating sub-blocks. If that fails, you will get an error.&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;br /&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;br /&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;The numbers are the probabilities. In the example, the sum of all values is 6, which means that &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;name1&amp;lt;/code&amp;gt; is picked with 1/6 chance, &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;name2&amp;lt;/code&amp;gt; has a 2/6 chance, and a name generated from the previous &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block has a 3/6 chance.&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;The numbers are the probabilities. In the example, the sum of all values is 6, which means that &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;name1&amp;lt;/code&amp;gt; is picked with 1/6 chance, &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;name2&amp;lt;/code&amp;gt; has a 2/6 chance, and a name generated from the previous &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block has a 3/6 chance.&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Planetmaker</name></author>
	</entry>
	<entry>
		<id>https://newgrf-specs.tt-wiki.net/index.php?title=NML:Town_names_parts&amp;diff=2416&amp;oldid=prev</id>
		<title>FooBar: add nav template</title>
		<link rel="alternate" type="text/html" href="https://newgrf-specs.tt-wiki.net/index.php?title=NML:Town_names_parts&amp;diff=2416&amp;oldid=prev"/>
		<updated>2011-08-21T16:38:01Z</updated>

		<summary type="html">&lt;p&gt;add nav template&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-GB&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 16:38, 21 August 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty 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;{{NMLNavBlocksyntax}}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-empty 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;br /&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;A &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block has one or more &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;&amp;amp;lt;part&amp;amp;gt;&amp;lt;/code&amp;gt;s. Each part defines a piece of a town name. All pieces together form the name generated by the block.&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;A &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block has one or more &amp;lt;code style=&quot;color:darkgreen&quot;&amp;gt;&amp;amp;lt;part&amp;amp;gt;&amp;lt;/code&amp;gt;s. Each part defines a piece of a town name. All pieces together form the name generated by the block.&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;br /&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;br /&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>FooBar</name></author>
	</entry>
	<entry>
		<id>https://newgrf-specs.tt-wiki.net/index.php?title=NML:Town_names_parts&amp;diff=2324&amp;oldid=prev</id>
		<title>FooBar: content of nml r1625</title>
		<link rel="alternate" type="text/html" href="https://newgrf-specs.tt-wiki.net/index.php?title=NML:Town_names_parts&amp;diff=2324&amp;oldid=prev"/>
		<updated>2011-08-21T11:43:30Z</updated>

		<summary type="html">&lt;p&gt;content of nml r1625&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;A &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block has one or more &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;&amp;amp;lt;part&amp;amp;gt;&amp;lt;/code&amp;gt;s. Each part defines a piece of a town name. All pieces together form the name generated by the block.&lt;br /&gt;
&lt;br /&gt;
An example of a part is:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
 	text(&amp;quot;name1&amp;quot;, 1),&lt;br /&gt;
 	text(&amp;quot;name2&amp;quot;, 2),&lt;br /&gt;
 	town_names(othernames, 3)&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
The simplest form is just a list of &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;text(...)&amp;lt;/code&amp;gt;entries. Each entry contains a possible value of piece, and a probability of picking that name. The &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;town_names(&amp;amp;lt;name&amp;amp;gt;, &amp;amp;lt;probability&amp;amp;gt;)&amp;lt;/code&amp;gt;calls a previous &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block (called &amp;#039;othernames&amp;#039; in the example), and returns the value generated there. A part should have at least one. At least up to 255 entries will always work. If a part contains even more entries, NML tries to make it fit by creating sub-blocks. If that fails, you will get an error.&lt;br /&gt;
&lt;br /&gt;
The numbers are the probabilities. In the example, the sum of all values is 6, which means that &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;name1&amp;lt;/code&amp;gt; is picked with 1/6 chance, &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;name2&amp;lt;/code&amp;gt; has a 2/6 chance, and a name generated from the previous &amp;lt;code style=&amp;quot;color:darkgreen&amp;quot;&amp;gt;town_names&amp;lt;/code&amp;gt; block has a 3/6 chance.&lt;/div&gt;</summary>
		<author><name>FooBar</name></author>
	</entry>
</feed>