<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AContentGrid%2Fdoc</id>
	<title>模板:ContentGrid/doc - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.undertensai.cn/index.php?action=history&amp;feed=atom&amp;title=%E6%A8%A1%E6%9D%BF%3AContentGrid%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:ContentGrid/doc&amp;action=history"/>
	<updated>2026-11-17T03:06:27Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:ContentGrid/doc&amp;diff=24037&amp;oldid=prev</id>
		<title>wiki&gt;Clump：​Reverted edits by ~2025-32018-87 (talk) to last version by NDG</title>
		<link rel="alternate" type="text/html" href="https://wiki.undertensai.cn/index.php?title=%E6%A8%A1%E6%9D%BF:ContentGrid/doc&amp;diff=24037&amp;oldid=prev"/>
		<updated>2025-11-08T12:19:47Z</updated>

		<summary type="html">&lt;p&gt;Reverted edits by &lt;a href=&quot;/%E7%89%B9%E6%AE%8A:%E7%94%A8%E6%88%B7%E8%B4%A1%E7%8C%AE/~2025-32018-87&quot; title=&quot;特殊:用户贡献/~2025-32018-87&quot;&gt;~2025-32018-87&lt;/a&gt; (&lt;a href=&quot;/index.php?title=%E7%94%A8%E6%88%B7%E8%AE%A8%E8%AE%BA:~2025-32018-87&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;用户讨论:~2025-32018-87（页面不存在）&quot;&gt;talk&lt;/a&gt;) to last version by NDG&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&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>wiki&gt;Clump</name></author>
	</entry>
</feed>