Module:Error/doc: Difference between revisions

From Our World of Text Wiki
Jump to navigation Jump to search
(Created module documentation.)
 
(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 ==

Revision as of 13:28, 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 error = require('Module:Error')
error("Message")
error(("TypeWarning: %s"):format(warning), tag)

See also