Bản mẫu:Telegram

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

{{{name}}} trên Telegram

Tài liệu bản mẫu[xem] [sửa] [lịch sử] [làm mới]

Cách sử dụng[sửa mã nguồn]

1 tham số:

{{Telegram | ID }}
{{Telegram | id= ID }}

2 tham số:

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

Sử dụng thuộc tính P3789 của Wikidata:

{{Telegram}}
{{Telegram | name= NAME }}

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

1 tham số[sửa mã nguồn]

URL:

https://t.me/Telegram

Usage:

{{Telegram | Telegram }}
{{Telegram | id= Telegram }}

Output:

Telegram trên Telegram
Telegram trên Telegram

Since "Telegram" is the name of the Wikipedia page you now are looking at, the link above appears as "Telegram on Telegram" on this Wikipedia page. The lead name will change according to the name of the Wikipedia page.

2 tham số[sửa mã nguồn]

URL:

https://t.me/AcadiaU

Usage:

{{Telegram | AcadiaU | Acadia University }}
{{Telegram | id= AcadiaU | name= Acadia University }}

Output:

Acadia University trên Telegram
Acadia University trên Telegram

Không tham số[sửa mã nguồn]

Usage:

{{Telegram}}

Output:

{{Bản mẫu Telegram}} thiếu ID và không có ở 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 Telegram

This template generates an external link to an account at Telegram.

Tham số bản mẫu[Quản lý Dữ liệu 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 ID portion of the URL. Example: AcadiaU is the ID portion of https://t.me/AcadiaU. This parameter is optional if Wikidata property P3789 exists, but required if not.

Mặc định
Wikidata property P3789
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 disambiguation.

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

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

template with ID
template missing ID

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