قالب:Error
قالب ويكيبيديا / From Wikipedia, the free encyclopedia
{{{1}}}
Create a parser function error message.
Usage
{{error|An examplary error}}
→ An examplary error- Compare:
{{#expr:Foo}}
→ غلط تعبيري: كلمة مش متعرف عليها "foo" {{#iferror:{{error|Foo}} | {{y}} | {{n}} }}
→Y
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
.
{{error|An examplary error span|tag=span}}
→ An examplary error span
See also
- Help:Parser function
- mw:Help:Extension:ParserFunctions##iferror:
The above documentation is transcluded from قالب:Error/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.