Template:Boxes: Difference between revisions
From AYSO Wiki
Content deleted Content added
No edit summary |
m 22 revisions imported: Import changes since February 9, 2026 |
||
| (2 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> |
<includeonly><div class="ayso-card-deck {{{class|}}}" |
||
style="display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; align-items:stretch;"> |
|||
<div class="ayso-box-item" |
|||
{{{1|}}}</div></includeonly><noinclude> |
|||
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" |
|||
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|}}}}}}}}}"}}><!-- |
|||
-->{{#ifeq:{{{header|}}}|bottom||{{#if:{{{target|}}} |
|||
|[[{{{target|}}}|<div class="card-header">{{{title|Title}}}</div>]] |
|||
|<div class="card-header">{{{title|Title}}}</div> |
|||
}}}}<!-- |
|||
-->{{#if:{{{target|}}} |
|||
|[[{{{target|}}}|<div class="card-body"></div>]] |
|||
|<div class="card-body"></div> |
|||
}}<!-- |
|||
-->{{#ifeq:{{{header|}}}|bottom|{{#if:{{{target|}}} |
|||
|[[{{{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>]] |
|||
|<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> |
|||
}}|}} |
|||
</div> |
|||
</div> |
|||
</includeonly> |
|||
| ⚫ | |||
;Usage |
;Usage |
||
<pre> |
<pre> |
||
{{Boxes| |
|||
{{Box|title=...|target=...|header=bottom|image=...}} |
|||
{{Box|...}} |
|||
{{Box|...}} |
|||
{{Box|...}} |
|||
{{Box|...}} |
|||
{{Box|...}} |
|||
}} |
|||
</pre> |
</pre> |
||
<templatedata> |
|||
</noinclude> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"label": "Content", |
|||
"description": "Instances of Template:Box.", |
|||
"type": "content" |
|||
}, |
|||
"class": { |
|||
"label": "Class", |
|||
"description": "CSS class name to position / style the Boxes block.", |
|||
"example": "mt-5", |
|||
"type": "string" |
|||
} |
|||
}, |
|||
"description": "A wrapper templates for boxes." |
|||
} |
|||
| ⚫ | |||
Latest revision as of 02:04, 19 February 2026
- Usage
{{Boxes|
{{Box|...}}
{{Box|...}}
{{Box|...}}
{{Box|...}}
{{Box|...}}
}}
A wrapper templates for boxes.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Content | 1 | Instances of Template:Box. | Content | optional |
| Class | class | CSS class name to position / style the Boxes block.
| String | optional |

