<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AContentGrid%2Fdoc</id>
	<title>Template:ContentGrid/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://compusofia.com/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AContentGrid%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:ContentGrid/doc&amp;action=history"/>
	<updated>2026-04-19T05:15:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:ContentGrid/doc&amp;diff=2038&amp;oldid=prev</id>
		<title>Majestix: 1 revision imported: Initial Setup</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:ContentGrid/doc&amp;diff=2038&amp;oldid=prev"/>
		<updated>2026-04-10T06:21:31Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Initial Setup&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:21, 10 April 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikiNonStop:diff:1.41:old-2037:rev-2038 --&gt;
&lt;/table&gt;</summary>
		<author><name>Majestix</name></author>
	</entry>
	<entry>
		<id>https://compusofia.com/w/index.php?title=Template:ContentGrid/doc&amp;diff=2037&amp;oldid=prev</id>
		<title>en&gt;Clump: Reverted edits by ~2025-32018-87 (talk) to last version by NDG</title>
		<link rel="alternate" type="text/html" href="https://compusofia.com/w/index.php?title=Template:ContentGrid/doc&amp;diff=2037&amp;oldid=prev"/>
		<updated>2025-11-08T12:19:47Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/wiki/Special:Contributions/~2025-32018-87&quot; title=&quot;Special:Contributions/~2025-32018-87&quot;&gt;~2025-32018-87&lt;/a&gt; (&lt;a href=&quot;/w/index.php?title=User_talk:~2025-32018-87&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;User talk:~2025-32018-87 (page does not exist)&quot;&gt;talk&lt;/a&gt;) to last version by NDG&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go at the bottom of this page and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
{{Uses TemplateStyles|Template:ContentGrid/styles.css}}&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
A responsive grid of page elements. Populate the &amp;lt;code&amp;gt;content&amp;lt;/code&amp;gt; parameter with grid elements separated by a new line.&lt;br /&gt;
&lt;br /&gt;
{{tl|TwoColumnGrid}} uses this template with {{para|grid-rows-min-max|10px}} and {{para|grid-columns-min-max}} having a default value of &amp;lt;code&amp;gt;500px&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{ContentGrid&lt;br /&gt;
|style= custom style&lt;br /&gt;
|content=&lt;br /&gt;
Text A&lt;br /&gt;
Text B&lt;br /&gt;
Text C&lt;br /&gt;
}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
{{ContentGrid&lt;br /&gt;
|content=&lt;br /&gt;
Text A&lt;br /&gt;
Text B&lt;br /&gt;
Text C&lt;br /&gt;
}}&lt;br /&gt;
This template works well with other templates, like [[Template:Colored box]].&lt;br /&gt;
&lt;br /&gt;
For example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{ContentGrid&lt;br /&gt;
|content=&lt;br /&gt;
&lt;br /&gt;
{{Colored box&lt;br /&gt;
|title = Title&lt;br /&gt;
|content = Content&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Colored box&lt;br /&gt;
|title =&lt;br /&gt;
|content = &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
{{ContentGrid&lt;br /&gt;
|content=&lt;br /&gt;
&lt;br /&gt;
{{Colored box&lt;br /&gt;
|title = Title&lt;br /&gt;
|content = Content&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Colored box&lt;br /&gt;
|title = Title&lt;br /&gt;
|content = Content&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Comparing good and bad sample code ===&lt;br /&gt;
&lt;br /&gt;
To compare a good and bad sample of code using {{tl|Colored box}}. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{ContentGrid&lt;br /&gt;
|content=&lt;br /&gt;
{{Colored box|title=Yes|icon=OOjs UI icon check-constructive.svg|content=&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin:0 auto; overflow:scroll; width:auto; max-width:100%&amp;quot;&amp;gt;[[File:Brooklyn_Skyline_(9910358874).jpg|1800px|class=noresize]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Colored box|title=No|icon=OOjs UI icon close-ltr-destructive.svg|content=&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
[[Image:Panorama.jpg|1800px]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
&lt;br /&gt;
{{ContentGrid&lt;br /&gt;
|content=&lt;br /&gt;
{{Colored box|title=Yes|icon=OOjs UI icon check-constructive.svg|content=&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;div style=&amp;quot;margin:0 auto; overflow:scroll; width:auto; max-width:100%&amp;quot;&amp;gt;[[File:Brooklyn_Skyline_(9910358874).jpg|1800px|class=noresize]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
{{Colored box|title=No|icon=OOjs UI icon close-ltr-destructive.svg|content=&amp;lt;syntaxhighlight lang=&amp;quot;wikitext&amp;quot;&amp;gt;&lt;br /&gt;
[[Image:Panorama.jpg|1800px]]&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Or, using {{tl|Code convention example}}. For example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{ContentGrid&lt;br /&gt;
|content=&lt;br /&gt;
{{code convention example|posneg=negative|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// No: Avoid composing message keys&lt;br /&gt;
$context-&amp;gt;msg( &amp;#039;templatesused-&amp;#039; . ( $section ? &amp;#039;section&amp;#039; : &amp;#039;page&amp;#039; ) );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{code convention example|posneg=positive|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// Yes: Prefer full message keys&lt;br /&gt;
$context-&amp;gt;msg( $section ? &amp;#039;templatesused-section&amp;#039; : &amp;#039;templatesused-page&amp;#039; );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
&lt;br /&gt;
{{ContentGrid&lt;br /&gt;
|content=&lt;br /&gt;
{{code convention example|posneg=negative|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// No: Avoid composing message keys&lt;br /&gt;
$context-&amp;gt;msg( &amp;#039;templatesused-&amp;#039; . ( $section ? &amp;#039;section&amp;#039; : &amp;#039;page&amp;#039; ) );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{code convention example|posneg=positive|&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;php&amp;quot;&amp;gt;&lt;br /&gt;
// Yes: Prefer full message keys&lt;br /&gt;
$context-&amp;gt;msg( $section ? &amp;#039;templatesused-section&amp;#039; : &amp;#039;templatesused-page&amp;#039; );&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{#ifeq:{{SUBPAGENAME}}|sandbox||&lt;br /&gt;
&amp;lt;!-- Categories go here and interwikis go in Wikidata. --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>en&gt;Clump</name></author>
	</entry>
</feed>