साँचा:Error/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:Error
imported>आशीष भटनागर द्वारा परिवर्तित ०७:२३, १ दिसम्बर २०१७ का अवतरण (en:Template:Error/doc से 45 अवतरण आयात किये गए)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} साँचा:lua

This meta template returns a state of error (recognized as such by a wiki parser function), and optionally an error-message text in red (visible for the user). It is used by other templates to signal an error, for example invalid input, which can then either be displayed to the editor or caught and handled by other templates.

Usage

Tag option

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 साँचा:pf parser function. It defaults to strong, the tag generated e.g. by साँचा:pf. To prevent strong message, use one of the other tags, e.g. tag=span.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. click here to see a monthly parameter usage report for this template.

TemplateData for Error

साँचा:template other

The template returns a state of error (recognized as such by a wiki parser function), and optionally an error-message text in red (visible for the user)

साँचा प्राचल

प्राचलवर्णनप्रकारस्थिति
Message1

Error message text in red

स्ट्रिंगवैकल्पिक
Tagtag

The tag to contain the error message; 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 generated e.g. by #expre

डिफ़ॉल्ट
strong
स्ट्रिंगवैकल्पिक

See also