Template:ContentGrid/doc: Difference between revisions

Nothing to hide, but nothing to show you either.
Jump to navigation Jump to search
Content added Content deleted
(Create doc page)
 
m (2 revisions imported from mw:Template:ContentGrid/doc)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{Uses TemplateStyles|Template:ContentGrid/styles.css}}


== Usage ==
== Usage ==
Line 68: Line 69:


}}
}}

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->
<!-- Categories go here and interwikis go in Wikidata. -->

Latest revision as of 14:39, 10 June 2021

Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.

Usage[edit source]

A responsive grid of page elements. Populate the content parameter with grid elements separated by a new line.

For example:

{{ContentGrid
|content=

Text A

Text B

Text C
}}

Produces:

Text A

Text B

Text C


This template works well with other templates, like Template:Colored box.

For example:

{{ContentGrid
|content=

{{Colored box
|title = Title
|content = Content
}}

{{Colored box
|title =
|content = 
}}

}}

Produces:

Title

Content

Title

Content