Bản mẫu:Telegram/doc
Đây là một trang con tài liệu sử dụng bản mẫu dành cho Bản mẫu:Telegram. Nó gồm có các thông tin hướng dẫn sử dụng, thể loại và các nội dung khác không thuộc về phần trang bản mẫu gốc. |
Bản mẫu này sử dụng thuộc tính Wikidata: |
Bản mẫu này theo dõi thuộc tính: Wikidata |
Bản mẫu này sử dụng Lua: |
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/doc trên Telegram
- Telegram/doc 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]
Dữ liệu bản mẫu cho Telegram
This template generates an external link to an account at Telegram.
Tham số | Miêu tả | Kiểu | Trạng thái | |
---|---|---|---|---|
id | id 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.
| Chuỗi dài | tùy chọn |
name | name 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.
| Chuỗi dài | tùy chọn |
Thể loại theo dõi[sửa mã nguồn]
- template with ID
- Thể loại:Telegram username không có ở Wikidata (0)
- Thể loại:Telegram username khác với Wikidata (0)
- Thể loại:Telegram username giống như Wikidata (1)
- template missing ID
Xem thêm[sửa mã nguồn]
- {{Pinterest}}
- {{Tumblr}}
- {{flickr-inline}}
- {{flickr-inline2}}
- {{Instagram}}
- {{Twitter}}
- Wikipedia:SOCIALMEDIA