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="ayso-box-item" |
<div class="ayso-box-item" |
||
style="outline:4px dashed magenta; flex:0 0 calc((100% - |
style="outline:4px dashed magenta; flex:0 0 calc((100% - 24px) / 3); max-width:calc((100% - 24px) / 3); box-sizing:border-box; min-width:0;"> |
||
<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="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|}}}}}}}}}"}}><!-- |
||
-->{{#ifeq:{{{header|}}}|bottom||{{#if:{{{target|}}} |
-->{{#ifeq:{{{header|}}}|bottom||{{#if:{{{target|}}} |
||
|[[{{{target|}}}|<div class="card-header">{{{title|Title}}}</div>]] |
|[[{{{target|}}}|<div class="card-header">{{{title|Title}}}</div>]] |
||
|<div class="card-header">{{{title|Title}}}</div> |
|<div class="card-header">{{{title|Title}}}</div> |
||
}}}}<!-- |
}}}}<!-- |
||
-->{{#if:{{{target|}}} |
-->{{#if:{{{target|}}} |
||
|[[{{{target|}}}| |
|[[{{{target|}}}|<div class="card-body"></div>]] |
||
|<div class="card-body"></div> |
|||
{{{content|}}}</div> |
|||
|<div class="card-body"></div> |
|||
}}]] |
|||
|<div class="card-body"> |
|||
{{{content|}}}</div> |
|||
}}<!-- |
}}<!-- |
||
-->{{#ifeq:{{{header|}}}|bottom|{{#if:{{{target|}}} |
-->{{#ifeq:{{{header|}}}|bottom|{{#if:{{{target|}}} |
||
|[[{{{target|}}}|<div class="card-footer" |
|[[{{{target|}}}|<div class="card-footer" |
||
| Line 38: | Line 30: | ||
;Usage |
;Usage |
||
<pre> |
<pre> |
||
{{Box|title=...|target=...|header=bottom|image=...}} |
|||
{{Box |
|||
|title= |
|||
|target= |
|||
|header= |
|||
|image= |
|||
|content= |
|||
}} |
|||
</pre> |
</pre> |
||
;Example |
|||
(Wrapped into [[Template:Boxes]]) |
|||
{{Boxes| |
|||
{{Box |
|||
|title=Sports Connect |
|||
|target=Sports Connect |
|||
|header=bottom |
|||
|image=Ayso-connect.png |
|||
}} |
|||
{{Box |
|||
|title=AYSOU |
|||
|target=AYSOU |
|||
|header=bottom |
|||
|image=Ayso-circle.png |
|||
}} |
|||
{{Box |
|||
|title=Background Checks |
|||
|target=Background Checks |
|||
|header=bottom |
|||
|image=Ayso-run.png |
|||
}} |
|||
}} |
|||
</noinclude> |
</noinclude> |
||
Revision as of 10:28, 12 February 2026
- Usage
{{Box|title=...|target=...|header=bottom|image=...}}

