Template:Law of Thailand
Purpose
[edit]This template is for navigation within the works relating to the legislation of Thailand.
On this page, "anchor" refers to an anchor point created with Template:Anchor, and "TOC" refers to a table of contents.
Section
[edit]Used to create the heading of a section.
With anchor, without link to TOC
[edit]- Usage
{{lawth|s|the number of the section}}
- Example
{{lawth|s|123}}text text text
Section123.text text text
With anchor & link to TOC
[edit]Used in the same way as the previous case, just add "1" after "s" in the following manner:
{{lawth|s1|the number of the section}}
- Example
{{lawth|s1|123}}text text text
Section123.text text text
TOC entry for section
[edit]Used to create a TOC entry for each section which contains an anchor and enables the linking to that section.
- Usage
{{lawth|ts|the number of the section|text}}
- Example
# {{lawth|ts|1|Title}} # {{lawth|ts|2|Commencement}}
Article
[edit]Used in the same way as "section", just change "s" to "a". The word "article" can be changed by the third parameter.
- Example 1
{{lawth|a|123}}text text text
Article123.text text text
- Example 2
{{lawth|a|123|Rule}}text text text
Article123.text text text
Round bracket
[edit]Used to create the heading of a clause in round brackets.
- Usage
{{lawth|rb|the heading}}
- Example
{{lawth|rb|a}}text text text
(a)text text text
Chapter
[edit]Used to create the heading of a chapter.
With anchor, without link to TOC
[edit]{{lawth|c|the number of the chapter|the title of the chapter}}
- Example
{{lawth|c|123|text text text}}
Chapter 123
text text text
With anchor & link to TOC
[edit]Used in the same way as the previous case, just add "1" after "c" in the following manner:
{{lawth|c1|the number of the chapter|the title of the chapter}}
- Example
TOC entry for chapter
[edit]Used to create a TOC entry for a chapter which contains an anchor and enables the linking to the chapter.
{{lawth |1=tc |2=the number of the chapter |3=the title of the chapter |4=the anchor for a larger part (if any) |s=the first section in the chapter (optional) |ss=the last section in the chapter (optional) |plr=used to remove "s" after "section", see example below (optional) }}
- Example 1
{{lawth|tc|1|text text text|s=1|ss=10}}
Chapter 1 text text text (Sections 1–10)
- Example 2
{{lawth|1=tc|2=1|3=text text text|4=title1|s=1|plr=}}
Chapter 1 text text text (Section 1)
- Example 3
{{lawth|tc|1|text text text}}
Plain TOC entry for chapter
[edit]Used to create a TOC entry for a chapter as in the previous case, but without the chapter heading. Used in the same way as the previous case, just add "1" after "tc" as in the following example:
# {{lawth|tc1|1|text text text|s=1|ss=10}} # {{lawth|tc1|2|text text text|s=11|ss=15}}
- text text text (Sections 1–10)
- text text text (Sections 11–15)
Part
[edit]Used to create the heading of a part.
With anchor, without link to TOC
[edit]{{lawth|p|the number of the chapter|the number of the part|the title of the part}}
- Example
{{lawth|p|1|2|text text text}}
Part 2
text text text
With anchor & link to TOC
[edit]Used in the same way as the previous case, just add "1" after "p" in the following manner:
{{lawth|p|the number of the chapter|the number of the part|the title of the part}}
- Example
TOC entry for part
[edit]Used to create a TOC entry for a part which contains an anchor and enables the linking to the part.
{{lawth |1=tc |2=the number of the chapter |3=the number of the part |4=the title of the part |5=the anchor for a larger part (if any) |s=the first section in the chapter (optional) |ss=the last section in the chapter (optional) |plr=used to remove "s" after "section", see example below (optional) }}
- Example 1
{{lawth|tp|1|1|text text text|s=1|ss=10}}
Part 1 text text text (Sections 1–10)
- Example 2
{{lawth|1=tp|2=1|3=1|4=text text text|5=book1|s=1|plr=}}
Part 1 text text text (Section 1)
- Example 3
{{lawth|tp|1|1|text text text}}
Plain TOC entry for chapter
[edit]Used to create a TOC entry for a part as in the previous case, but without the chapter heading. Used in the same way as the previous case, just add "1" after "tp" as in the following example:
# {{lawth|tp1|1|1|text text text|s=1|ss=10}} # {{lawth|tp1|1|2|text text text|s=11|ss=15}}
- text text text (Sections 1–10)
- text text text (Sections 11–15)
Other heading
[edit]Used to create any other kind of heading.
With anchor, without link to TOC
[edit]{{lawth |1=h |2=the name of the anchor |3=the heading (omit this if it is the same as parameter "2") |4=font size (optional, just add the number without "%", such as "120", "140", etc) }}
- Example
{{lawth|h|Transitory Provisions}}
Transitory Provisions
With anchor & link to TOC
[edit]Used in the same way as the previous case, just add "1" after "h" as in the following example:
TOC entry for heading
[edit]Used to create a TOC entry for a heading which contains an anchor and enables the linking to the heading.
- Usage
{{lawth |1=th |2=the name of the anchor |3=the heading (omit this if it is the same as parameter "2") |s=the first section in the chapter (optional) |ss=the last section in the chapter (optional) |plr=used to remove "s" after "section", see example below (optional) }}
- Example
# {{lawth|th|Transitory Provisions|s=1|ss=20}}
- Transitory Provisions (Sections 1–20)