Template:ContentSquare: Difference between revisions

From The Coffin of Andy and Leyley

(Improve CSS)
(Improve CSS further)
Line 1: Line 1:
<includeonly>{|align="center" style="text-align:center; margin-bottom:5px; overflow: hidden; border:2px solid #323232; background-color:transparent;  
<includeonly>{|align="center" style="text-align:center; margin-bottom:5px; overflow: hidden; 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-top: 2px solid; padding-bottom: 0.25rem;">[[{{{articlename|{{{name}}}}}}|'''{{{name}}}''']]</div>
|<div style="border:2px solid #323232; position: relative; overflow: hidden; width: 150px; height: 150px;">[[Image:{{{image}}}|150px|{{{articlename|{{{name}}}}}}|link={{{articlename|{{{name}}}}}}]]</div>[[{{{articlename|{{{name}}}}}}|'''{{{name}}}''']]
|}</includeonly>
|}</includeonly>
<noinclude>{{documentation}}[[Category:Templates]]</noinclude>
<noinclude>{{documentation}}[[Category:Templates]]</noinclude>

Revision as of 22:08, 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
Example