Template:Box: Difference between revisions
From AYSO Wiki
Content deleted Content added
No edit summary |
m 39 revisions imported: Import changes since February 9, 2026 |
||
| (23 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
< |
<includeonly><div class="card with-{{#ifeq:{{{header|}}}|bottom|footer|header}} border border-primary" |
||
style="grid-column:auto / span 1; width:auto !important; max-width:none !important; min-width:0 !important; float:none !important; box-sizing:border-box; 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|}}}}}}}}}"}}><!-- |
|||
-->{{#ifeq:{{{header|}}}|bottom||{{#if:{{{target|}}} |
-->{{#ifeq:{{{header|}}}|bottom||{{#if:{{{target|}}} |
||
| Line 17: | Line 19: | ||
-->{{#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;"> |
|||
| ⚫ | |||
{{{title|Title}}} |
|||
</div>]] |
|||
| ⚫ | |||
style="position:absolute; left:0; right:0; bottom:28px; height:48px; display:flex; align-items:center; justify-content:center;"> |
|||
{{{title|Title}}} |
|||
</div> |
|||
}}|}} |
}}|}} |
||
</div>< |
</div></includeonly><noinclude> |
||
<noinclude> |
|||
;Usage |
;Usage |
||
<pre> |
<pre> |
||
| Line 32: | Line 39: | ||
}} |
}} |
||
</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 |
|||
}} |
|||
}} |
|||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Latest revision as of 02:04, 19 February 2026
- Usage
{{Box
|title=
|target=
|header=
|image=
|content=
}}
- Example
(Wrapped into Template:Boxes)
Creates a box.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Box title | title | If not set, falls back to `target`. | String | optional |
| Box header position | header | Set to "bottom" to move header down. Otherwise it will show up at the top. | String | optional |
| Link target | target | Name of the page to link the box to. | Page name | optional |
| Image | image | Name of the uploaded image to be shown as the box background. | File | optional |
| Box content | content | Arbitrary wikitext adapted for use inside templates. | Content | optional |

