No edit summary |
No edit summary Tag: Manual revert |
||
| (54 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{Documentation}} | {{Documentation}} | ||
<includeonly><onlyinclude | <includeonly><onlyinclude> | ||
<div class="box {{{color|blue}}}" style=" | <div class="box {{{color|blue}}}" style="float:{{{float|right}}};{{#ifeq:{{{float|right}}}|right|margin-left:15px;|margin-right:15px;margin-left:15px;}}{{#if:{{{clear|}}}|clear:{{{clear}}};}}"> | ||
<div class="iconbox {{{color|blue}}}">[[File:icon-image.svg|50px|link=]]</div> | <div class="iconbox {{{color|blue}}}">[[File:icon-image.svg|50px|link=]]</div> | ||
<div class="{{{color|blue}}}" style="position: relative; left: 0px; top: - | <div class="{{{color|blue}}}" style="position: relative; left: 0px; top: -43px; margin-bottom: -38px;">{{#ifeq:{{#count:{{{1}}}|;}}|0|[[File:{{{1}}}|{{{width|300px}}}|frameless|link=]]|<slideshow transition="blindDown" refresh="10000"> | ||
</div> | {{#loop: slide | ||
</div></onlyinclude></includeonly> | | 0 | ||
| {{#expr:1+{{#count:{{{1}}}|;}}}} | |||
| <div>[[File:{{#explode:{{{1}}}|;|{{#var:slide}}}}| {{{width|300px}}}|frameless|link=]]</div> | |||
}}</slideshow>}}</div></div>{{Categorize|{{ucfirst:{{{color|blue}}}}} Boxes|with}}</onlyinclude></includeonly> | |||
Latest revision as of 17:17, 12 February 2025
Template:Imagebox is a variation of Template:Box. It generates image slideshows with an icon in the upper left corner.
Usage
It accepts one mandatory string parameter and three optional parameters.
1is a semi-colon delimited list of the image files to be included in the box.width(defaults to300px)color(default:blue) controls the color of the background. The valid options are:
red
green
blue
yellow
purple
cyan
gray
white
Return
{{Imagebox|Scire-footprint-overlay.webp|float=left}} returns the image box on the left.
{{Imagebox|shirayuri-jacket-p.png; shirayuri-jumpsuit-p.png; shirayuri-student_violinist-p.png|color=yellow}} returns the box on the right: The documentation above was transcluded from Template:Imagebox/Documentation. [edit]
