Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Usage  



1.1  Tag option  







2 TemplateData  





3 See also  














Template:Error






Acèh
Afrikaans
ak:Nhwɛsode:Error
Alemannisch
Алтай тил
Anarâškielâ
ि
Ænglisc
Аԥсшәа
العربية
ܐܪܡܝܐ

Asturianu
Авар
Azərbaycanca
تۆرکجه
Basa Bali

Banjar
 / Bân-lâm-gú
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Bikol Central
Български
Bosanski
Brezhoneg
Català
Чӑвашла
Čeština
Chamoru
Chi-Chewa
Corsu
Cymraeg
Dansk
الدارجة
ދިވެހިބަސް
Eesti
Ελληνικά
Español
Esperanto
Euskara
Farefare
فارسی
Føroyskt
Français
Gaeilge
Gaelg
Galego
ГӀалгӀай
گیلکی

  / Gõychi Konknni
/Hak-kâ-ngî

Hausa
Հայերեն
ि
Bahasa Hulontalo
Igbo
Ilokano
Bahasa Indonesia
Ирон
IsiXhosa
IsiZulu
Íslenska
Italiano
עברית
Jawa


 / کٲشُر
Қазақша
Ikinyarwanda
Ikirundi
Kiswahili
Kotava
Kurdî
Ladin

Latina
Latviešu
Lietuvių
Ligure
La .lojban.
Magyar
ि
Македонски
Malagasy

Malti
Māori

مصرى

مازِرونی
Bahasa Melayu
 
Minangkabau
 / Mìng-dĕ̤ng-nḡ
Мокшень
Монгол

Nederlands

 

Нохчийн
Norfuk / Pitkern
Norsk bokmål
Occitan
ି
Oʻzbekcha / ўзбекча

ि
Pangasinan
پنجابی

پښتو

Tok Pisin
Polski
Ποντιακά
Português
Qaraqalpaqsha
Română
Русский
Sakizaya


Scots
Shqip

Simple English
سنڌي
SiSwati
Slovenčina
Slovenščina
Soomaaliga
کوردی
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Татарча / tatarça
 


Тоҷикӣ
Türkçe
Türkmençe
Twi
Tyap
Удмурт
Basa Ugi
Українська
اردو
Tiếng Vit
Walon

Winaray

Xitsonga
Yorùbá

Zazaki

 
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
MediaWiki
Meta-Wiki
Multilingual Wikisource
Wikibooks
Wikidata
Wikinews
Wikiquote
Wikisource
Wikiversity
Wikivoyage
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{{1}}}

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 {{#iferror}} parser function. It defaults to strong, the tag generated e.g. by {{#expr}}. 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. See a monthly parameter usage report for Template:Error in articles based on its TemplateData.

TemplateData for Error

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)

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Message1 message

Error message text in red

Stringsuggested
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

Suggested values
span div p strong
Default
strong
Stringoptional

See also


Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Error&oldid=579195467"

Categories: 
Lua-based templates
Wikipedia metatemplates
Error-message templates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 29 October 2013, at 00:20 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki