قالب:خطأ

من موسوعة المزرعة
مراجعة 01:40، 31 مارس 2021 بواسطة Jawad A Najar (نقاش | مساهمات) (أنشأ الصفحة ب'{{#invoke:Error|error|{{{message|{{{1}}}}}}|tag={{{tag|}}}}}<noinclude> {{توثيق}} تصنيف:قوالب تنسيق المزرعة </noinclude>')
(فرق) → مراجعة أقدم | المراجعة الحالية (فرق) | مراجعة أحدث ← (فرق)
اذهب إلى التنقل اذهب إلى البحث

{{{1}}}

Create a parser function error message.

الاستخدام[عدل]

  • {{خطأ|An examplary error}}An examplary error
  • Compare: {{#expr:Foo}}خطأ في التعبير: كلمة غير متعرف عليها "foo"
  • {{#iferror:{{خطأ|Foo}} | {{نعم}} | {{لا}} }}Yes Check Circle.svg

The tag to contain the error message can be given through the tag parameter, but it will only accept span, div, p, and strong, since those are the only tags recognized by the #iferror parser function. It defaults to strong, the tag genereated e.g. by #expre.

  • {{خطأ|An examplary error span|tag=span}}An examplary error span

شاهد أيضا[عدل]

ar:قالب:Error