Jump to content

Template:Home section: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div style="width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); padding:0; box-sizing:border-box; background:transparent;">
<div style="width:100vw; max-width:100vw; margin-left:calc(50% - 50vw); padding:0; box-sizing:border-box; background:transparent;">
Line 33: Line 34:


{{#if:{{{Image|}}}|
{{#if:{{{Image|}}}|
<div style="width:100%; aspect-ratio:4 / 3; overflow:hidden; border-radius:26px; line-height:0; display:block;">
<div style="flex:1 1 520px; min-width:0; aspect-ratio:4 / 3; box-sizing:border-box; border-radius:26px; overflow:hidden; isolation:isolate; background-image:url('{{filepath:{{{Image}}}|nowiki}}'); background-size:cover; background-position:center; background-repeat:no-repeat;">
<div style="width:100%; height:100%; overflow:hidden; border-radius:26px;">
[[File:{{{Image}}}|frameless|800px|link=|alt={{{Title|}}}]]
</div>
</div>
</div>
}}
}}
Line 47: Line 45:


{{#if:{{{Image|}}}|
{{#if:{{{Image|}}}|
<div style="width:100%; aspect-ratio:4 / 3; overflow:hidden; border-radius:26px; line-height:0; display:block;">
<div style="flex:1 1 520px; min-width:0; aspect-ratio:4 / 3; box-sizing:border-box; border-radius:26px; overflow:hidden; isolation:isolate; background-image:url('{{filepath:{{{Image}}}|nowiki}}'); background-size:cover; background-position:center; background-repeat:no-repeat;">
<div style="width:100%; height:100%; overflow:hidden; border-radius:26px;">
[[File:{{{Image}}}|frameless|800px|link=|alt={{{Title|}}}]]
</div>
</div>
</div>
}}
}}
Line 79: Line 74:
|Centered=
|Centered=


<div style="max-width:1150px; margin:0 auto; text-align:center;">
<div style="width:100%; max-width:1150px; margin:0 auto; text-align:center;">


{{#if:{{{Image|}}}|
{{#if:{{{Image|}}}|
<div style="width:100%; aspect-ratio:16 / 7; overflow:hidden; border-radius:26px; line-height:0; display:block;">
<div style="width:100%; aspect-ratio:16 / 7; box-sizing:border-box; border-radius:26px; overflow:hidden; isolation:isolate; background-image:url('{{filepath:{{{Image}}}|nowiki}}'); background-size:cover; background-position:center; background-repeat:no-repeat;">
<div style="width:100%; height:100%; overflow:hidden; border-radius:26px;">
[[File:{{{Image}}}|frameless|800px|link=|alt={{{Title|}}}]]
</div>
</div>
</div>
}}
}}

Revision as of 12:54, 16 November 2026



Editorial homepage section layouts.