<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://witterpedia.thesamsmith.co.uk/index.php?action=history&amp;feed=atom&amp;title=Module%3AMbox</id>
	<title>Module:Mbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://witterpedia.thesamsmith.co.uk/index.php?action=history&amp;feed=atom&amp;title=Module%3AMbox"/>
	<link rel="alternate" type="text/html" href="https://witterpedia.thesamsmith.co.uk/index.php?title=Module:Mbox&amp;action=history"/>
	<updated>2026-04-19T20:57:41Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://witterpedia.thesamsmith.co.uk/index.php?title=Module:Mbox&amp;diff=66&amp;oldid=prev</id>
		<title>Fecsmith: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://witterpedia.thesamsmith.co.uk/index.php?title=Module:Mbox&amp;diff=66&amp;oldid=prev"/>
		<updated>2025-03-10T23:35:08Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:35, 10 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key witterpedia:diff:1.41:old-65:rev-66 --&gt;
&lt;/table&gt;</summary>
		<author><name>Fecsmith</name></author>
	</entry>
	<entry>
		<id>https://witterpedia.thesamsmith.co.uk/index.php?title=Module:Mbox&amp;diff=65&amp;oldid=prev</id>
		<title>SCW&gt;Alistair3149 at 05:33, 25 February 2024</title>
		<link rel="alternate" type="text/html" href="https://witterpedia.thesamsmith.co.uk/index.php?title=Module:Mbox&amp;diff=65&amp;oldid=prev"/>
		<updated>2024-02-25T05:33:33Z</updated>

		<summary type="html">&lt;p&gt;&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>SCW&gt;Alistair3149</name></author>
	</entry>
</feed>