แม่แบบ:tnavbar
- เอกสารการใช้งานต่อไปนี้ตั้งอยู่ที่ แม่แบบ:tnavbar/documentation [แก้ไข]
- ลิงก์ที่เป็นประโยชน์: รายชื่อหน้าย่อย • การรวมมา • หน้าเปลี่ยนทาง
This template is used on 5,000,000+ pages. To avoid large-scale disruption and unnecessary server load, any changes should first be tested in this template's /sandbox or /testcases subpage, or in your own user space. The tested changes can then be added in one single edit to this template. Please consider discussing any changes on the talk page before implementing them. |
Usage แก้ไข
General แก้ไข
Copyable examples when inside a given template adds navbar navigational functionality:
- {{tnavbar|{{subst:PAGENAME}}|mini=1}}
- {{tnavbar|{{subst:PAGENAME}}|plain=1}}
- {{tnavbar|{{subst:PAGENAME}}|mini=1|nodiv=1}}
- {{tnavbar|{{subst:PAGENAME}}|plain=1|nodiv=1}}
- {{tnavbar|{{subst:PAGENAME}}|fontstyle=color:green}}
- The
{{subst:PAGENAME}}
will be substituted with the template's name when parsed by the servers. - {{tnavbar|navbar/doc}} gives:
Deprecated parameters แก้ไข
The miniv=1, viewplain=1 and fontcolor= parameters have been deprecated. To use the view-only version, use the แม่แบบ:tlx or แม่แบบ:tlx templates instead.
Examples แก้ไข
Required parameters แก้ไข
{{tnavbar|Name of Template}}
the template name is required.
Optional parameters แก้ไข
Options | Parameters | Produces... |
---|---|---|
Normal | {{tnavbar|Template Name}} |
|
No "This box:" text. | {{tnavbar|Template Name|plain=1}} |
|
Short version. | {{tnavbar|Template Name|mini=1}} |
|
Good for "blending" into text. | {{tnavbar|Template Name|nodiv=1}} |
Lorem Ipsum |
Blended, no "This box:" text. | {{tnavbar|Template Name|plain=1|nodiv=1}} |
Lorem Ipsum |
Blended, short version. | {{tnavbar|Template Name|mini=1|nodiv=1}} |
Lorem Ipsum |
For a color option. | {{tnavbar|Template Name|fontstyle=color:green}} |
Prepackaged แก้ไข
{{Tnavbar-header}}
- Positions ด • พ • ก on the right edge of the line, often used in non-collapsible navbox heading.
{{Tnavbar-navframe}}
- For use in conjunction with Navframe divs, positions ด • พ • ก opposite of the [hide]/[show] feature.
{{Tnavbar-collapsible}}
- For use in conjunction with Collapsible tables,floats ด • พ • ก opposite of the [hide]/[show] feature.
See also แก้ไข
{{Codifiednavbar}}
{{Edit templates}}