แม่แบบ:กล่องโครงการพี่น้อง

Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

แม่แบบ {{กล่องโครงการพี่น้อง}} ลิงก์หน้าที่เกี่ยวข้องกับโครงการพี่น้องวิกิมีเดียต่าง ๆ ค้นหาหน้าต่อไปนี้ตามลำดับ:

  • หน้าที่ชัดเจนซึ่งเลือกโดยผู้แก้ไข (ถ้ามีให้)
  • ไซต์ลิงก์ในวิกิสนเทศ (ถ้ามี)
  • หน้าค้นหาโครงการพี่น้อง

การส่งผู้อ่านไปยังหน้าค้นหาอาจเป็นประสบการณ์ที่ไม่น่าพอใจ หากไม่มีหน้าที่เกี่ยวข้องสำหรับเรื่องนั้น ผู้แก้ไขมีทางเลือกระหว่างสองวิธีในการป้องกันประสบการณ์เชิงลบนี้:

  • ตรวจสอบแต่ละโครงการด้วยตนเองสำหรับหน้าที่เกี่ยวข้อง หากไม่มี ให้ตั้งค่าอาร์กิวเมนต์เป็น "no" (เช่น |wikt=n)
  • ใช้ "โหมดอัตโนมัติ" ซึ่งจะแสดงเฉพาะโครงการพี่น้องโดยค่าเริ่มต้น หากมีไซต์ลิงก์อยู่(เช่น |auto=yes)

โปรดทราบว่า {{กล่องโครงการพี่น้องอัตโนมัติ}} เทียบเท่ากับ {{กล่องโครงการพี่น้อง|auto=yes}}

พารามิเตอร์ แก้

{{กล่องโครงการพี่น้อง
<!-- การกำหนดค่าพารามิเตอร์ อย่าปล่อยให้ว่าง; เพิ่มหรือลบ -->
 |1= |auto= |collapsible= |display= |position= |style= 

<!-- โครงการที่ค่าเริ่มต้นเป็น "yes" เมื่อ auto=no -->
 |b= |c= |n= |q= |s= |v= |wikt= 

<!-- โครงการที่ค่าเริ่มต้นเป็น "no" เมื่อ auto=no -->
 |d= |m= |mw= |species= |species_author= |voy= 

 |author= <!-- บังคับค้นหาชื่อผู้แต่งในวิกิซอร์ซ -->
 |commonscat= <!-- บังคับลิงก์ไปที่หมวดหมู่คอมมอนส์ -->
}}

พารามิเตอร์ทั้งหมด:
{{กล่องโครงการพี่น้อง |1= |author= |auto= |b= |c= |collapsible= |commonscat= |d= |display= |m= |mw= |n= |position= |q= |qid= |s= |species= |species_author= |style= |v= |voy= |wikt= }}

การแสดงผลเริ่มต้น แก้

สำหรับพารามิเตอร์ทุกโครงการใด มีสี่ค่าที่ยอมรับได้:

  • "yes" หมายถึง หาลิงก์ที่สมเหตุสมผลสำหรับโครงการพี่น้อง (วิกิสนเทศหรือค่าเริ่มต้นกลับไปที่การค้นหา)
  • "no" หมายถึง ไม่รวมโครงการพี่น้องนี้: ไม่มีลิงก์
  • สตริง หมายถึง ลิงก์ไปยังหน้าที่มีชื่อสตริงนั้น
  • ว่างหรือไม่มี หมายถึง ใช้ค่าเริ่มต้น
    • ถ้า |auto=yes ค่าเริ่มต้นคือใช้วิกิสนเทศ (ถ้ามี) หรือวางลิงก์
    • ถ้า |auto=no หากโครงการอยู่ในรายการ "yes" ด้านบน ใช้วิกิสนเทศหรือค้นหา มิฉะนั้นให้วางลิงก์

ข้อมูลแม่แบบ แก้

ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ กล่องโครงการพี่น้อง (ยังไม่มีการตรวจสอบ)

Displays a terminal window with a set of commands. If the titles in the individual sister projects differ, use the following parameters, which are taken from [[Help:Interwiki linking]].

พารามิเตอร์แม่แบบ[แก้ไขข้อมูลแม่แบบ]

พารามิเตอร์คำอธิบายชนิดสถานะ
Search Parameter1

ใช้ หาก ''พารามิเตอร์การค้นหา'' แตกต่างจากชื่อหน้า

สตริงเลือกได้
Use wikidata to fill defaultsauto

