<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mbwiki.stairwaygames.work/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AMainpage_doc</id>
	<title>Template:Mainpage doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mbwiki.stairwaygames.work/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AMainpage_doc"/>
	<link rel="alternate" type="text/html" href="https://mbwiki.stairwaygames.work/w/index.php?title=Template:Mainpage_doc&amp;action=history"/>
	<updated>2026-04-06T17:47:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://mbwiki.stairwaygames.work/w/index.php?title=Template:Mainpage_doc&amp;diff=27386&amp;oldid=prev</id>
		<title>Ais: Created page with &quot;{{Uses Lua|Main page}}  This template is used to create an IMP Main Page. It uses Module:Main page to arrange a series of Template:Main page boxes in a [https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout CSS grid].  ==Simple explanation== The layout is made using keywords arranged in a grid. This grid has 3 columns on desktop-width screens, 2 columns on tablet, and 1 on mobile. Each can have as many rows as you want. Each keyword represents the same...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mbwiki.stairwaygames.work/w/index.php?title=Template:Mainpage_doc&amp;diff=27386&amp;oldid=prev"/>
		<updated>2025-12-10T07:31:15Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Uses Lua|Main page}}  This template is used to create an IMP Main Page. It uses &lt;a href=&quot;/wiki/Module:Main_page&quot; title=&quot;Module:Main page&quot;&gt;Module:Main page&lt;/a&gt; to arrange a series of &lt;a href=&quot;/wiki/Template:Main_page_box&quot; title=&quot;Template:Main page box&quot;&gt;Template:Main page boxes&lt;/a&gt; in a [https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout CSS grid].  ==Simple explanation== The layout is made using keywords arranged in a grid. This grid has 3 columns on desktop-width screens, 2 columns on tablet, and 1 on mobile. Each can have as many rows as you want. Each keyword represents the same...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Uses Lua|Main page}}&lt;br /&gt;
