<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://petitplanet.wiki/Template:Th-rm/doc?action=history&amp;feed=atom</id>
	<title>Template:Th-rm/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://petitplanet.wiki/Template:Th-rm/doc?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://petitplanet.wiki/Template:Th-rm/doc?action=history"/>
	<updated>2026-10-28T05:09:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=Template:Th-rm/doc&amp;diff=22841&amp;oldid=prev</id>
		<title>ReisuDesign: Created page with &quot;{{Documentation/Header}} {{Lua}}  Template to automate the romanization of Thai text based on the Petit Planet Wiki:Thai guidelines.  ==Syntax== {{T|th-rm|v1=Thai text|v2=capi=include to capitalize each word|v3=sent=include to use sentence case}}  * The romanization follows the Petit Planet Wiki:Thai guidelines, which are based on the Royal Thai General System of Transcription (RTGS). * The template is primarily in...&quot;</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Template:Th-rm/doc&amp;diff=22841&amp;oldid=prev"/>
		<updated>2026-09-02T17:24:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Documentation/Header}} {{Lua}}  Template to automate the romanization of Thai text based on the &lt;a href=&quot;/Petit_Planet_Wiki:Thai?action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Petit Planet Wiki:Thai (page does not exist)&quot;&gt;Petit Planet Wiki:Thai&lt;/a&gt; guidelines.  ==Syntax== {{T|th-rm|v1=Thai text|v2=capi=include to capitalize each word|v3=sent=include to use sentence case}}  * The romanization follows the &lt;a href=&quot;/Petit_Planet_Wiki:Thai?action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Petit Planet Wiki:Thai (page does not exist)&quot;&gt;Petit Planet Wiki:Thai&lt;/a&gt; guidelines, which are based on the &lt;a href=&quot;/W:Royal_Thai_General_System_of_Transcription?action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;W:Royal Thai General System of Transcription (page does not exist)&quot;&gt;Royal Thai General System of Transcription&lt;/a&gt; (RTGS). * The template is primarily in...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation/Header}}&lt;br /&gt;
{{Lua}}&lt;br /&gt;
&lt;br /&gt;
Template to automate the romanization of Thai text based on the [[Petit Planet Wiki:Thai]] guidelines.&lt;br /&gt;
&lt;br /&gt;
==Syntax==&lt;br /&gt;
{{T|th-rm|v1=Thai text|v2=capi=include to capitalize each word|v3=sent=include to use sentence case}}&lt;br /&gt;
&lt;br /&gt;
* The romanization follows the [[Petit Planet Wiki:Thai]] guidelines, which are based on the [[w:Royal Thai General System of Transcription|Royal Thai General System of Transcription]] (RTGS).&lt;br /&gt;
* The template is primarily intended as an automatic fallback for the Other languages template. Editors should provide a manual romanization when a name has an irregular or otherwise ambiguous pronunciation.&lt;br /&gt;
&lt;br /&gt;
;Capitalization&lt;br /&gt;
* {{F|capi}} can be used to capitalize each word in the romanization. For example:&lt;br /&gt;
** {{T|th-rm|สถาบันไทยคดีศึกษา|capi=1|_Y_=1}}&lt;br /&gt;
* {{F|sent}} can be used to capitalize the first word and words following sentence-ending punctuation. For example:&lt;br /&gt;
** {{T|th-rm|สวัสดีครับ. วันนี้เป็นอย่างไรบ้าง|sent=1|_Y_=1}}&lt;br /&gt;
&lt;br /&gt;
;Hyphenation and spacing corrections&lt;br /&gt;
* {{F|&amp;lt; &amp;gt;}} can be added to insert a space into the romanization.&lt;br /&gt;
* {{F|&amp;lt;-&amp;gt;}} can be added to insert a hyphen into the romanization.&lt;br /&gt;
* These corrections should only be used when the automatic romanization cannot determine the desired separation.&lt;br /&gt;
* For example:&lt;br /&gt;
** {{T|th-rm|สง่า&amp;lt;-&amp;gt;งาม|_Y_=1}}&lt;br /&gt;
&lt;br /&gt;
==Examples==&lt;br /&gt;
;Default&lt;br /&gt;
{{T|th-rm|สง่างาม|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|ทราย|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|จริง|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|ศรี|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|บุตร|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|เพชร|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|ลักษณ์|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Words with spaces&lt;br /&gt;
{{T|th-rm|สถาบันไทยคดีศึกษา|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|โชคชัย จิตงาม|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Forced capitalization&lt;br /&gt;
{{T|th-rm|สถาบันไทยคดีศึกษา|capi=1|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Sentence case&lt;br /&gt;
{{T|th-rm|สวัสดีครับ. วันนี้เป็นอย่างไรบ้าง|sent=1|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
;Consonant exceptions&lt;br /&gt;
{{T|th-rm|ทราย|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|ทราบ|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|ทรง|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|หนา|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|หนี|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|จริง|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
{{T|th-rm|ศรี|_Y_=1}}&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Notes==&lt;br /&gt;
* Thai words normally do not use spaces to separate words. Automatic romanization therefore cannot always determine word boundaries from Thai orthography alone.&lt;br /&gt;
* When a manual romanization is supplied to a template using this module as a fallback, the manual romanization should take precedence.&lt;br /&gt;
* This module follows the romanization rules described at [[Petit Planet Wiki:Thai]] rather than attempting to provide a phonetic transcription of Thai.&lt;br /&gt;
&lt;br /&gt;
==Template Data==&lt;br /&gt;
&amp;lt;!--&lt;br /&gt;
Edit the Template Data through the &amp;quot;MANAGE TEMPLATEDATA&amp;quot; button at the top left&lt;br /&gt;
--&amp;gt;&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;1&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Text&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Thai text to be romanized.&amp;quot;,&lt;br /&gt;
			&amp;quot;example&amp;quot;: &amp;quot;สง่างาม&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;capi&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Title Case&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Transform the romanization into title case.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;sent&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Sentence Case&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;Transform the romanization into sentence case.&amp;quot;,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;boolean&amp;quot;,&lt;br /&gt;
			&amp;quot;suggested&amp;quot;: true&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;inline&amp;quot;,&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Template to automate the romanization of Thai text.&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;/div&gt;</summary>
		<author><name>ReisuDesign</name></author>
	</entry>
</feed>