<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://petitplanet.wiki/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://petitplanet.wiki/index.php?action=history&amp;feed=atom&amp;title=Module%3AMbox"/>
	<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Module:Mbox&amp;action=history"/>
	<updated>2026-04-13T01:10:25Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://petitplanet.wiki/index.php?title=Module:Mbox&amp;diff=18&amp;oldid=prev</id>
		<title>Stevium: Created Module:Mbox</title>
		<link rel="alternate" type="text/html" href="https://petitplanet.wiki/index.php?title=Module:Mbox&amp;diff=18&amp;oldid=prev"/>
		<updated>2025-11-09T08:40:27Z</updated>

		<summary type="html">&lt;p&gt;Created Module:Mbox&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Source: https://genshin-impact.fandom.com/wiki/Module:Mbox&lt;br /&gt;
&lt;br /&gt;
-- &amp;lt;nowiki&amp;gt;&lt;br /&gt;
local Mbox = {}&lt;br /&gt;
local getArgs = require(&amp;#039;Module:Arguments&amp;#039;).getArgs&lt;br /&gt;
local i18n = require(&amp;#039;Module:I18n&amp;#039;).loadMessages(&amp;#039;Mbox&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function Mbox.main(frame)&lt;br /&gt;
    local args = getArgs(frame)&lt;br /&gt;
&lt;br /&gt;
    -- styles&lt;br /&gt;
    local styles = {}&lt;br /&gt;
    styles[&amp;#039;border-left-color&amp;#039;] = i18n:parameter(&amp;#039;bordercolor&amp;#039;, args)&lt;br /&gt;
    styles[&amp;#039;background-color&amp;#039;] = i18n:parameter(&amp;#039;bgcolor&amp;#039;, args)&lt;br /&gt;
&lt;br /&gt;
    -- images&lt;br /&gt;
    local image = i18n:parameter(&amp;#039;image&amp;#039;, args) or &amp;#039;&amp;#039;&lt;br /&gt;
    local imageadjust = &amp;#039;&amp;#039;&lt;br /&gt;
    if args.imageadjust then&lt;br /&gt;
        imageadjust = &amp;#039;|&amp;#039; .. args.imageadjust&lt;br /&gt;
    end&lt;br /&gt;
    local imagewidth = i18n:parameter(&amp;#039;imagewidth&amp;#039;, args) or &amp;#039;80px&amp;#039;&lt;br /&gt;
    local imagelink = &amp;#039;|link=&amp;#039;&lt;br /&gt;
    local imagelinkarg = i18n:parameter(&amp;#039;imagelink&amp;#039;, args)&lt;br /&gt;
    if imagelinkarg then&lt;br /&gt;
        imagelink = imagelink .. imagelinkarg&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local imagewikitext = &amp;#039;[[File:&amp;#039; .. image .. &amp;#039;|&amp;#039; .. imagewidth  .. imageadjust .. imagelink .. &amp;#039;]]&amp;#039;&lt;br /&gt;
&lt;br /&gt;
    -- id for closure&lt;br /&gt;
    local id = i18n:parameter(&amp;#039;id&amp;#039;, args) or &amp;#039;mbox&amp;#039;&lt;br /&gt;
    local typeclass = i18n:parameter(&amp;#039;type&amp;#039;, args)&lt;br /&gt;
&lt;br /&gt;
    local container = mw.html.create(&amp;#039;div&amp;#039;)&lt;br /&gt;
        :addClass(&amp;#039;mbox&amp;#039;)&lt;br /&gt;
        :addClass(typeclass and (&amp;#039;mbox-type-&amp;#039; .. typeclass))&lt;br /&gt;
        :addClass(i18n:parameter(&amp;#039;class&amp;#039;, args))&lt;br /&gt;
        :css(styles)&lt;br /&gt;
        :cssText(i18n:parameter(&amp;#039;style&amp;#039;, args))&lt;br /&gt;
&lt;br /&gt;
    local content = container:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
        :addClass(&amp;#039;mbox__content&amp;#039;)&lt;br /&gt;
    local collapsed = i18n:parameter(&amp;#039;collapsed&amp;#039;, args)&lt;br /&gt;
&lt;br /&gt;
    if image ~= &amp;#039;&amp;#039; then&lt;br /&gt;
        local image = content:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;mbox__content__image&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;mw-collapsible&amp;#039;)&lt;br /&gt;
            :attr(&amp;#039;id&amp;#039;, &amp;#039;mw-customcollapsible-&amp;#039; .. id)&lt;br /&gt;
            :wikitext(imagewikitext)&lt;br /&gt;
            if collapsed then&lt;br /&gt;
                image:addClass(&amp;#039;mw-collapsed&amp;#039;)&lt;br /&gt;
            end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local contentwrapper = content:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
        :addClass(&amp;#039;mbox__content__wrapper&amp;#039;)&lt;br /&gt;
    local header = i18n:parameter(&amp;#039;header&amp;#039;, args)&lt;br /&gt;
&lt;br /&gt;
    if header then&lt;br /&gt;
        contentwrapper:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;mbox__content__header&amp;#039;)&lt;br /&gt;
            :wikitext(header)&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    local textarg = i18n:parameter(&amp;#039;text&amp;#039;, args)&lt;br /&gt;
    if textarg then&lt;br /&gt;
        local text = contentwrapper:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;mbox__content__text&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;mw-collapsible&amp;#039;)&lt;br /&gt;
            :attr(&amp;#039;id&amp;#039;, &amp;#039;mw-customcollapsible-&amp;#039; .. id)&lt;br /&gt;
            :wikitext(textarg)&lt;br /&gt;
            if collapsed then&lt;br /&gt;
                text:addClass(&amp;#039;mw-collapsed&amp;#039;)&lt;br /&gt;
            end&lt;br /&gt;
&lt;br /&gt;
        local comment = i18n:parameter(&amp;#039;comment&amp;#039;, args)&lt;br /&gt;
        if comment then&lt;br /&gt;
            text:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
                :addClass(&amp;#039;mbox__content__text__comment&amp;#039;)&lt;br /&gt;
                :wikitext(comment)&lt;br /&gt;
        end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    contentwrapper:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
        :addClass(&amp;#039;mbox__close&amp;#039;)&lt;br /&gt;
        :addClass(&amp;#039;mw-customtoggle-&amp;#039; .. id)&lt;br /&gt;
        :attr(&amp;#039;title&amp;#039;, i18n:msg(&amp;#039;dismiss&amp;#039;))&lt;br /&gt;
&lt;br /&gt;
    local asidearg = i18n:parameter(&amp;#039;aside&amp;#039;, args)&lt;br /&gt;
    if asidearg then&lt;br /&gt;
        local aside = content:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;mbox__content__aside&amp;#039;)&lt;br /&gt;
            :addClass(&amp;#039;mw-collapsible&amp;#039;)&lt;br /&gt;
            :attr(&amp;#039;id&amp;#039;, &amp;#039;mw-customcollapsible-&amp;#039; .. id)&lt;br /&gt;
            :wikitext(asidearg)&lt;br /&gt;
            if collapsed then&lt;br /&gt;
                aside:addClass(&amp;#039;mw-collapsed&amp;#039;)&lt;br /&gt;
            end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    return container&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return Mbox&lt;/div&gt;</summary>
		<author><name>Stevium</name></author>
	</entry>
</feed>