Bản mẫu:Tl2

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

{{[[:Template:{{{1}}}|{{{1}}}]]}}

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

Đây là bản mẫu {{tl2}}.

{{tl2}} is similar to {{tl}}. Tl stands for Template link. {{tl2}} is a macro template used to display a template name as a link surrounded by braces, thus showing how the template name would be used in code. Its primary use is in instruction and documentation.

{{tl2}} differs from {{tl}} in that it displays with a wider, monospaced text style (like {{tlx}}) and also takes the named parameters |sister= and |lang= so that it may also be used to list and link templates on other English and non-English-language sister projects.

Bản mẫu liên quan[sửa mã nguồn]

{{tlx}} hiển thị với cùng một trình bày nâng cao và cũng có thể mở rộng một số tham số giữ chỗ để tạo ra một bản mẫu cuộc gọi.

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

{{tl2|template_name}}
tương đương với {{tl|template_name}}
{{tl2 |sister=sister_id |template_name}}
để hiển thị một bản mẫu từ một dự án chị em (ví dụ như {{tl2 |sister=V |template_name}} cho Wikiversity)
{{tl2 |lang=lang_id |sister=sister_id |template_name}}
để hiển thị một bản mẫu từ một dự án chị em trong một ngôn ngữ khác (ví dụ như {{tl2 |lang=fr |sister=V |template_name}} cho một bản mẫu từ dự án Wikisource tiếng Pháp)

Các ví dụ[sửa mã nguồn]

Kết quả
{{tl|x0}} {{x0}}
{{tl2|x1}} {{x1}}
{{tl2|sister=M|3x}} {{3x}}
{{tl2|sister=wikibooks|lang=de|WP}} {{WP}}

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