Zeroclanzhang(讨论 | 贡献) (创建页面,内容为“{{Documentation subpage}} {{High-use}} <!-- Template categories go at the bottom of this page. --> {{Template shortcut|Q|wde|WDE|wdq|WDQ}} {{Lua|Module:Wd}} '''{{NAMESPACE}}:{{BASEPAGENAME}}''' is used to get an automatically localized link to a Wikidata item or property. == Usage examples == ; Standard usage : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}}}</code> → {{{{BASEPAGENAME}} }} : <code><nowiki>{{</nowiki>{{BASEPAGENAME}}|1}}</code> → {{{{BASEPAGENA…”) |
(没有差异)
|
2024年1月20日 (六) 21:04的最新版本
| This is a documentation subpage for 模板:Wikidata entity link. It may contain usage information, categories and other content that is not part of the original 模板 page. |
| This template is used on many pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
| This template uses Lua: |
模板:Wikidata entity link is used to get an automatically localized link to a Wikidata item or property.
Usage examples
- Standard usage
{{Wikidata entity link}}→ [[d:Special:EntityPage/Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value)|Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value))]]{{Wikidata entity link|1}}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (Q1){{Wikidata entity link|Q1}}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (Q1){{Wikidata entity link|P681}}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (P681)
- Leading/trailing white space
{{Wikidata entity link | 1 }}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (Q1){{Wikidata entity link | Q1 }}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (Q1){{Wikidata entity link | P681 }}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (P681)
- Lower case
{{Wikidata entity link | q1 }}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (Q1){{Wikidata entity link | p681 }}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (P681)
- Template shortcuts
{{q|1}}→ Lua错误 在模块:Wd的第621行:attempt to index field 'wikibase' (a nil value) (Q1){{wde|Q1}}→ 模板:Wde{{wdq|P681}}→ 模板:Wdq
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Wikidata entity link in articles based on its TemplateData.
TemplateData for Wikidata entity link
无描述。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| item or property number | 1 | The letter P is required when linking to properties. The letter Q is optional when linking to items.
| 单行文本 | 推荐 |
See also
- d:Template:Q
- d:Template:Property
- {{Get QID|<Wikipedia page title>}}
{{Label}}{{LinkedLabel}}{{Wikidata fallback link}}{{Wikidata property}}{{Wikidata property link}}{{Authority control}}{{QID}}