<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.you107657.duckdns.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AMain_page%2Fdoc</id>
	<title>Template:Main page/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.you107657.duckdns.org/index.php?action=history&amp;feed=atom&amp;title=Template%3AMain_page%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.you107657.duckdns.org/index.php?title=Template:Main_page/doc&amp;action=history"/>
	<updated>2026-09-25T19:45:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.you107657.duckdns.org/index.php?title=Template:Main_page/doc&amp;diff=4981&amp;oldid=prev</id>
		<title>imported&gt;Merge: merge.py</title>
		<link rel="alternate" type="text/html" href="https://wiki.you107657.duckdns.org/index.php?title=Template:Main_page/doc&amp;diff=4981&amp;oldid=prev"/>
		<updated>2026-09-25T10:55:52Z</updated>

		<summary type="html">&lt;p&gt;merge.py&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&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;
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 id of the boxes should be equal to the 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;
==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>imported&gt;Merge</name></author>
	</entry>
</feed>