Template:Boxes: 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-card-deck {{{class|}}}" |
||
| ⚫ | |||
<style> |
|||
{{{1|}}}</div></includeonly><noinclude> |
|||
/* Force 3-across grid for AYSO boxes, regardless of theme CSS */ |
|||
.ayso-card-deck{ |
|||
display:grid !important; |
|||
| ⚫ | |||
gap:24px !important; |
|||
align-items:stretch !important; |
|||
} |
|||
/* Make each card behave like a normal grid item (prevents 1-col + odd wrapping) */ |
|||
.ayso-card-deck > .card{ |
|||
grid-column:auto !important; |
|||
width:auto !important; |
|||
max-width:none !important; |
|||
min-width:0 !important; |
|||
float:none !important; |
|||
} |
|||
</style> |
|||
<div class="ayso-card-deck {{{class|}}}"> |
|||
| ⚫ | |||
</div> |
|||
</includeonly> |
|||
<noinclude> |
|||
;Usage |
;Usage |
||
<pre> |
<pre> |
||
{{Boxes| |
{{Boxes| |
||
| ⚫ | |||
{{Box|...}} |
{{Box|...}} |
||
{{Box|...}} |
{{Box|...}} |
||
| Line 34: | Line 12: | ||
}} |
}} |
||
</pre> |
</pre> |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"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." |
|||
} |
} |
||
</templatedata> |
</templatedata></noinclude> |
||
</noinclude> |
|||
Revision as of 10:11, 12 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 |

