Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Help
Introduction to techRepo
Quick links
Main site
GitHub
SNS
Instagram
LinkedIn
X (Twitter)
YouTube
Search
Search
English
Appearance
Create account
Log in
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Editing
Template
:
Law of Thailand/doc
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Page information
Information about this page.
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage}}{{template shortcut|lawth}} ==Purpose== 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== Used to create the heading of a section. ===With anchor, without link to TOC=== ; Usage <pre>{{lawth|s|the number of the section}}</pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|s|123}}text text text</pre> {{lawth|s|123}}text text text </div> ===With anchor & link to TOC=== Used in the same way as the previous case, just add "1" after "s" in the following manner: <pre>{{lawth|s1|the number of the section}}</pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|s1|123}}text text text</pre> {{lawth|s1|123}}text text text </div> ===TOC entry for section=== Used to create a TOC entry for each section which contains an anchor and enables the linking to that section. ; Usage <pre>{{lawth|ts|the number of the section|text}}</pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> # {{lawth|ts|1|Title}} # {{lawth|ts|2|Commencement}} </pre> # {{lawth|ts|1|Title}} # {{lawth|ts|2|Commencement}} </div> ==Article== Used in the same way as "section", just change "s" to "a". The word "article" can be changed by the third parameter. ; Example 1 <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|a|123}}text text text</pre> {{lawth|a|123}}text text text </div> ; Example 2 <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|a|123|Rule}}text text text</pre> {{lawth|a|123|Rule}}text text text </div> ==Round bracket== Used to create the heading of a clause in round brackets. ; Usage <pre>{{lawth|rb|the heading}}</pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|rb|a}}text text text</pre> {{lawth|rb|a}}text text text </div> ==Chapter== Used to create the heading of a chapter. ===With anchor, without link to TOC=== <pre>{{lawth|c|the number of the chapter|the title of the chapter}}</pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> {{lawth|c|123|text text text}} </pre> {{lawth|c|123|text text text}} </div> ===With anchor & link to TOC=== Used in the same way as the previous case, just add "1" after "c" in the following manner: <pre>{{lawth|c1|the number of the chapter|the title of the chapter}}</pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> {{lawth|c1|123|text text text}} </pre> {{lawth|c1|123|text text text}} </div> ===TOC entry for chapter=== Used to create a TOC entry for a chapter which contains an anchor and enables the linking to the chapter. <pre>{{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) }} </pre> ; Example 1 <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|tc|1|text text text|s=1|ss=10}}</pre> {{lawth|tc|1|text text text|s=1|ss=10}} </div> ; Example 2 <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|1=tc|2=1|3=text text text|4=title1|s=1|plr=}}</pre> {{lawth|1=tc|2=1|3=text text text|4=title1|s=1|plr=}} </div> ; Example 3 <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|tc|1|text text text}}</pre> {{lawth|tc|1|text text text}} </div> ===Plain TOC entry for chapter=== 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: <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> # {{lawth|tc1|1|text text text|s=1|ss=10}} # {{lawth|tc1|2|text text text|s=11|ss=15}} </pre> # {{lawth|tc1|1|text text text|s=1|ss=10}} # {{lawth|tc1|2|text text text|s=11|ss=15}} </div> ==Part== Used to create the heading of a part. ===With anchor, without link to TOC=== <pre>{{lawth|p|the number of the chapter|the number of the part|the title of the part}}</pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> {{lawth|p|1|2|text text text}} </pre> {{lawth|p|1|2|text text text}} </div> ===With anchor & link to TOC=== Used in the same way as the previous case, just add "1" after "p" in the following manner: <pre>{{lawth|p|the number of the chapter|the number of the part|the title of the part}}</pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> {{lawth|p1|1|2|text text text}} </pre> {{lawth|p1|1|2|text text text}} </div> ===TOC entry for part=== Used to create a TOC entry for a part which contains an anchor and enables the linking to the part. <pre>{{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) }} </pre> ; Example 1 <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|tp|1|1|text text text|s=1|ss=10}}</pre> {{lawth|tp|1|1|text text text|s=1|ss=10}} </div> ; Example 2 <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|1=tp|2=1|3=1|4=text text text|5=book1|s=1|plr=}}</pre> {{lawth|1=tp|2=1|3=1|4=text text text|5=book1|s=1|plr=}} </div> ; Example 3 <div style="border:thin blue solid; padding:8px; margin:4px"> <pre>{{lawth|tp|1|1|text text text}}</pre> {{lawth|tp|1|1|text text text}} </div> ===Plain TOC entry for chapter=== 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: <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> # {{lawth|tp1|1|1|text text text|s=1|ss=10}} # {{lawth|tp1|1|2|text text text|s=11|ss=15}} </pre> # {{lawth|tp1|1|1|text text text|s=1|ss=10}} # {{lawth|tp1|1|2|text text text|s=11|ss=15}} </div> ==Other heading== Used to create any other kind of heading. ===With anchor, without link to TOC=== <pre> {{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) }} </pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> {{lawth|h|Transitory Provisions}} </pre> {{lawth|h|Transitory Provisions}} </div> ===With anchor & link to TOC=== Used in the same way as the previous case, just add "1" after "h" as in the following example: <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> {{lawth|h1|Transitory Provisions}} </pre> {{lawth|h1|Transitory Provisions}} </div> ===TOC entry for heading=== Used to create a TOC entry for a heading which contains an anchor and enables the linking to the heading. ; Usage <pre> {{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) }} </pre> ; Example <div style="border:thin blue solid; padding:8px; margin:4px"> <pre> # {{lawth|th|Transitory Provisions|s=1|ss=20}} </pre> # {{lawth|th|Transitory Provisions|s=1|ss=20}} </div> <includeonly> [[Category:Specific navigation templates]] </includeonly>
Summary:
Please note that all contributions to ARC Technical Repository may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TechRepo:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Pages included on this page:
Template:Anchor
(
edit
)
Template:Center
(
edit
)
Template:Center/e
(
edit
)
Template:Center/s
(
edit
)
Template:Center/styles.css
(
edit
)
Template:Div end
(
edit
)
Template:Documentation subpage
(
edit
)
Template:Font-size
(
edit
)
Template:Font-size-base
(
edit
)
Template:Fs
(
edit
)
Template:Gap
(
edit
)
Template:Law of Thailand
(
edit
)
Template:Lawth
(
edit
)
Template:Mbox
(
edit
)
Template:Optional style
(
edit
)
Template:Plainlist/styles.css
(
edit
)
Template:Rule
(
edit
)
Template:Rule/styles.css
(
edit
)
Template:Smaller
(
edit
)
Template:Strong
(
edit
)
Template:Template shortcut
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Unbulleted list
(
edit
)
Template:Yesno
(
edit
)
Module:Anchor
(
edit
)
Module:Arguments
(
edit
)
Module:List
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:Optional style
(
edit
)
Module:TableTools
(
edit
)
Module:Text
(
edit
)
Module:Text/data
(
edit
)
Module:Yesno
(
edit
)
Search
Search
Editing
Template
:
Law of Thailand/doc
Add languages
Add topic