Module:Error/doc: Difference between revisions
Jump to navigation
Jump to search
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 == |
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)