Template:Weibo displays an external link to a page at Weibo.com, the Sina Weibo website. It is intended for use in the external links section of an article.

Usage edit

Unnamed parameters:

{{Weibo | ID }}
{{Weibo | ID | NAME }}

Named parameters:

{{Weibo | id= ID }}
{{Weibo | id= ID | name= NAME }}

Using Wikidata property Weibo user ID (P3579):

{{Weibo }}
{{Weibo | name= NAME }}

Supports:

Numerical ID
Domain hack
Nickname only

Examples edit

Unnamed parameters edit

Usage:

* {{Weibo | zhangzilin | Zhang Zilin 张梓琳 }}

Output:

URL:

https://weibo.com/zhangzilin

Named parameters edit

Usage:

* {{Weibo |id= 2692396272 |name= Zhang Hao 张昊 }}

Output:

URL:

https://weibo.com/u/2692396272

No ID in template or Wikidata edit

Usage:

* {{Weibo}}

Output:

  • {{Weibo}} template missing ID and not present in Wikidata.

TemplateData edit

This 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 Weibo.com, the Sina Weibo website. It is intended for use in the external links section of an article.

Template parameters

ParameterDescriptionTypeStatus
idid 1

The "id" parameter (or unnamed parameter "1") should contain the ID portion of the URL. Example: zhangzilin is the ID portion of https://weibo.com/zhangzilin. This parameter is optional if Wikidata property P3579 exists, but required if not.

Default
Wikidata property P3579
Stringoptional
namename 2

The "name" parameter (or unnamed parameter "2") may be used to specify the link text, which should be the name of the athlete. This parameter is optional; it defaults to the Wikipedia article name, without disambiguation.

Default
{{PAGENAMEBASE}}
Stringoptional

Tracking categories edit

"id" parameter exists
"id" parameter does not exist