<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://poets.wiki/view/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://poets.wiki/view/index.php?action=history&amp;feed=atom&amp;title=Module%3AMbox"/>
	<link rel="alternate" type="text/html" href="https://poets.wiki/view/index.php?title=Module:Mbox&amp;action=history"/>
	<updated>2026-09-26T19:29:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>https://poets.wiki/view/index.php?title=Module:Mbox&amp;diff=746&amp;oldid=prev</id>
		<title>Matt: Protected &quot;Module:Mbox&quot;: Initial wiki setup ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://poets.wiki/view/index.php?title=Module:Mbox&amp;diff=746&amp;oldid=prev"/>
		<updated>2025-03-03T22:41:12Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/view/Module:Mbox&quot; title=&quot;Module:Mbox&quot;&gt;Module:Mbox&lt;/a&gt;&amp;quot;: Initial wiki setup ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:41, 3 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Matt</name></author>
	</entry>
	<entry>
		<id>https://poets.wiki/view/index.php?title=Module:Mbox&amp;diff=43&amp;oldid=prev</id>
		<title>Matt: Created page with &quot;local libraryUtil = require( &#039;libraryUtil&#039; ) local checkType = libraryUtil.checkType local mArguments -- lazily initialise Module:Arguments local mError     -- lazily initialise Module:Error  local p = {}  --- Helper function to throw error -- -- @param msg string - Error message -- -- @return string - Formatted error message in wikitext local function makeWikitextError( msg ) 	mError = require( &#039;Module:Error&#039; ) 	return mError.error { 		message = &#039;Error: &#039; .. msg...&quot;</title>
		<link rel="alternate" type="text/html" href="https://poets.wiki/view/index.php?title=Module:Mbox&amp;diff=43&amp;oldid=prev"/>
		<updated>2025-03-02T00:41:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local libraryUtil = require( &amp;#039;libraryUtil&amp;#039; ) local checkType = libraryUtil.checkType local mArguments -- lazily initialise &lt;a href=&quot;/view/Module:Arguments&quot; title=&quot;Module:Arguments&quot;&gt;Module:Arguments&lt;/a&gt; local mError     -- lazily initialise &lt;a href=&quot;/view/Module:Error&quot; title=&quot;Module:Error&quot;&gt;Module:Error&lt;/a&gt;  local p = {}  --- Helper function to throw error -- -- @param msg string - Error message -- -- @return string - Formatted error message in wikitext local function makeWikitextError( msg ) 	mError = require( &amp;#039;Module:Error&amp;#039; ) 	return mError.error { 		message = &amp;#039;Error: &amp;#039; .. msg...&amp;quot;&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>Matt</name></author>
	</entry>
</feed>