<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.tekkitlite.xyz/index.php?action=history&amp;feed=atom&amp;title=Module%3AMessage_box%2Fdoc</id>
	<title>Module:Message box/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tekkitlite.xyz/index.php?action=history&amp;feed=atom&amp;title=Module%3AMessage_box%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.tekkitlite.xyz/index.php?title=Module:Message_box/doc&amp;action=history"/>
	<updated>2026-06-13T19:12:32Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.tekkitlite.xyz/index.php?title=Module:Message_box/doc&amp;diff=301&amp;oldid=prev</id>
		<title>Rezizdigus: Created page with &quot;&lt;noinclude&gt;&lt;!-- --&gt;{{#ifeq:{{SUBPAGENAME}}|doc||{{Documentation subpage}}}}&lt;!-- --&gt;&lt;languages /&gt;&lt;!-- --&gt;&lt;/noinclude&gt;{{#switch:&lt;translate&gt;&lt;/translate&gt; | = &lt;includeonly&gt;{{Languages|Module:Message box/doc}}&lt;/includeonly&gt; &lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&gt; &lt;!-- {{Shared Template Warning|Module:Message box}} --&gt; {{Used in system}} {{module rating|r}} {{module rating|p}} {{Lua|Module:Message box/configuration|Module:Ar...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.tekkitlite.xyz/index.php?title=Module:Message_box/doc&amp;diff=301&amp;oldid=prev"/>
		<updated>2026-05-17T11:58:44Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;noinclude&amp;gt;&amp;lt;!-- --&amp;gt;{{#ifeq:{{SUBPAGENAME}}|doc||{{Documentation subpage}}}}&amp;lt;!-- --&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;!-- --&amp;gt;&amp;lt;/noinclude&amp;gt;{{#switch:&amp;lt;translate&amp;gt;&amp;lt;/translate&amp;gt; | = &amp;lt;includeonly&amp;gt;{{Languages|Module:Message box/doc}}&amp;lt;/includeonly&amp;gt; &amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt; &amp;lt;!-- {{Shared Template Warning|Module:Message box}} --&amp;gt; {{Used in system}} {{module rating|r}} {{module rating|p}} {{Lua|Module:Message box/configuration|Module:Ar...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;noinclude&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#ifeq:{{SUBPAGENAME}}|doc||{{Documentation subpage}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;languages /&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;/noinclude&amp;gt;{{#switch:&amp;lt;translate&amp;gt;&amp;lt;/translate&amp;gt;&lt;br /&gt;
| =&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Languages|Module:Message box/doc}}&amp;lt;/includeonly&amp;gt;&lt;br /&gt;
&amp;lt;!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --&amp;gt;&lt;br /&gt;
&amp;lt;!-- {{Shared Template Warning|Module:Message box}} --&amp;gt;&lt;br /&gt;
{{Used in system}}&lt;br /&gt;
{{module rating|r}}&lt;br /&gt;
{{module rating|p}}&lt;br /&gt;
{{Lua|Module:Message box/configuration|Module:Arguments|Module:Category handler|Module:Yesno}}&lt;br /&gt;
{{Uses TemplateStyles&lt;br /&gt;
| Module:Message box/ambox.css&lt;br /&gt;
| Module:Message box/cmbox.css&lt;br /&gt;
| Module:Message box/fmbox.css&lt;br /&gt;
| Module:Message box/imbox.css&lt;br /&gt;
| Module:Message box/ombox.css&lt;br /&gt;
| Module:Message box/tmbox.css&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:1--&amp;gt; This is a meta-module that implements the message box templates &amp;lt;tvar name=1&amp;gt;{{separated entries|{{tlx|mbox}}|{{tlx|ambox}}|{{tlx|cmbox}}|{{tlx|fmbox}}|{{tlx|imbox}}|{{tlx|ombox}}|{{tlx|tmbox}}|separator=&amp;lt;nowiki/&amp;gt;{{int|lang={{TRANSLATIONLANGUAGE}}|comma-separator}}&amp;lt;nowiki/&amp;gt;|conjunction=&amp;lt;nowiki/&amp;gt;{{int|lang={{TRANSLATIONLANGUAGE}}|and}}{{int|lang={{TRANSLATIONLANGUAGE}}|word-separator}}&amp;lt;nowiki/&amp;gt;}}&amp;lt;/tvar&amp;gt;.&amp;lt;/translate&amp;gt;&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:2--&amp;gt; It is intended to be used from Lua modules, and should not be used directly from wiki pages.&amp;lt;/translate&amp;gt;&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:3--&amp;gt; If you want to use this module&amp;#039;s functionality from a wiki page, please use the individual message box templates instead.&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;translate&amp;gt;&lt;br /&gt;
== Usage == &amp;lt;!--T:4--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:5--&amp;gt;&lt;br /&gt;
To use this module from another Lua module, first you need to load it.&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local messageBox = require(&amp;#039;Module:Message box&amp;#039;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:6--&amp;gt; To create a message box, use the &amp;lt;tvar name=1&amp;gt;&amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt;&amp;lt;/tvar&amp;gt; function.&amp;lt;/translate&amp;gt;&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:7--&amp;gt; It takes two parameters:&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Unordered list&lt;br /&gt;
|1=&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:8--&amp;gt; the first is the box type (as a string).&amp;lt;/translate&amp;gt;&lt;br /&gt;
|2=&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:9--&amp;gt; the second is a table containing the message box parameters.&amp;lt;/translate&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local box = messageBox.main( boxType, {&lt;br /&gt;
	param1 = param1,&lt;br /&gt;
	param2 = param2,&lt;br /&gt;
	-- &amp;lt;translate nowrap&amp;gt;&amp;lt;!--T:10--&amp;gt; More parameters...&amp;lt;/translate&amp;gt;&lt;br /&gt;
})&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:11--&amp;gt;&lt;br /&gt;
There are seven available box types:&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{(!}} class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! &amp;lt;translate&amp;gt;&amp;lt;!--T:12--&amp;gt; Box type&amp;lt;/translate&amp;gt;&lt;br /&gt;
! &amp;lt;translate&amp;gt;&amp;lt;!--T:13--&amp;gt; Template&amp;lt;/translate&amp;gt;&lt;br /&gt;
! &amp;lt;translate&amp;gt;&amp;lt;!--T:14--&amp;gt; Purpose&amp;lt;/translate&amp;gt;&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;mbox&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{tlx|mbox}}&lt;br /&gt;
{{!}} &amp;lt;translate&amp;gt;&amp;lt;!--T:15--&amp;gt; For message boxes to be used in multiple namespaces&amp;lt;/translate&amp;gt;&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;ambox&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{tlx|ambox}}&lt;br /&gt;
{{!}} &amp;lt;translate&amp;gt;&amp;lt;!--T:16--&amp;gt; For article message boxes&amp;lt;/translate&amp;gt;&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;cmbox&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{tlx|cmbox}}&lt;br /&gt;
{{!}} &amp;lt;translate&amp;gt;&amp;lt;!--T:17--&amp;gt; For category message boxes&amp;lt;/translate&amp;gt;&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;fmbox&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{tlx|fmbox}}&lt;br /&gt;
{{!}} &amp;lt;translate&amp;gt;&amp;lt;!--T:18--&amp;gt; For interface message boxes&amp;lt;/translate&amp;gt;&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;imbox&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{tlx|imbox}}&lt;br /&gt;
{{!}} &amp;lt;translate&amp;gt;&amp;lt;!--T:19--&amp;gt; For file namespace message boxes&amp;lt;/translate&amp;gt;&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;tmbox&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{tlx|tmbox}}&lt;br /&gt;
{{!}} &amp;lt;translate&amp;gt;&amp;lt;!--T:20--&amp;gt; For talk page message boxes&amp;lt;/translate&amp;gt;&lt;br /&gt;
{{!}}-&lt;br /&gt;
{{!}} &amp;lt;code&amp;gt;ombox&amp;lt;/code&amp;gt;&lt;br /&gt;
{{!}} {{tlx|ombox}}&lt;br /&gt;
{{!}} &amp;lt;translate&amp;gt;&amp;lt;!--T:21--&amp;gt; For message boxes in other namespaces&amp;lt;/translate&amp;gt;&lt;br /&gt;
{{!)}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;translate&amp;gt;&lt;br /&gt;
&amp;lt;!--T:22--&amp;gt;&lt;br /&gt;
See the template page of each box type for the available parameters.&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;translate nowrap&amp;gt;&lt;br /&gt;
== Usage from &amp;lt;tvar name=1&amp;gt;&amp;lt;code&amp;gt;#invoke&amp;lt;/code&amp;gt;&amp;lt;/tvar&amp;gt; == &amp;lt;!--T:23--&amp;gt;&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:24--&amp;gt; As well as the &amp;lt;tvar name=1&amp;gt;&amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt;&amp;lt;/tvar&amp;gt; function, this module has separate functions for each box type.&amp;lt;/translate&amp;gt;&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:25--&amp;gt; They are accessed using the code &amp;lt;tvar name=1&amp;gt;{{magic word|ext=Scribunto|nowrap=1|code=1|#invoke|[[Module:Message box|Message box]]&amp;lt;nowiki&amp;gt;|mbox|...&amp;lt;/nowiki&amp;gt;}}&amp;lt;/tvar&amp;gt;, &amp;lt;tvar name=2&amp;gt;{{tlc|#invoke:Message box|ambox|...}}&amp;lt;/tvar&amp;gt;, etc.&amp;lt;/translate&amp;gt;&lt;br /&gt;
&amp;lt;translate&amp;gt;&amp;lt;!--T:26--&amp;gt; These will work when called from other modules, but they access code used to process arguments passed from &amp;lt;tvar name=1&amp;gt;{{tlc|#invoke:...}}&amp;lt;/tvar&amp;gt;, and so calling them will be less efficient than calling &amp;lt;tvar name=2&amp;gt;&amp;lt;code&amp;gt;main&amp;lt;/code&amp;gt;&amp;lt;/tvar&amp;gt;.&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;translate&amp;gt;&lt;br /&gt;
== Technical details == &amp;lt;!--T:27--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:28--&amp;gt;&lt;br /&gt;
The module uses the same basic code for each of the templates listed above; the differences between each of them are configured using the data at &amp;lt;tvar name=1&amp;gt;[[Module:Message box/configuration]]&amp;lt;/tvar&amp;gt;.&lt;br /&gt;
&amp;lt;/translate&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line; interwikis at Wikidata --&amp;gt;&lt;br /&gt;
[[Category:Modules{{#translation:}}]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
[[Category:Module documentation pages{{#translation:}}]]&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;br /&gt;
| #default=&lt;br /&gt;
  {{#invoke:Template translation|renderTranslatedTemplate|template=Module:Message box/doc|noshift=1|uselang={{int:lang}}}}&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Rezizdigus</name></author>
	</entry>
</feed>