Bản mẫu:TikTok/doc

Bách khoa toàn thư mở Wikipedia

Bản mẫu:TikTok displays an external link to a page at TikTok, a social media website. It is intended for use in the external links section of an article.

Sử dụng[sửa mã nguồn]

Unnamed parameters
{{TikTok | account_name }}
{{TikTok | account_name | Displayed Name }}
Named parameters
{{TikTok | id= account_name }}
{{TikTok | id= account_name | name= Displayed Name }}
Using Wikidata property P7085
{{TikTok}}
{{TikTok | name= Displayed Name }}

Ví dụ[sửa mã nguồn]

Unnamed parameters[sửa mã nguồn]

URL:

https://www.tiktok.com/@wikipedia/

Usage:

{{TikTok | wikipedia | Wikipedia }}

Output:

Wikipedia trên TikTok

Named parameters[sửa mã nguồn]

URL:

https://www.tiktok.com/@kevin/

Usage:

{{TikTok | id= kevin | name= Kevin Systrom }}

Output:

Kevin Systrom trên TikTok

No parameters and Wikidata property not defined[sửa mã nguồn]

Usage:

{{TikTok}}

Output:

{{TikTok}} template missing ID and not present in Wikidata.

TemplateData[sửa mã nguồn]

Đây là tài liệu Dữ liệu bản mẫu cho bản mẫu này được sử dụng bởi Trình soạn thảo trực quan và các công cụ khác; xem báo cáo sử dụng tham số hàng tháng cho bản mẫu này.

Dữ liệu bản mẫu cho TikTok

This template displays an external link to a page at TikTok, a social media website. It is intended for use in the external links section of an article.

Tham số bản mẫu

Tham sốMiêu tảKiểuTrạng thái
idid 1

The "id" parameter (or unnamed parameter "1") should contain the account name in the URL. Example: kevin is the account name in https://www.tiktok.com/@kevin/. This parameter is optional if Wikidata property P7085 exists, but required if not.

Mặc định
Wikidata property P7085
Chuỗi dàitùy chọn
namename 2

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

Mặc định
{{PAGENAMEBASE}}
Chuỗi dàitùy chọn

Thể loại theo dõi[sửa mã nguồn]

Xem thêm[sửa mã nguồn]