แม่แบบ:SimpleNuclide2

จากวิกิพีเดีย สารานุกรมเสรี

แม่แบบนิวไคลด์ ใช้สำหรับแสดงผลนิวไคลด์ ไอโซโทป และสัญลักษณ์ของธาตุเคมี โดยเฉพาะในการแสดงผลในสมการทางเคมี

ต่อไปนี้เป็นรายการแม่แบบต่างๆ และตัวอย่างการแสดงผลของ คาร์บอน-12 ทั้งแบบที่มีลิงก์และไม่มีลิงก์

ชื่อแม่แบบ แบบไม่มีลิงก์ แบบมีลิงก์
{{Element2}} C C
{{SimpleNuclide2}} 12
C
12
C
{{Nuclide2}} 12
6
C
12
6
C
{{ComplexNuclide2}} 12
6
C
12
6
C

แม่แบบชุดเก่าจะใช้ชื่อว่า {{Element}}, {{SimpleNuclide}}, {{Nuclide}}, {{ComplexNuclide}} (ในวิกิพีเดียภาษาอังกฤษ) แต่ในเวอร์ชั่นปรับปรุงใหม่จะมีเลข 2 ต่อท้ายชื่อแม่แบบ ซึ่งเพิ่มตัวเลือก link=yes ดูคำอธิบายการใช้งานเพิ่มเติมที่ด้านล่าง โปรดอย่าสร้างและใช้งานแม่แบบเก่าอีก หากพบการใช้งานแม่แบบเดิม โปรดช่วยกันเปลี่ยนให้เป็นแม่แบบใหม่ด้วยโดยการเติม 2 ต่อท้ายชื่อแม่แบบ และแทนที่ |link| ด้วย |link=yes|

ค่าตัวเลือก[แก้]

แม่แบบทั้งหมดในกลุ่มนี้ ใช้ค่าตัวเลือกแบบเดียวกัน

1 ชื่อของธาตุที่ส่งค่าเลขไอโซโทปกลับมา
2
(ไม่ใส่ก็ได้)
เลขมวลของไอโซโทป
ค่าพื้นฐานคือเลขมวลของไอโซโทปแบบสามัญที่สุดหรือไอโซโทปเสถียร
แม่แบบเก่าจะไม่แสดงค่านี้
3
(ไม่ใส่ก็ได้)
จำนวนบ่งบอก nuclear isomer ("m", "m2", etc...) เมื่อนิวเคลียสอยู่ในสถานะกระตุ้น
แม่แบบเก่าจะไม่แสดงค่านี้
link=yes
(ไม่ใส่ก็ได้)
สร้างลิงก์เชื่อมไปยังหน้าที่เกี่ยวข้องของธาตุหรือไอโซโทปโดยอัตโนมัติ
ไอโซโทปบางตัวอาจไม่มีหน้านี้ คุณสามารถสร้างหน้าดังกล่าวขึ้นได้และให้ทำหน้าเปลี่ยนทางไปยัง “ไอโซโทปของชื่อธาตุ
anti=yes
(ไม่ใส่ก็ได้)
ระบุธาตุที่เกิดจากปฏิสสาร สัญลักษณ์จะมีขีดด้านบน
charge=...
(ไม่ใส่ก็ได้)
ระบุประจุของอะตอมที่มีไอออน
q=...
(ไม่ใส่ก็ได้)
ระบุจำนวนของอะตอม (ใช้ในสมการทางเคมี)

ตัวอย่าง[แก้]

{{SimpleNuclide2|Carbon}} 12
C
{{SimpleNuclide2|Carbon|14}} 14
C
{{SimpleNuclide2|link=yes|Carbon}} 12
C
{{SimpleNuclide2|anti=yes|Carbon}} 12
C
{{SimpleNuclide2|link=yes|Carbon|14}} 14
C
{{SimpleNuclide2|Carbon|12|m}} 12m
C
{{Element2|Carbon|12|charge=2+}} C2+
{{ComplexNuclide2|link=yes|anti=yes|Carbon|12|m|charge=2+}} 12m
6
C2+
6

See en:User:SkyLined/List of nuclei for a list of all elements supported by these templates.

Dependencies[แก้]

  • All of these templates use {{ProtonsForElement}} to check if the element name is valid and, if the link=yes argument is used, check if you're not using the generic "X" or "element".
  • Some of these templates use {{ProtonsForElement}} to get the element number for a given element.
  • Some of these templates use {{NeutronsForElement}} to get the default number of neutrons for a given element.
  • Some of these templates use both {{ProtonsForElement}} and {{NeutronsForElement}} to get the default mass number for a given element.
  • These templates use {{LinkForElement}} to get the page to link to if the link=yes argument is used.
  • These templates use {{PhysicsParticle}} to create the HTML output in order to maintain a similar look and feel for all Physics symbols.

Incorrect use[แก้]

Pages that use these templates incorrectly will be added to Category:Pages with incorrect nuclide templates use. Please check there occasionally to make sure there aren't any.

Here are some samples of error messages:

{{Nuclide2 |Blabla}} unknown element Blabla .
{{Nuclide2 |Aluminum}} Aluminum is not a valid way to spell aluminium.
{{Element2 |Element |link=yes}} The generic element 'Element ' does not have a page to link to.