แม่แบบ:Wikidata sitelink/doc

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

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[แก้]

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.

พารามิเตอร์แม่แบบ

แม่แบบนี้ต้องการการจัดรูปแบบพารามิเตอร์แบบอินไลน์

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

ISO 639-1 language code specifying the language you want to get the sitelink for.

ตัวอย่าง
de
สตริงจำเป็น
projectproject

The project to get the sitelink for, if not Wikipedia.

ค่าปริยาย
wiki
ตัวอย่าง
wikiquote
สตริงเลือกได้