<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://taiwiki.nekoch18.net/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3AMbox</id>
	<title>モジュール:Mbox - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://taiwiki.nekoch18.net/index.php?action=history&amp;feed=atom&amp;title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB%3AMbox"/>
	<link rel="alternate" type="text/html" href="https://taiwiki.nekoch18.net/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Mbox&amp;action=history"/>
	<updated>2026-06-04T04:17:13Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://taiwiki.nekoch18.net/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Mbox&amp;diff=1025&amp;oldid=prev</id>
		<title>Nekoch18: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://taiwiki.nekoch18.net/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Mbox&amp;diff=1025&amp;oldid=prev"/>
		<updated>2024-09-10T12:20:47Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&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;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2024年9月10日 (火) 21:20時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Nekoch18</name></author>
	</entry>
	<entry>
		<id>https://taiwiki.nekoch18.net/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Mbox&amp;diff=1024&amp;oldid=prev</id>
		<title>2024年2月25日 (日) 05:33にja&gt;Alistair3149による</title>
		<link rel="alternate" type="text/html" href="https://taiwiki.nekoch18.net/index.php?title=%E3%83%A2%E3%82%B8%E3%83%A5%E3%83%BC%E3%83%AB:Mbox&amp;diff=1024&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;新規ページ&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>ja&gt;Alistair3149</name></author>
	</entry>
</feed>