Bản mẫu:Tft/doc
Giao diện
![]() | Bản mẫu này sử dụng những tính năng phức tạp của cú pháp bản mẫu.
Bạn được khuyến khích làm quen với cấu trúc của bản mẫu này và các hàm cú pháp trước khi sửa đổi bản mẫu. Nếu sửa đổi của bạn gây ra lỗi không mong muốn, hãy sửa chữa hoặc lùi lại nhanh chóng, vì bản mẫu này có thể xuất hiện trên một số lượng lớn trang. |
![]() | Bản mẫu này phải luôn luôn được thay thế (ví dụ, sử dụng {{thế:Tft/doc}}). |
This page documents the {{Tft}} template.
This template for templates is designed to be used in conjunction with the {{subst:}}
pseudo-namespace. It provides a utility for the creation of well-formed templates.
Cách sử dụng[sửa mã nguồn]
{{subst:Tft|{{{1}}}|subst=required/always/never/sometimes|substcomment=y/n|z=#}}
{{{1}}}
contains the template body code.{{{subst}}}
indicates whether the template is intended to be used with the{{subst:}}
pseudo-namespace.- If required, a note will be added to instruct editors to use
{{subst:}}
, and transclusion will result in an error. - If always, a note will be added to instruct editors to use
{{subst:}}
. - If never, a comment will be added to recommend transclusion. It will be visible only while editing and on a diff view.
- If sometimes or omitted, no mention of
{{subst:}}
will be made.
- If required, a note will be added to instruct editors to use
{{{substcomment}}}
is a boolean value (it defaults ton
) indicating whether a comment should be inserted with substitutions. The comment notes the original template that was substituted—not Tft, but the template on which it is substituted. Only values ofn
ory
are supported.{{{z}}}
adds a Z-number to facilitate in the tracking of{{subst:}}
templates.