Difference between revisions of "Template:Err/doc"

From blackwiki
Jump to navigation Jump to search
imported>RL0919
(more specific category)
imported>Plastikspork
 
Line 1: Line 1:
{{Documentation subpage}}
+
#REDIRECT [[Template:Error/doc]]
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
 
 
== Usage ==
 
 
 
Use this template when you need to show a serious (fatal) error resulting from improper user input.  Usually, it is best to simply show the error message from the appropriate parser function (in which case this template is not needed), but there are times when custom error messages are useful.  Please do not use this on article pages directly, as it is likely quite useless and probably in violation of content policies.
 
 
 
<code>{{tlx|err|error message}}</code>
 
 
 
produces:
 
 
 
{{err|error message}}
 
 
 
This should be more specific than the default, and if possible, should give instructions for a "quick fix".  There are no real rules for error messages, but, by analogy with the errors arising from parser functions, it appears that capitalization of the first letter is preferred.
 
 
 
===Operation===
 
Most wikitext works as expected, with a few caveats:
 
#Use {{tl2|!}} to encode the | character
 
#A table cannot be placed in the message.
 
#Images work, but only their captions are formatted (how one is supposed to big/bold/red an ''image'' is questionable anyway)
 
#If an = appear anywhere in the error message, prefix the message with 1=
 
#Links work as normal, but they won't turn red ([[WP:REDLINK|usually]])
 
#<nowiki>''' '''</nowiki> can be used to "cancel" bolding for a single word; note that at the moment such behavior breaks nesting; in other words, this is subject to change at any time as MediaWiki's parser engine is updated and the template itself repaired etc.
 
 
 
== See also ==
 
*[[Wikipedia:Cite4Wiki]], a Firefox add-on that uses this template (from ver. 1.4 onward)
 
 
 
<includeonly>
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Wikipedia metatemplates|{{PAGENAME}}]]<!--Needs something more specific.-->
 
</includeonly>
 

Latest revision as of 01:15, 15 April 2013

Redirect to: