Template:Translation table/thlaw/doc

From Wikisource
Jump to: navigation, search

Creates a side-by-side translation of a Thai legislation into English.

Usage[edit]

{{translation table/thlaw

<!-- style -->
| va = <!-- vertical align -->
| bg1 = <!-- translation space background colour; default colour is #dee7f5 -->
| bg2 = <!-- heading space background colour; default colour is #ccccff -->

<!-- left -->
| l = <!-- left blank to make "«" disappear -->
| l-it = <!-- add "t" to make the link to the previous "introductory text" appear -->
| l-d = <!-- add the number of or link to the previous "division" -->
| lb-d = <!-- left blank to make the bullet after the link to the previous "division" disappear -->
| l-t = <!-- add the number of or link to the previous "title" -->
| lb-t = <!-- left blank to make the bullet after the link to the previous "title" disappear -->
| l-c = <!-- add the number of or link to the previous "chapter" -->
| lb-c = <!-- left blank to make the bullet after the link to the previous "chapter" disappear -->
| l-p = <!-- add the number of or link to the previous "part" -->
| lb-p = <!-- left blank to make the bullet after the link to the previous "part" disappear -->
| l-pres = <!-- add the number of or link to the previous "prescript" -->
| l-presc = <!-- add the number of or link to the previous "prescription" -->
| l-prec = <!-- add the number of or link to the previous "precept" -->
| l-sp = <!-- add the number of or link to the previous "sub-part" -->
| lb-sp = <!-- left blank to make the bullet after the link to the previous "sub-part" disappear -->
| l-s = <!-- add the number of or link to the previous "section" -->
| l-r = <!-- add the number of or link to the previous "rule" -->
| l-rg = <!-- add the number of or link to the previous "regulation" -->
| l-o = <!-- add the number of or link to the previous "ordinance" -->
| l-dn = <!-- add the number of or link to the previous "direction" -->
| l-dv = <!-- add the number of or link to the previous "directive" -->
| l-cl = <!-- add the number of or link to the previous "clause" -->
| l-a = <!-- add the number of or link to the previous "article" -->
| l-pr = <!-- add the number of or link to the previous "provision" -->
| l-cts = <!-- add "e" to make the link to the previous "countersignature" appear -->
| lb-cts = <!-- left blank to make the bullet before the link to the previous "countersignature" disappear -->
| l-sog = <!-- add "s" to make the previous "statement of grounds" appear -->
| lb-sog = <!-- left blank to make the bullet before the link to the previous "statement of grounds" disappear -->

<!-- middle -->
| m-d = <!-- add the number of or link to the present "division" -->
| mb-d = <!-- left blank to make the bullet after the link to the present "division" disappear -->
| m-t = <!-- add the number of or link to the present "title" -->
| mb-t = <!-- left blank to make the bullet after the link to the present "title" disappear -->
| m-c = <!-- add the number of or link to the present "chapter" -->
| mb-c = <!-- left blank to make the bullet after the link to the present "chapter" disappear -->
| m-p = <!-- add the number of or link to the present "part" -->
| mb-p = <!-- left blank to make the bullet after the link to the present "part" disappear -->
| m-sp = <!-- add the number of or link to the present "sub-part" -->
| mb-sp = <!-- left blank to make the bullet after the link to the present "sub-part" disappear -->
| tc = <!-- add:
* "it" for "introductory text"
* "b" for "book"
* "d" for "division"
* "t" for "title"
* "c" for "chapter"
* "s" for "section"
* "r" for "rule"
* "rg" for "regulation"
* "o" for "ordinance"
* "dn" for "direction"
* "dv" for "directive"
* "cl" for "clause"
* "a" for "article"
* "pr" for "provision"
* "pres" for "prescript"
* "presc" for "prescription"
* "prec" for "precept"
* "trans" for "transitional provisions"
* "cts" for "countersignature"
* "sog" for "statement of grounds"
* "0" for anything else, and use "tc-0 = [desired tc]"
-->

<!-- right -->
| r = <!-- left blank to make "»" disappear -->
| r-b = <!-- add the number of or link to the next "book" -->
| r-d = <!-- add the number of or link to the next "division" -->
| r-t = <!-- add the number of or link to the next "title" -->
| rb-t = <!-- left blank to make the bullet after the link to the next "title" disappear -->
| r-c = <!-- add the number of or link to the next "chapter" -->
| rb-c = <!-- left blank to make the bullet after the link to the next "chapter" disappear -->
| r-p = <!-- add the number of or link to the next "part" -->
| rb-p = <!-- left blank to make the bullet after the link to the next "part" disappear -->
| r-sp = <!-- add the number of or link to the next "sub-part" -->
| rb-sp = <!-- left blank to make the bullet after the link to the next "sub-part" disappear -->
| r-s = <!-- add the number of or link to the next "section" -->
| rb-s = <!-- left blank to make the bullet after the link to the next "section" disappear -->
| r-r = <!-- add the number of or link to the next "rule" -->
| rb-r = <!-- left blank to make the bullet after the link to the next "rule" disappear -->
| r-rg = <!-- add the number of or link to the next "regulation" -->
| rb-rg = <!-- left blank to make the bullet after the link to the next "regulation" disappear -->
| r-o = <!-- add the number of or link to the next "ordinance" -->
| rb-o = <!-- left blank to make the bullet after the link to the next "ordinance" disappear -->
| r-dn = <!-- add the number of or link to the next "direction" -->
| rb-dn = <!-- left blank to make the bullet after the link to the next "direction" disappear -->
| r-dv = <!-- add the number of or link to the next "directive" -->
| rb-dv = <!-- left blank to make the bullet after the link to the next "directive" disappear -->
| r-cl = <!-- add the number of or link to the next "clause" -->
| rb-cl = <!-- left blank to make the bullet after the link to the next "clause" disappear -->
| r-a = <!-- add the number of or link to the next "article" -->
| rb-a = <!-- left blank to make the bullet after the link to the next "article" disappear -->
| r-pr = <!-- add the number of or link to the next "provision" -->
| rb-pr = <!-- left blank to make the bullet after the link to the next "provision" disappear -->
| r-pres = <!-- add the number of or link to the next "prescript" -->
| rb-pres = <!-- left blank to make the bullet after the link to the next "prescript" disappear -->
| r-presc = <!-- add the number of or link to the next "prescription" -->
| rb-presc = <!-- left blank to make the bullet after the link to the next "prescription" disappear -->
| r-prec = <!-- add the number of or link to the next "precept" -->
| rb-prec = <!-- left blank to make the bullet after the link to the next "precept" disappear -->
| r-cts = <!-- add "e" to make the link to the next "countersignature" appear -->
| r-sog = <!-- add "s" to make the link to the next "statement of grounds" appear -->

<!-- translation -->
| th = <!-- add:
* "b" for "book"
* "d" for "division"
* "t" for "title"
* "c" for "chapter"
* "pres" for "prescript"
* "presc" for "prescription"
* "prec" for "precept"
* "s" for "section"
* "r" for "rule"
* "rg" for "regulation"
* "o" for "ordinance"
* "dn" for "direction"
* "dv" for "directive"
* "cl" for "clause"
* "a" for "article"
* "trans" for "transitional provisions"
* "cts" for "countersignature", and use "th-cts-1 = [countersignature in Thai]", "th-cts-2 = [position in Thai]"
* "sog" for "statement of grounds"
-->
| th-1 = <!-- add the number of the book, division, title, etc -->
| en = <!-- add:
* "b" for "book"
* "d" for "division"
* "t" for "title"
* "c" for "chapter"
* "pres" for "prescript"
* "presc" for "prescription"
* "prec" for "precept"
* "s" for "section"
* "r" for "rule"
* "rg" for "regulation"
* "o" for "ordinance"
* "dn" for "direction"
* "dv" for "directive"
* "cl" for "clause"
* "a" for "article"
* "trans" for "transitional provisions"
* "cts" for "countersignature", and use "en-cts-1 = [countersignature in English]", "th-cts-2 = [position in English]"
* "sog" for "statement of grounds"
-->
| <!-- Thai text -->
| <!-- English translation -->
}}

Examples[edit]

Example 1[edit]

{{translation table/thlaw
<!-- style -->
| bg1 = ebe2f7
| bg2 = e4cfff

<!-- left -->
| l-d = d1
| l-t = d2-t9
| l-s = 287/2

<!-- middle -->
| tc = 0
| tc-0 = d2-t10-c1
| m-d = d2
| m-t = d2-t10

<!-- right -->
| r-d = d3
| r-t = d2-t11
| r-c = d2-t10-c2
| r-s = 289

<!-- translation -->
| th = c
| th-1 = ๑
| th-2 = ความผิดต่อชีวิต
| en = c
| en-1 = 1
| en-2 = Offences against life
}}
gives
« divttlsect
sectchapttldiv »
divttltoc

หมวด ๑
ความผิดต่อชีวิต

Chapter 1
Offences against life

Example 2[edit]

{{translation table/thlaw
<!-- left -->
| l-d = d1
| l-t = d2-t9
| l-s = 287/2

<!-- middle -->
| tc = s
| m-d = d2
| m-t = d2-t10
| m-c = d2-t10-c1

<!-- right -->
| r-d = d3
| r-t = d2-t11
| r-c = d2-t10-c2
| r-s = 289

<!-- translation -->
| th = s
| th-1 = ๒๘๘
| en = s
| en-1 = 288
| ผู้ใดฆ่าผู้อื่น ต้องระวางโทษประหารชีวิต จำคุกตลอดชีวิต หรือจำคุกตั้งแต่สิบห้าปีถึงยี่สิบปี
| Any person who kills another shall be liable to death, imprisonment for life, or imprisonment from fifteen years to twenty years.
}}
gives
« divttlsect
sectchapttldiv »
divttlchaptoc

มาตรา ๒๘๘

ผู้ใดฆ่าผู้อื่น ต้องระวางโทษประหารชีวิต จำคุกตลอดชีวิต หรือจำคุกตั้งแต่สิบห้าปีถึงยี่สิบปี

Section 288

Any person who kills another shall be liable to death, imprisonment for life, or imprisonment from fifteen years to twenty years.

See also[edit]