Template:Box: Difference between revisions

From AYSO Wiki
Content deleted Content added
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="card with-{{#ifeq:{{{header|}}}|bottom|footer|header}} border border-primary"
<div class="card with-{{#ifeq:{{{header|}}}|bottom|footer|header}} border border-primary"
style="height:340px; position:relative; overflow:hidden; background-position:center; background-repeat:no-repeat; background-size:cover;"
style="flex:0 0 calc(33.333% - 16px); height:340px; position:relative; overflow:hidden; background-position:center; background-repeat:no-repeat; background-size:cover;"
{{#if:{{{image|}}}|data-background="{{#ifeq:{{{image|}}}|default|/w/extensions/MyWikisLocalConfig/Ayso-logo.png|{{filepath:{{PAGENAME:{{{image|}}}}}}}}}"}}><!--
{{#if:{{{image|}}}|data-background="{{#ifeq:{{{image|}}}|default|/w/extensions/MyWikisLocalConfig/Ayso-logo.png|{{filepath:{{PAGENAME:{{{image|}}}}}}}}}"}}><!--


Line 16: Line 16:
-->{{#ifeq:{{{header|}}}|bottom|{{#if:{{{target|}}}
-->{{#ifeq:{{{header|}}}|bottom|{{#if:{{{target|}}}
|[[{{{target|}}}|<div class="card-footer"
|[[{{{target|}}}|<div class="card-footer"
style="position:absolute; left:0; right:0; bottom:28px; height:48px; display:flex; align-items:center; justify-content:center;">
style="position:absolute; left:0; right:0; bottom:24px; height:48px; display:flex; align-items:center; justify-content:center;">
{{{title|Title}}}
{{{title|Title}}}
</div>]]
</div>]]
|<div class="card-footer"
|<div class="card-footer"
style="position:absolute; left:0; right:0; bottom:10px; height:48px; display:flex; align-items:center; justify-content:center;">
style="position:absolute; left:0; right:0; bottom:24px; height:48px; display:flex; align-items:center; justify-content:center;">
{{{title|Title}}}
{{{title|Title}}}
</div>
</div>

Revision as of 10:01, 12 February 2026


Usage
{{Box
|title=
|target=
|header=bottom
|image=
|content=
}}