(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>")
 
 
(2 intermediate revisions by the same user not shown)
Riadok 1: Riadok 1:
<div class="box {{{class|}}}">
+
<div class="box {{{class|}}}">{{#if:{{{image|}}}|<div class="image  hidden-xs  hidden-sm">{{{image|}}}</div>}}
<div class="image  hidden-xs  hidden-sm">{{{image|}}}</div>
+
{{{content|}}}{{{1|}}}
{{{content}}}
+
 
<div class="pipe"></div>
 
<div class="pipe"></div>
<div class="more">{{{url}}}</div>
+
{{#if:{{{link|}}}|<div class="more">{{{link}}}</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>

Aktuálna revízia z 02:01, 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 {{=}})
}}