<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AContent_grid%2Fdoc</id>
	<title>Template:Content grid/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Template%3AContent_grid%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Content_grid/doc&amp;action=history"/>
	<updated>2026-10-31T16:19:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Template:Content_grid/doc&amp;diff=113322&amp;oldid=prev</id>
		<title>Wikipedia&gt;Waddie96: /* Comparing good and bad sample code */</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Template:Content_grid/doc&amp;diff=113322&amp;oldid=prev"/>
		<updated>2025-10-19T20:14:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Comparing good and bad sample code&lt;/span&gt;&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}}&lt;br /&gt;
&lt;br /&gt;
Copied from [[mw:Template:ContentGrid]].&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;
== Usage ==&lt;br /&gt;
&lt;br /&gt;
{{dc|1=Add &amp;lt;code&amp;gt;style=&amp;quot;margin: 1em 0; gap: 2em;&amp;quot;&amp;lt;/code&amp;gt; by making &amp;lt;code&amp;gt;type=normal&amp;lt;/code&amp;gt; to get better spacing.}}&lt;br /&gt;
&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;{{Content grid&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;
{{Content grid&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;{{Content grid&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;
{{Content grid&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;{{Content grid&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;
{{Content grid&lt;br /&gt;
|content=&lt;br /&gt;
{{Colored box|title=Yes|background-title-color=var(--background-color-success-subtle);|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|background-title-color=var(--background-color-destructive-subtle);|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;
{{#tag:syntaxhighlight|&amp;lt;nowiki&amp;gt;{{Content grid&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;|lang=wikitext}}&lt;br /&gt;
&lt;br /&gt;
Produces:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{Sandbox other||&lt;br /&gt;
&amp;lt;!-- Categories below this line --&amp;gt;&lt;br /&gt;
[[Category:Multi-column templates]]&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Waddie96</name></author>
	</entry>
</feed>