แม่แบบ:สถานีย่อย
| มีการใช้แม่แบบนี้ประมาณ 81,000 หน้าและการแก้ไขอาจทำให้เกิดผลกระทบหรือสังเกตเห็นได้ ควรทดสอบการเปลี่ยนแปลงในกระบะทราย หรือหน้าทดสอบ หรือในหน้าย่อยผู้ใช้ของคุณเอง อนึ่ง อภิปรายเกี่ยวกับการแก้ไขแม่แบบได้ที่หน้าอภิปรายก่อนที่จะนำไปใช้ |
| แม่แบบนี้ใช้ลูอา |
แม่แบบนี้จะสร้างกล่องที่มีลิงก์เชื่อมโยงไปยังสถานีย่อยใดสถานีย่อยหนึ่งหรือหลาย ๆ สถานีย่อย มักใช้ในส่วน "ดูเพิ่ม" ของบทความ หากไม่มีสถานีย่อยก็จะไม่ปรากฏ
การใช้งาน
[แก้]การใช้งานพื้นฐาน
{{สถานีย่อย |สถานีย่อย 1 |สถานีย่อย 2 |สถานีย่อย 3 |... }}
ตำแหน่งการวางแม่แบบ
[แก้]แม่แบบนี้ควรวางไว้ที่ตำแหน่งด้านบนสุดของส่วน "ดูเพิ่ม" ของบทความ หากไม่มี คุณอาจวางไว้ในส่วน "แหล่งข้อมูลอื่น" แทนได้ โดยไม่จำเป็นต้องสร้างส่วนขึ้นมาใหม่เพียงเพื่อที่จะวางแม่แบบนี้ลงไปในบทความ หากไม่มีส่วน "แหล่งข้อมูลอื่น" ให้วางไว้ด้านล่างของบทความในตำแหน่งที่เหมาะสมที่สุด
การวางแม่แบบสถานีย่อยบนหน้าประเภทอื่นที่ไม่ใช่หน้าบทความ ยังไม่มีกฎเกณฑ์ตายตัว
รูป
[แก้]ชื่อรูปสถานีย่อยถูกบรรจุไว้ในหน้าย่อยของมอดูล:Portal/images ซึ่งจัดตามตัวอักษรหรือสระตัวแรกของชื่อสถานีย่อย ตัวอย่างเช่น ตัวอักษรตัวแรกของ สถานีย่อย:ดนตรี คือ "ด" ดังนั้นชื่อรูปจะบรรจุไว้ที่ มอดูล:Portal/images/ด หากมีรายการสำหรับสถานีย่อยในหน้าที่ถูกต้อง รูปภาพที่เกี่ยวข้องจะแสดงก่อนลิงก์สถานีย่อย หากไม่พบรูป ไฟล์:Portal-puzzle.svg จะแสดงแทน
รายชื่อของหน้าย่อยรูป | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
ตัวอย่าง
[แก้]| โค้ด | ผลที่แสดง |
|---|---|
{{สถานีย่อย|วิทยาศาสตร์}} |
พารามิเตอร์
[แก้]| ชื่อ | ตัวแปร | คำอธิบาย |
|---|---|---|
1, 2, 3 ... | The portal name, e.g. Literature | The positional parameters specify the portals to be displayed. |
left | yes | If set to yes, the portal appears on the left side of the page instead of the right. |
margin | CSS margin value, e.g. 1.2em 3em 0.5em 1em | This allows you to set a custom margin. All valid CSS margin values are accepted. |
break | yes | If set to yes, a line break is inserted after the portal name and before the word portal. |
redlinks | Any of the following values: yes, y, true, or include | Redlinks will be displayed. The default is to suppress redlinks. |
nominimum | Any of the following values: yes, y, or true | Suppresses the warning if no parameters are supplied. This can be useful when Template:Portal is called by another template. |
border | Any of the following values: no, n, or false | Turn off border and background |
tracking | Any of the following values: no, n, false | Tracking categories will be suppressed. The default is to use tracking categories, except on certain namespaces and on pagenames which contain "/archive", "/doc" or "/test". |
ติดตามข้อผิดพลาด
[แก้]หากใช้แม่แบบไม่ถูกต้อง หน้าจะถูกเพิ่มในหมวดหมู่ติดตาม
The tracking categories are not applied if any of the following is true:
- Tracking is specially disabled for that usage. This is done by setting the optional parameter
|tracking=to any the following values:no,n,false - the template is used on a page in any of these namespaces: Talk, User, User talk, Wikipedia talk, File talk, Template talk, Category talk, Portal talk, Draft, Draft talk, Module talk
- The title page on which the template is used includes any of the following case-insensitive strings: "/archive", "/doc", "/test"
เวอร์ชันอื่นที่เหมาะกับมือถือ
[แก้]สำหรับเวอร์ชันที่มองเห็นได้ในหน้าวิกิพีเดียเวอร์ชันสิ่งพิมพ์และมือถือ โปรดดู:
- {{Portal-inline}}
- {{Portal bar}}
- เวอร์ชันมือถือของแม่แบบ:สถานีย่อย
- เวอร์ชันเดสก์ท็อปของแม่แบบ:สถานีย่อย
ดูเพิ่ม
[แก้]- {{Subject bar}}
ข้อมูลแม่แบบ
[แก้]TemplateData documentation used by VisualEditor and other tools | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
แม่แบบสำหรับสร้างรายการสถานีย่อย
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||