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-card-deck"><div class="card with-{{#ifeq:{{{header|}}}|bottom|footer|header}} border border-primary" data-background="/w/extensions/MyWikisLocalConfig/Ayso-corp-white.png"><!--
<noinclude><div class="ayso-card-deck"></noinclude><div class="card with-{{#ifeq:{{{header|}}}|bottom|footer|header}} border border-primary" data-background="/w/extensions/MyWikisLocalConfig/Ayso-corp-white.png"><!--


-->{{#ifeq:{{{header|}}}|bottom||[[{{{target|{{{title|Main Page}}}}}}|<div class="card-header">{{{title|{{{target|Main Page}}}}}}</div>]]}}<!--
-->{{#ifeq:{{{header|}}}|bottom||[[{{{target|{{{title|Main Page}}}}}}|<div class="card-header">{{{title|{{{target|Main Page}}}}}}</div>]]}}<!--
Line 7: Line 7:


-->{{#ifeq:{{{header|}}}|bottom|[[{{{target|{{{title|Main Page}}}}}}|<div class="card-footer">{{{title|{{{target|Main Page}}}}}}</div>]]|}}
-->{{#ifeq:{{{header|}}}|bottom|[[{{{target|{{{title|Main Page}}}}}}|<div class="card-footer">{{{title|{{{target|Main Page}}}}}}</div>]]|}}
</div></div>
</div><noinclude></div></noinclude>
<noinclude>
<noinclude>
;Usage
;Usage

Revision as of 01:59, 22 April 2022

Usage
{{Box
|title=
|target=
|header=
|image=
|content=
}}

Creates a box.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Box titletitle

If not set, falls back to `target`.

Stringoptional
Box header positionheader

Set to "bottom" to move header down. Otherwise it will show up at the top.

Stringoptional
Link targettarget

Name of the page to link the box to.

Page nameoptional
Imageimage

Name of the uploaded image to be shown as the box background.

Fileoptional
Box contentcontent

Arbitrary wikitext adapted for use inside templates.

Contentoptional