টেমপ্লেট:বিন্যাসন ত্রুটি

টেম্পলেটে ত্রুটি

টেমপ্লেট নথি[দেখুন] [সম্পাদনা] [ইতিহাস] [শোধন]

Outputs an error message in red into the page and adds the page to বিষয়শ্রেণী:ভুল বিন্যাসের সাথে পাতাসমূহ টেমপ্লেট ব্যবহার করছে. An anchor (FormattingError) is inserted at the start of the error message, so you can find any errors on a page easily by adding #FormattingError at the end of the URL (e.g. টেমপ্লেট:val/test#FormattingError). Used in complex templates that check their arguments for validity, so incorrect use can be spotted while editing a page or afterwards.

ব্যবহার সম্পাদনা

  • {{ফরম্যাটিং ত্রুটি|ত্রুটি বার্তা}}

or

  • {{ফরম্যাটিং ত্রুটি|ত্রুটি বার্তা|nocategory=true}}

When using the nocategory argument, the error message is displayed as usual, but the page is not added to বিষয়শ্রেণী:ভুল বিন্যাসের সাথে পাতাসমূহ টেমপ্লেট ব্যবহার করছে. This is useful in documentation pages for templates that use FormattingError and show what errors they can generate without adding these documentation pages to the category. For an example of this, see {{LinkForElement}}.

This template can be evaluated using the {{#iferror}} parser function:

  • {{#iferror:{{val|XX}}|error|OK}}error

আরও দেখুন সম্পাদনা