(Created page with "<div class="box {{{class|}}}"> <div class="image hidden-xs hidden-sm">{{{image|}}}</div> {{{content}}} <div class="pipe"></div> <div class="more">{{{url}}}</div> </div>")
 
Line 1: Line 1:
 
<div class="box {{{class|}}}">
 
<div class="box {{{class|}}}">
<div class="image  hidden-xs  hidden-sm">{{{image|}}}</div>
+
{{#if:{{{image|}}}|<div class="image  hidden-xs  hidden-sm">{{{image|}}}</div>}}
{{{content}}}
+
{{{content|}}}{{{1|}}}
 
<div class="pipe"></div>
 
<div class="pipe"></div>
<div class="more">{{{url}}}</div>
+
{{#if:{{{url|}}}|<div class="more">{{{url}}}</div>}}
</div>
+
</div><noinclude>
 +
= Template:Box =
 +
 
 +
This template renders as a uniba.sk-style article box with the given content, an optional header image, and an optional arrow containing the given link.
 +
 
 +
== Usage ==
 +
 
 +
<nowiki>{{Box
 +
    | class = additional class(es) for the box div (optional)
 +
    | image = the header image, displayed above content (optional)
 +
    | link = the link to be rendered as an arrow in the bottom-right corner of the box (optional)
 +
    | content = content to be displayed in the box
 +
        non-markup ‘|’ must be escaped as {{!}};
 +
        ‘content =’ is not mandatory, but if ommited,
 +
        non-markup ‘=’ must be escaped as {{=}})
 +
}}</nowiki>

Revision as of 00:46, 8 September 2017


Template:Box

This template renders as a uniba.sk-style article box with the given content, an optional header image, and an optional arrow containing the given link.

Usage

{{Box
    | class = additional class(es) for the box div (optional)
    | image = the header image, displayed above content (optional)
    | link = the link to be rendered as an arrow in the bottom-right corner of the box (optional)
    | content = content to be displayed in the box
        non-markup ‘|’ must be escaped as {{!}};
        ‘content =’ is not mandatory, but if ommited,
        non-markup ‘=’ must be escaped as {{=}})
}}