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="flex:0 0 calc((100% - 48px) / 3); max-width:calc((100% - 48px) / 3); box-sizing:border-box; min-width:0;"> |
style="outline:4px dashed magenta; flex:0 0 calc((100% - 48px) / 3); max-width:calc((100% - 48px) / 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;" |
||
| Line 12: | Line 12: | ||
-->{{#if:{{{target|}}} |
-->{{#if:{{{target|}}} |
||
|[[{{{target|}}}| |
|[[{{{target|}}}|{{#if: {{{content|}}} |
||
|<div class="card-body" |
|<div class="card-body"> |
||
{{{content|}}}</div> |
|||
|<div class="card-body"></div> |
|||
}}]] |
|||
|<div class="card-body"> |
|||
{{{content|}}}</div> |
|||
}}<!-- |
}}<!-- |
||
| Line 41: | Line 46: | ||
}} |
}} |
||
</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> |
||

