قالب:خطأ/شرح

من موسوعة المزرعة
< قالب:خطأ
مراجعة 13:10، 1 أبريل 2021 بواسطة Jawad A Najar (نقاش | مساهمات) (أنشأ الصفحة ب'{{صفحة توثيق فرعية}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> Create a parser function error mess...')
(فرق) → مراجعة أقدم | المراجعة الحالية (فرق) | مراجعة أحدث ← (فرق)
اذهب إلى التنقل اذهب إلى البحث

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

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