Jump to content

Module:Error/doc: Difference between revisions

Dat Hack3r (talk | contribs)
Created module documentation.
 
Dat Hack3r (talk | contribs)
Added example code.
Line 1: Line 1:
This module implements {{Tl|Error}}. It creates an html message with class "error". Please see the documentation page there for usage instructions.
This module implements {{Tl|Error}}. It creates an html message with class "error". Please see the documentation page there for usage instructions.
<syntaxhighlight lang="lua">
local error = require('Module:Error')
error("Message")
error(("TypeWarning: %s"):format(warning), tag)
</syntaxhighlight>


== See also ==
== See also ==