<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://emergency-response-liberty-county.wiki/Module:Mbox?action=history&amp;feed=atom</id>
	<title>Module:Mbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://emergency-response-liberty-county.wiki/Module:Mbox?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://emergency-response-liberty-county.wiki/Module:Mbox?action=history"/>
	<updated>2026-04-17T18:49:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.3</generator>
	<entry>
		<id>https://emergency-response-liberty-county.wiki/index.php?title=Module:Mbox&amp;diff=113&amp;oldid=prev</id>
		<title>Lucah1337: Imported from SC Wiki</title>
		<link rel="alternate" type="text/html" href="https://emergency-response-liberty-county.wiki/index.php?title=Module:Mbox&amp;diff=113&amp;oldid=prev"/>
		<updated>2026-02-18T13:26:20Z</updated>

		<summary type="html">&lt;p&gt;Imported from SC Wiki&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local libraryUtil = require( &amp;#039;libraryUtil&amp;#039; )&lt;br /&gt;
local checkType = libraryUtil.checkType&lt;br /&gt;
local mArguments -- lazily initialise [[Module:Arguments]]&lt;br /&gt;
local mError     -- lazily initialise [[Module:Error]]&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--- Helper function to throw error&lt;br /&gt;
--&lt;br /&gt;
-- @param msg string - Error message&lt;br /&gt;
--&lt;br /&gt;
-- @return string - Formatted error message in wikitext&lt;br /&gt;
local function makeWikitextError( msg )&lt;br /&gt;
	mError = require( &amp;#039;Module:Error&amp;#039; )&lt;br /&gt;
	return mError.error {&lt;br /&gt;
		message = &amp;#039;Error: &amp;#039; .. msg .. &amp;#039;.&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.mbox( frame )&lt;br /&gt;
	mArguments = require( &amp;#039;Module:Arguments&amp;#039; )&lt;br /&gt;
	local args = mArguments.getArgs( frame )&lt;br /&gt;
	local title = args[ 1 ] or args[ &amp;#039;title&amp;#039; ]&lt;br /&gt;
	local text = args[ 2 ] or args[ &amp;#039;text&amp;#039; ]&lt;br /&gt;
	if not title or not text then&lt;br /&gt;
		return makeWikitextError(&lt;br /&gt;
			&amp;#039;no title or text specified&amp;#039;&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	return p._mbox( title, text, {&lt;br /&gt;
		extraclasses = args.extraclasses,&lt;br /&gt;
		icon = args.icon&lt;br /&gt;
	} )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._mbox( title, text, options )&lt;br /&gt;
	checkType( &amp;#039;_mbox&amp;#039;, 1, title, &amp;#039;string&amp;#039; )&lt;br /&gt;
	checkType( &amp;#039;_mbox&amp;#039;, 2, text, &amp;#039;string&amp;#039; )&lt;br /&gt;
	checkType( &amp;#039;_mbox&amp;#039;, 3, options, &amp;#039;table&amp;#039;, true )&lt;br /&gt;
&lt;br /&gt;
	options = options or {}&lt;br /&gt;
	local mbox = mw.html.create( &amp;#039;div&amp;#039; )&lt;br /&gt;
	local extraclasses&lt;br /&gt;
	if type( options.extraclasses ) == &amp;#039;string&amp;#039; then&lt;br /&gt;
		extraclasses = options.extraclasses&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	mbox&lt;br /&gt;
		:attr( &amp;#039;role&amp;#039;, &amp;#039;presentation&amp;#039; )&lt;br /&gt;
		:addClass( &amp;#039;mbox&amp;#039; )&lt;br /&gt;
		:addClass( extraclasses )&lt;br /&gt;
&lt;br /&gt;
	local mboxTitle = mbox:tag( &amp;#039;div&amp;#039; ):addClass( &amp;#039;mbox-title&amp;#039; )&lt;br /&gt;
&lt;br /&gt;
	if options.icon and type( options.icon ) == &amp;#039;string&amp;#039; then&lt;br /&gt;
		mboxTitle:tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
			:addClass( &amp;#039;mbox-icon metadata&amp;#039; )&lt;br /&gt;
			:wikitext( &amp;#039;[[File:&amp;#039; .. options.icon .. &amp;#039;|14px|link=]]&amp;#039; )&lt;br /&gt;
			:done()&lt;br /&gt;
			:tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
			:wikitext( title )&lt;br /&gt;
	else&lt;br /&gt;
		mboxTitle:wikitext( title )&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	mbox:tag( &amp;#039;div&amp;#039; )&lt;br /&gt;
		:addClass( &amp;#039;mbox-text&amp;#039; )&lt;br /&gt;
		:wikitext( text )&lt;br /&gt;
&lt;br /&gt;
	return mw.getCurrentFrame():extensionTag {&lt;br /&gt;
		name = &amp;#039;templatestyles&amp;#039;, args = { src = &amp;#039;Module:Mbox/styles.css&amp;#039; }&lt;br /&gt;
	} .. tostring( mbox )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Lucah1337</name></author>
	</entry>
</feed>