แม่แบบ:Wikidata sitelink
Usage[แก้]
แม่แบบนี้ใช้ลูอา |
This template gets the specified interlanguage link for the current article from Wikidata. If not found or a Wikidata item for the article does not exist, it will return an empty string. Use the |lang=
parameter to specify an ISO 639-1 language code, and optionally, the |project=
parameter if you want to get the link for a project other than Wikipedia. Note that the template will only return the page name, it does not automatically create a link.
Examples[แก้]
{{Wikidata sitelink|lang=de}}
{{Wikidata sitelink|lang=de|project=wikiquote}}
TemplateData[แก้]
This template gets the specified interlanguage link for the current article from Wikidata. If not found or a Wikidata item for the article does not exist, it will return an empty string.
พารามิเตอร์ | คำอธิบาย | ชนิด | สถานะ | |
---|---|---|---|---|
lang | lang | ISO 639-1 language code specifying the language you want to get the sitelink for.
| สตริง | จำเป็น |
project | project | The project to get the sitelink for, if not Wikipedia.
| สตริง | เลือกได้ |
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:Wikidata sitelink/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |