Template:ContentSquare: Difference between revisions

From The Coffin of Andy and Leyley

(Only render non-documentation content on include.)
(Improve CSS)
Line 1: Line 1:
<includeonly>{|align="center" style="text-align:center; margin-bottom:5px; overflow: hidden; border:2px solid #323232; background-color:#2d2d2d;  
<includeonly>{|align="center" style="text-align:center; margin-bottom:5px; overflow: hidden; border:2px solid #323232; background-color:transparent;  
|<div style="position: relative; overflow: hidden; width: 150px; height: 150px;">[[Image:{{{image}}}|150px|{{{articlename|{{{name}}}}}}|link={{{articlename|{{{name}}}}}}]]</div><div style="border:2px solid ; margin: 3px, 3px, 3px, 3px;">[[{{{articlename|{{{name}}}}}}|'''{{{name}}}''']]</div>
|<div style="position: relative; overflow: hidden; width: 150px; height: 150px;">[[Image:{{{image}}}|150px|{{{articlename|{{{name}}}}}}|link={{{articlename|{{{name}}}}}}]]</div><div style="border-top: 2px solid; padding-bottom: 0.25rem;">[[{{{articlename|{{{name}}}}}}|'''{{{name}}}''']]</div>
|}</includeonly>
|}</includeonly>
<noinclude>{{documentation}}[[Category:Templates]]</noinclude>
<noinclude>{{documentation}}[[Category:Templates]]</noinclude>

Revision as of 22:07, 2 January 2024


Template documentation
Note: portions of the template sample may not be visible without values provided.
View or edit this documentation. (About template documentation)
Editors can experiment in this template's sandbox and test case pages.

Description

To use this template, copy the following code and fill in the appropriate fields. To add a field, use Template:ContentSquare.

Syntax

{{ContentSquare|name=Example|image=Example.jpg}}
Example