Template:ContentGrid/doc: Difference between revisions
[[mediawikiwiki:]]>Clump m (Reverted edits by 83.34.51.89 (talk) to last version by Tacsipacsi) |
m (1 revision imported) |
(No difference)
| |
Revision as of 20:34, 27 September 2022
{{#switch:<translate></translate> | = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:contentgrid/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}
|
{{#ifeq:show |show
| Template:Mbox }}{{#if: | | {{#ifexist:Template:ContentGrid | [[Category:{{#switch:Template | Template | Project = Template | Module = Module | User = User | #default = MediaWiki }} documentation pages{{#translation:}}]] | [[Category:Documentation subpages without corresponding pages{{#translation:}}]] }} }} | }}
| #default=
{{#switch:
| = {{#if:{{#ifexpr: ( {{#ifeq:doc|doc|1|0}} or ( {{#ifeq:{{#titleparts:template:contentgrid/doc|-1|-2}}|doc|1|0}} and {{#if:{{#translation:}}|1|0}} ) )|1|}}
|
{{#ifeq:show |show
| Template:Mbox }}{{#if: | | {{#ifexist:Template:ContentGrid | [[Category:{{#switch:Template | Template | Project = Template | Module = Module | User = User | #default = MediaWiki }} documentation pages{{#translation:}}]] | [[Category:Documentation subpages without corresponding pages{{#translation:}}]] }} }} | }}
| #default=
Lua error: expandTemplate: template loop detected.
}} }} Lua error: callParserFunction: function "#translation" was not found.
Usage
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 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:
Content
Content