Template:Box: Difference between revisions
From AYSO Wiki
Content deleted Content added
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude><div class="ayso-card-deck"></noinclude><div class="card with-{{#ifeq:{{{header|}}}|bottom|footer|header}} border border-primary" data-background="{{#if:{{{image|}}}|{{filepath:{{PAGENAME:{{{image|}}}}}}}|/w/extensions/MyWikisLocalConfig/Ayso-logo.png}}"><!-- |
<noinclude><div class="ayso-card-deck"></noinclude><div class="card with-{{#ifeq:{{{header|}}}|bottom|footer|header}} border border-primary" data-background="{{#if:{{{image|}}}|{{filepath:{{PAGENAME:{{{image|}}}}}}}|/w/extensions/MyWikisLocalConfig/Ayso-logo.png}}"><!-- |
||
-->{{#ifeq:{{{header|}}}|bottom|| |
-->{{#ifeq:{{{header|}}}|bottom||{{#if:{{{target|}}} |
||
| ⚫ | |||
|<div class="card-header">{{{title|Title}}}</div> |
|||
| ⚫ | |||
--> |
-->{{#if:{{{target|}}} |
||
|[[{{{target|}}}|{{#if: {{{content|}}} |
|||
|<div class="card-body"> |
|||
{{{content|}}}</div> |
|||
|<div class="card-body"></div> |
|||
}}]] |
|||
|<div class="card-body"> |
|<div class="card-body"> |
||
{{{content|}}}</div> |
{{{content|}}}</div> |
||
}}<!-- |
|||
| ⚫ | |||
| ⚫ | |||
-->{{#ifeq:{{{header|}}}|bottom| |
-->{{#ifeq:{{{header|}}}|bottom|{{#if:{{{target|}}} |
||
|[[{{{target|}}}|<div class="card-header">{{{title|Title}}}</div>]] |
|||
|<div class="card-header">{{{title|Title}}}</div> |
|||
}}|}} |
|||
</div><noinclude></div></noinclude> |
</div><noinclude></div></noinclude> |
||
<noinclude> |
<noinclude> |
||
Revision as of 03:36, 22 April 2022
{{#ifeq:|bottom||
Title
- Usage
{{Box
|title=
|target=
|header=
|image=
|content=
}}
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 |

