Šablóna:BoxedColumn: Rozdiel medzi revíziami
(Created page with " <div class="col-md-{{{width|4}}}"> <div class="box"> <div class="image hidden-xs hidden-sm">{{{image|}}}</div> {{{content}}} <div class="pipe"></div> <div class="more">{{{url}…") |
|||
(2 medziľahlé úpravy od 2 ďalších používateľov nie sú zobrazené) | |||
Riadok 1: | Riadok 1: | ||
− | + | <div class="col-md-{{{width|4}}} {{{col-class|}}}"> | |
− | <div class="col-md-{{{width|4}}}"> | + | <div class="box {{{box-class|}}}"> |
− | <div class="box"> | + | {{#if:{{{image|}}}|<div class="image hidden-xs hidden-sm">{{{image|}}}</div>}} |
− | <div class="image hidden-xs hidden-sm">{{{image|}}}</div> | + | |
{{{content}}} | {{{content}}} | ||
<div class="pipe"></div> | <div class="pipe"></div> | ||
− | <div class="more">{{{ | + | {{#if:{{{link|}}}|<div class="more">{{{link}}}</div>}} |
− | + | ||
</div> | </div> | ||
+ | </div><noinclude> | ||
+ | = Template:BoxedColumn = | ||
+ | |||
+ | This template renders as a layout column of the given width on medium-sized and larger (>= 992 px wide) displays in the CSS framework Bootstrap wrapping a uniba.sk-style box with the given content and an arrow containing the given link. | ||
+ | |||
+ | Should be used inside a <code><nowiki><div class="row">…</div></nowiki></code> in order to obtain predictable results. | ||
+ | |||
+ | == Usage == | ||
+ | |||
+ | <nowiki>{{BoxedColumn | ||
+ | | width = 1–12, defaults to 4 | ||
+ | | col-class = additional class(es) for the column div, may be empty | ||
+ | | box-class = additional class(es) for the box div, may be empty | ||
+ | | 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 column | ||
+ | }}</nowiki> |
Aktuálna revízia z 13:39, 16. júl 2015
{{{content}}}
Template:BoxedColumn
This template renders as a layout column of the given width on medium-sized and larger (>= 992 px wide) displays in the CSS framework Bootstrap wrapping a uniba.sk-style box with the given content and an arrow containing the given link.
Should be used inside a <div class="row">…</div>
in order to obtain predictable results.
Usage
{{BoxedColumn | width = 1–12, defaults to 4 | col-class = additional class(es) for the column div, may be empty | box-class = additional class(es) for the box div, may be empty | 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 column }}