Template:Box: Difference between revisions
From AYSO Wiki
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
<div class="ayso-box-item" style="min-width:0; box-sizing:border-box;"> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
-->{{#ifeq:{{{header|}}}|bottom||{{#if:{{{target|}}} |
-->{{#ifeq:{{{header|}}}|bottom||{{#if:{{{target|}}} |
||
| Line 30: | Line 28: | ||
</div> |
</div> |
||
}}|}} |
}}|}} |
||
| ⚫ | |||
</div> |
|||
</div> |
|||
</includeonly> |
|||
<noinclude> |
|||
;Usage |
;Usage |
||
<pre> |
<pre> |
||
| Line 45: | Line 39: | ||
}} |
}} |
||
</pre> |
</pre> |
||
;Example |
;Example |
||
(Wrapped into [[Template:Boxes]]) |
(Wrapped into [[Template:Boxes]]) |
||
| Line 70: | Line 63: | ||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
"params": { |
|||
"header": { |
|||
"label": "Box header position", |
|||
"description": "Set to \"bottom\" to move header down. Otherwise it will show up at the top.", |
|||
"type": "string" |
|||
}, |
|||
"image": { |
|||
"label": "Image", |
|||
"description": "Name of the uploaded image to be shown as the box background.", |
|||
"type": "wiki-file-name" |
|||
}, |
|||
"target": { |
|||
"label": "Link target", |
|||
"description": "Name of the page to link the box to.", |
|||
"type": "wiki-page-name" |
|||
}, |
|||
"title": { |
|||
"label": "Box title", |
|||
"description": "If not set, falls back to `target`.", |
|||
"type": "string" |
|||
}, |
|||
"content": { |
|||
"label": "Box content", |
|||
"description": "Arbitrary wikitext adapted for use inside templates.", |
|||
"type": "content" |
|||
} |
|||
} |
|||
}, |
|||
"description": "Creates a box.", |
|||
"paramOrder": [ |
|||
"title", |
|||
"header", |
|||
"target", |
|||
"image", |
|||
"content" |
|||
] |
|||
} |
} |
||
</templatedata> |
</templatedata> |
||
Revision as of 10:32, 12 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 |

