テンプレート:TikTok/doc

提供:Wikiminati
< テンプレート:TikTok
2023年3月19日 (日) 15:03時点におけるWikiminatiWebMaster (トーク | 投稿記録)による版 (1版 をインポートしました: TikTok)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)

テンプレート: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.

Usage[ソースを編集]

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 }}

Examples[ソースを編集]

Unnamed parameters[ソースを編集]

URL:

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

Usage:

{{TikTok | wikipedia | Wikipedia }}

Output:

Wikipedia on TikTok

Named parameters[ソースを編集]

URL:

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

Usage:

{{TikTok | id= soykeniaos | name= KeniaOs }}

Output:

KeniaOs on TikTok

No parameters and Wikidata property not defined[ソースを編集]

Usage:

{{TikTok}}

Output:

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

TemplateData[ソースを編集]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for 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.

テンプレート引数

引数説明状態
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.

既定
Wikidata property P7085
文字列省略可能
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.

既定
{{PAGENAMEBASE}}
文字列省略可能

Tracking category[ソースを編集]

See also[ソースを編集]