Bản mẫu:TryCatch/doc
Giao diện
| Đây là một trang con tài liệu dành cho Bản mẫu:TryCatch. 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. |
This metatemplate simplifies implementing fallback output if an error occurs due to incorrect input. It returns the first parameter if it does not contain an error (using the #iferror parser function), and the second parameter (or the empty string) otherwise.
Cách sử dụng Bản mẫu:TryCatch/doc
Xem thêm Bản mẫu:TryCatch/doc
- {{Error}}: bản mẫu để báo hiệu một lỗi
- mw:Help:Extension:ParserFunctions##iferror