Module:Error/doc: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Created module documentation.)
 
m ({{Tlx}} is the best template link template.)
 
(3 intermediate revisions by the same user not shown)
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 {{Tlx|Error}}. It creates an html message with class "error". Please see the documentation page there for usage instructions.
 
<syntaxhighlight lang="lua">
local mw_error = require('Module:Error').error
return mw_error("Message")
return mw_error(("TypeError: %s"):format(error_message), tag)
</syntaxhighlight>


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

Latest revision as of 13:43, 2 December 2024

This module implements {{Error}}. It creates an html message with class "error". Please see the documentation page there for usage instructions.

local mw_error = require('Module:Error').error
return mw_error("Message")
return mw_error(("TypeError: %s"):format(error_message), tag)

See also