If auto="yes", then sister projects with wikidata sitelinks are filled-in, others are off by default. Each project can be overridden with its own parameter.

สตริงเลือกได้
Collapsible?collapsible

Set to "yes" to make the template collapsible. Set to "collapsed" to make the template collapsible and initially collapsed.

สตริงเลือกได้
Display namedisplay

Use if the ''display name'' is different from the search term. For example, the bear article would be 'Bears'.

สตริงเลือกได้
Wiktionary linkwikt

Wiktionary link to show. Acceptable values are a page name, "yes", and "no". The default is "Yes" (find page automatically).

ค่าปริยาย
Yes
สตริงเลือกได้
Commons linkc commons

Commons link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

ค่าปริยาย
Yes
สตริงเลือกได้
Commons category?commonscat

Specifies whether a link to a category on Wikimedia Commons is shown. Can be "yes" or "no". The default is "No".

ค่าปริยาย
No
สตริงเลือกได้
Wikinews linkn

Wikinews link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

ค่าปริยาย
Yes
สตริงเลือกได้
Wikiquote linkq

Wikiquote link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

ค่าปริยาย
Yes
สตริงเลือกได้
Wikisource links

Wikisource link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

ค่าปริยาย
Yes
สตริงเลือกได้
Wikisource author?author

Use for articles about authors to force the Wikisource links to include the "Author:" prefix. Can be set to "yes" or "no". The default is "No".

ค่าปริยาย
No
สตริงเลือกได้
Wikibooks linkb

Wikibooks link to show. Acceptable values are a page name, "yes" and "no". The default is "Yes" (find page automatically).

ค่าปริยาย
Yes
สตริงเลือกได้
Wikivoyage linkvoy

Wikivoyage link to show. Acceptable values are a page name, "yes" (find page automatically), and "no". The default is "No".

ค่าปริยาย
No
สตริงเลือกได้
Wikiversity linkv

Wikiversity link to show. Acceptable values are a page name, "yes", and "no". The default is "Yes" (find page automatically).

ค่าปริยาย
Yes
สตริงเลือกได้
Wikidata linkd

Wikidata link to show. Acceptable values are a QID, "yes" (find page automatically), and "no". The default is "No".

ค่าปริยาย
No
สตริงเลือกได้
Wikispecies taxon linkspecies

Wikispecies link to show. Acceptable values are a page name, "yes" (find page automatically), and "no". The default is "No".

ค่าปริยาย
No
สตริงเลือกได้
Wikispecies author linkspecies_author

Wikispecies author link to show. Acceptable values are a page name, "yes"(find page automatically), and "no". The default is "No".

ค่าปริยาย
No
สตริงเลือกได้
Meta linkm

Meta link to show. Acceptable values are a page name, "yes" (find page automatically), and "no". The default is "No".

ค่าปริยาย
No
สตริงเลือกได้
MediaWiki linkmw

MediaWiki link to show. Acceptable values are a page name, "yes" (find page automatically) and "no". The default is "No".

ค่าปริยาย
No
สตริงเลือกได้
Positionposition

Specifies whether the box floats to the left or right. The only acceptable value is "left" which causes the box to float to the left. Any other value (not specifying this parameter) activates the default. (Float to the right.)

สตริงเลือกได้
CSS stylestyle

Optional CSS style specifications. Use with caution. (And don't use for evil!)

สตริงเลือกได้

ตำแหน่ง แก้

If using a large, graphical template produces odd layout problems, like the excessive white space shown on the right of this screenshot, then switch to a different sister template.

โดยทั่วไป:

 ไม่สำเร็จ Do not place this template in a section all by itself.
 ไม่สำเร็จ อย่าวางแม่แบบนี้ในส่วนที่มีคอลัมน์

โดยเฉพาะ:

หมวดหมู่ติดตาม แก้

การใช้รูปภาพ แก้

แม่แบบนี้อาจแสดงรูปภาพต่อไปนี้:

โลโก้วิกิพจนานุกรม wikt
โลโก้วิกิมีเดียคอมมอนส์ c or commons
โลโก้วิกิข่าว n
โลโก้วิกิคำคม q
โลโก้วิกิซอร์ซ s
โลโก้วิกิตำรา b
โลโก้วิกิท่องเที่ยว voy
โลโก้วิกิวิทยาลัย v
โลโก้วิกิสนเทศ d
โลโก้วิกิสปีชีส์ species หรือ species_author
โลโก้เมทา-วิกิ m
โลโก้มีเดียวิกิ mw

ดูเพิ่ม แก้