قالب:رابط ويكي بيانات بديل/شرح
هذه صفحة توثيق قالب:رابط ويكي بيانات بديل الفرعية، لشرح القالب وتصنيفه، وهي لا تدخل في استخدامه. |
هذا القالب يستعمل لوا: |
Usage
This template (previously called قالب:رابط ويكي بيانات بديل) takes a Wikidata entity number as an unnamed parameter and provides a link to the corresponding article on the English Wikipedia, or its Wikidata entity depending on whether the article exists or not.
Article exists
If the corresponding article exists then a direct link to the article is given (piped to the label on Wikidata).
{{رابط ويكي بيانات بديل|Q2076202}}
→- Explanation: (Q2076202) has a site link to يورك (كارولاينا الجنوبية). This link is piped to York.
{{رابط ويكي بيانات بديل|Q6622102}}
→- Explanation: (Q6622102) has a site link to Sunderland Bridge (village). This link is piped to Sunderland Bridge.
Article does not exist
If the corresponding article does not exist on the English Wikipedia, then a red link is displayed, followed by a link to its item on Wikidata.
{{رابط ويكي بيانات بديل|Q1897508}}
→- Explanation: There is no English Wikipedia article yet for this insect, so a red link is displayed.
{{رابط ويكي بيانات بديل|Q31692001}}
→- Explanation: There is no English Wikipedia article yet for this mountain, so a red link is displayed.
To suppress the link to Wikidata use |wd=off
, e.g.
{{رابط ويكي بيانات بديل|Q31692001|wd=off}}
→- Explanation: The link to Wikidata is not displayed now.
Label exists but article under that title already exists
If the corresponding article does not exist on the English Wikipedia but there is a different article at the item's label, then to avoid confusion, the label is not linked.
{{رابط ويكي بيانات بديل|Q2542189}}
→- Explanation: there is no English Wikipedia article for this fictional character "Ali", but the page علي بن أبي طالب already exists (cousin of the prophet Muhammad) so no link is provided.
{{رابط ويكي بيانات بديل|Q18977043}}
→- Explanation: there is no English Wikipedia article for the Dutch street "Bult", but the page Bult already exists (commune in France) so no link is provided.
No label defined
If there is no English label defined on Wikidata, then just a link to the Wikidata item is displayed. To fix this, please add a label to the Wikidata item.
{{رابط ويكي بيانات بديل|Q2212427}}
→- Explanation: this obscure list of football players does not have an equivalent in the English Wikipedia, and an English label is not defined, so only the Wikidata link can be shown.
{{رابط ويكي بيانات بديل|Q59208468}}
→- Explanation: this Chinese work from the Qing Dynasty on Wikisource has no equivalent in the English Wikipedia, and an English label is not defined, so only the Wikidata link can be shown.
انظر أيضًا
- {{وإو|{{{2}}}}} which provides overlapping functionality
- {{GetQID|<Wikipedia page title>}} gives the qid from the sitelink
- {{وصلة ويكي بيانات|{{{2}}}}} (Shortcut: {{وصلة ويكي بيانات|<qid>}}) shows the Wikidata label and link, and links to the Wikidata page