&lt;br /&gt;
This template is used to create an IMP Main Page. It uses [[Module:Main page]] to arrange a series of [[Template:Main page box]]es in a [https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout CSS grid].&lt;br /&gt;
&lt;br /&gt;
==Simple explanation==&lt;br /&gt;
The layout is made using keywords arranged in a grid. This grid has 3 columns on desktop-width screens, 2 columns on tablet, and 1 on mobile. Each can have as many rows as you want. Each keyword represents the same section and can span multiple rows and/or columns, but &amp;#039;&amp;#039;must&amp;#039;&amp;#039; form a contiguous rectangle of any dimension (1x1, 1x2, 2x2, 2x3, etc.).&lt;br /&gt;
&lt;br /&gt;
For example, the following input to desktop:&lt;br /&gt;
&amp;lt;pre style=&amp;quot;display:table;&amp;quot;&amp;gt;&lt;br /&gt;
welcome welcome welcome&lt;br /&gt;
about links links&lt;br /&gt;
about contribute contribute&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
would produce a grid resembling the following:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
| style=&amp;quot;background-color:rgba(0,255,0,0.15)&amp;quot; | welcome&lt;br /&gt;
| style=&amp;quot;background-color:rgba(0,255,0,0.15)&amp;quot; | welcome&lt;br /&gt;
| style=&amp;quot;background-color:rgba(0,255,0,0.15)&amp;quot; | welcome&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:rgba(255,0,255, 0.15)&amp;quot; | about &lt;br /&gt;
| style=&amp;quot;background-color:rgba(0,0,255, 0.15)&amp;quot; | links&lt;br /&gt;
| style=&amp;quot;background-color:rgba(0,0,255, 0.15)&amp;quot; | links&lt;br /&gt;
|-&lt;br /&gt;
| style=&amp;quot;background-color:rgba(255,0,255, 0.15)&amp;quot; | about &lt;br /&gt;
| style=&amp;quot;background-color:rgba(255,255,0, 0.15)&amp;quot; | contribute&lt;br /&gt;
| style=&amp;quot;background-color:rgba(255,255,0, 0.15)&amp;quot; | contribute&lt;br /&gt;
|}&lt;br /&gt;
Where &amp;lt;code&amp;gt;welcome&amp;lt;/code&amp;gt; is the contents of [[{{MediaWiki:Mainpage}}/welcome]], &amp;lt;code&amp;gt;about&amp;lt;/code&amp;gt; is the contents of [[{{MediaWiki:Mainpage}}/about]], and so on. See [[Template:Main page box]] for more information about creating your own boxes.&lt;br /&gt;
&lt;br /&gt;
If you enter a keyword that does not have a corresponding box already, you&amp;#039;ll be prompted to create one when saving or previewing the page.&lt;br /&gt;
&lt;br /&gt;
If you leave a keyword out of a certain layout, it will not be displayed on that layout. A warning will be given at the top of the edit preview in case this was an accident, but can be safely ignored if intentional.&lt;br /&gt;
&lt;br /&gt;
For additional hints and information, see the comments that came on your main page or ask a wiki.gg staff member for help.&lt;br /&gt;
&lt;br /&gt;
==Technical explanation==&lt;br /&gt;
For the CSS savvy, this section explains how it works a bit under the hood.&lt;br /&gt;
&lt;br /&gt;
The input to desktop, tablet, and mobile create [https://developer.mozilla.org/en-US/docs/Web/CSS/Using_CSS_custom_properties CSS variables] which are then used as the value of [https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas grid-template-areas] in media queries for screen widths &amp;gt;=1350px, &amp;gt;=990px, and &amp;lt;990px. The boxes are given an id based on their subpage name, which is then used by the module to find the template, as well as by the box templates to assign them a CSS id of &amp;lt;code&amp;gt;mp-box-&amp;lt;keyword&amp;gt;&amp;lt;/code&amp;gt;. Since these keywords are used directly in the grid layout, they must follow the rules of [https://developer.mozilla.org/en-US/docs/Web/CSS/custom-ident &amp;lt;custom-ident&amp;gt;] naming.&lt;br /&gt;
&lt;br /&gt;
==Dependencies==&lt;br /&gt;
For this template to work properly, you need the following:&lt;br /&gt;
* [[Module:Main page]]&lt;br /&gt;
* All templates in [[:Category:Main page templates]].&lt;br /&gt;
* All CSS within the &amp;quot;Main page layout&amp;quot; section found in [[MediaWiki:Common.css]].&lt;br /&gt;
The &amp;lt;code&amp;gt;[[MediaWiki:Gadgets/mpEditLinks|mpEditLinks]]&amp;lt;/code&amp;gt; gadget is also highly recommended. Its code can be found at [[MediaWiki:Gadgets/mpEditLinks/main.css]] and [[MediaWiki:Gadgets/mpEditLinks/main.js]].&lt;br /&gt;
&lt;br /&gt;
==TemplateData==&lt;br /&gt;
&amp;lt;templatedata&amp;gt;&lt;br /&gt;
{&lt;br /&gt;
	&amp;quot;params&amp;quot;: {&lt;br /&gt;
		&amp;quot;desktop&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Desktop&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The layout for wide screens&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;tablet&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Tablet&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The layout for mid-width screens&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		},&lt;br /&gt;
		&amp;quot;mobile&amp;quot;: {&lt;br /&gt;
			&amp;quot;label&amp;quot;: &amp;quot;Mobile&amp;quot;,&lt;br /&gt;
			&amp;quot;description&amp;quot;: &amp;quot;The layout for narrow screens&amp;quot;,&lt;br /&gt;
			&amp;quot;required&amp;quot;: true,&lt;br /&gt;
			&amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;&lt;br /&gt;
		}&lt;br /&gt;
	},&lt;br /&gt;
	&amp;quot;description&amp;quot;: &amp;quot;Creates an IMP Main Page.&amp;quot;,&lt;br /&gt;
	&amp;quot;format&amp;quot;: &amp;quot;block&amp;quot;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&amp;lt;noinclude&amp;gt;[[Category:Template documentation]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>Ais</name></author>
	</entry>
</feed>