This is a documentation subpage for Template:Weibo. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Template:Weibo displays an external link to a page at the Weibo website. It is intended for use in the external links section of an article.
Usage
editUnnamed parameters:
{{Weibo | ID }}
{{Weibo | ID | NAME }}
Named parameters:
{{Weibo | id= ID }}
{{Weibo | id= ID | name= NAME }}
Using Wikidata property:
{{Weibo }}
{{Weibo | name= NAME }}
Supports:
- Numerical ID
- Domain hack
- Nickname only
Examples
editUnnamed parameters
editUsage:
* {{Weibo | zhangzilin | Zhang Zilin 张梓琳 }}
Output:
- Zhang Zilin 张梓琳 on Weibo (in Chinese)
URL:
Named parameters
editUsage:
* {{Weibo |id= 2692396272 |name= Zhang Hao 张昊 }}
Output:
- Zhang Hao 张昊 on Weibo (in Chinese)
URL:
No ID in template or Wikidata
editUsage:
* {{Weibo}}
Output:
- {{Weibo}} template missing ID and not present in Wikidata.
TemplateData
editThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Weibo in articles based on its TemplateData.
TemplateData for Weibo
This template displays an external link to a page at the Weibo website. It is intended for use in the external links section of an article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | id 1 | The ID portion of the URL, such as zhangzilin in https://weibo.com/zhangzilin. This parameter is optional if Wikidata property P3579 exists, but required if not.
| String | optional |
Name | name 2 | The link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.
| String | optional |
Tracking categories
edit- "id" parameter exists
- "id" parameter does not exist