Jump to content

Template:Home section: Difference between revisions

From Fedoverse Wiki, the free encyclopedia
Created page with " <includeonly> <div style="max-width:1000px; margin:30px auto; padding:22px; border-radius:18px; background:#f7f7f7; box-sizing:border-box; color:#111;"> {{#switch: {{{Layout|Image left / text right}}} |Text left / image right= <div style="display:flex; flex-wrap:wrap; align-items:center; gap:24px;"> <div style="flex:1 1 300px; min-width:0; font-family:Inter,system-ui,sans-serif; line-height:1.7;"> {{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:1...."
 
No edit summary
Line 1: Line 1:


<includeonly>
<includeonly>
<div style="max-width:1000px; margin:30px auto; padding:22px; border-radius:18px; background:#f7f7f7; box-sizing:border-box; color:#111;">
<div style="width:100%; max-width:1280px; margin:0 auto; padding:65px 24px; box-sizing:border-box;">


{{#switch: {{{Layout|Image left / text right}}}
{{#switch: {{{Layout|Image left / text right}}}
Line 7: Line 7:
|Text left / image right=
|Text left / image right=


<div style="display:flex; flex-wrap:wrap; align-items:center; gap:24px;">
<div style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(30px,5vw,75px);">
 
<div style="flex:1 1 380px; min-width:0;">
<div style="flex:1 1 300px; min-width:0; font-family:Inter,system-ui,sans-serif; line-height:1.7;">
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.4rem); font-weight:normal; line-height:1.12; margin:0 0 24px;">{{{Title}}}</h2>}}
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:1.8rem; font-weight:normal; margin:0 0 12px;">{{{Title}}}</h2>}}
<div style="font-family:Inter,system-ui,sans-serif; font-size:1.12rem; line-height:1.85;">
{{{Text|}}}
{{{Text|}}}
{{#if:{{{Button text|}}}|{{#if:{{{Button URL|}}}|<p style="margin:18px 0 0;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}}}
</div>
</div>
 
{{#if:{{{Button text|}}}|<p style="margin-top:30px;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}
<div style="flex:1 1 300px; min-width:0; text-align:center;">
</div>
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|320px|alt={{{Title|}}}]]}}
<div style="flex:1 1 450px; min-width:0;">
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|600px|alt={{{Title|}}}]]}}
</div>
</div>
</div>
</div>


|Centered=
|Centered=


<div style="max-width:850px; margin:0 auto; text-align:center;">
<div style="max-width:1100px; margin:0 auto; text-align:center;">
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|700px|alt={{{Title|}}}]]}}
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|1000px|alt={{{Title|}}}]]}}
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:1.8rem; font-weight:normal; margin:18px 0 10px;">{{{Title}}}</h2>}}
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.5rem); font-weight:normal; line-height:1.15; margin:35px 0 20px;">{{{Title}}}</h2>}}
<div style="font-family:Inter,system-ui,sans-serif; line-height:1.7;">{{{Text|}}}</div>
<div style="font-family:Inter,system-ui,sans-serif; font-size:1.12rem; line-height:1.85; max-width:750px; margin:auto;">
{{#if:{{{Button text|}}}|{{#if:{{{Button URL|}}}|<p style="margin:18px 0 0;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}}}
{{{Text|}}}
</div>
{{#if:{{{Button text|}}}|<p style="margin-top:30px;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}
</div>
</div>


|#default=
|#default=


<div style="display:flex; flex-wrap:wrap; align-items:center; gap:24px;">
<div style="display:flex; flex-wrap:wrap; align-items:center; gap:clamp(30px,5vw,75px);">
 
<div style="flex:1 1 450px; min-width:0;">
<div style="flex:1 1 300px; min-width:0; text-align:center;">
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|600px|alt={{{Title|}}}]]}}
{{#if:{{{Image|}}}|[[File:{{{Image}}}|frameless|center|320px|alt={{{Title|}}}]]}}
</div>
</div>
 
<div style="flex:1 1 380px; min-width:0;">
<div style="flex:1 1 300px; min-width:0; font-family:Inter,system-ui,sans-serif; line-height:1.7;">
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:clamp(2rem,4vw,3.4rem); font-weight:normal; line-height:1.12; margin:0 0 24px;">{{{Title}}}</h2>}}
{{#if:{{{Title|}}}|<h2 style="font-family:Georgia,serif; font-size:1.8rem; font-weight:normal; margin:0 0 12px;">{{{Title}}}</h2>}}
<div style="font-family:Inter,system-ui,sans-serif; font-size:1.12rem; line-height:1.85;">
{{{Text|}}}
{{{Text|}}}
{{#if:{{{Button text|}}}|{{#if:{{{Button URL|}}}|<p style="margin:18px 0 0;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}}}
</div>
</div>
 
{{#if:{{{Button text|}}}|<p style="margin-top:30px;"><span class="plainlinks">[{{{Button URL}}} <span class="btn btn-blue">{{{Button text}}}</span>]</span></p>}}
</div>
</div>
</div>


Line 51: Line 51:
</includeonly>
</includeonly>
<noinclude>
<noinclude>
This template displays one homepage section. Use Form:Homepage to manage sections.
Homepage editorial section template.
</noinclude>
</noinclude>

Revision as of 12:21, 16 November 2026


Homepage editorial section template.