CURRENT MISSION: Conclude the 2026 soyjak.party hack page, aswell as any pages relating to it, such as the Summer 2026 Crisis page.
Update Quotecord with any relevant info. See the blackboard for more info.
Template:Multiple image: Difference between revisions
From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search
this should work or something |
ok it should be fixed now |
||
| Line 1: | Line 1: | ||
{{ | <includeonly><div class="thumb {{#switch: {{{align|}}} | left = tleft | center | centre = tnone | tright}}" style="width:{{#ifeq: {{{direction|horizontal}}} | vertical | {{#expr: {{#if: {{{width|}}} | {{{width}}} | {{{width1}}} }} + 12}} | {{#if: {{{width|}}} | {{#expr: 8 + ({{{width|0}}} + 4) * {{#if: {{{image5|}}} | 5 | {{#if: {{{image4|}}} | 4 | {{#if: {{{image3|}}} | 3 | 2 }} }} }} }} | {{#expr: 16 + {{{width1}}} + {{{width2}}} + {{{width3|0}}} + {{{width4|0}}} + {{{width5|0}}} + {{#if: {{{image5|}}} | 12 | {{#if: {{{image4|}}} | 8 | {{#if: {{{image3|}}} | 4 | 0 }} }} }} }} }} }}px;{{#switch: {{{align|}}} | center | centre = margin: 0 auto;}}{{#if:{{{background color|}}}|background-color:{{{background color}}};}}"> | ||
< | <div class="thumbinner" {{#if:{{{background color|}}}|style="background-color:{{{background color}}};"}}> | ||
{{#if: {{{header|}}} | <div style="clear:both;font-weight:bold;text-align:{{{header_align|center}}};background:{{{header_background|transparent}}};">{{{header}}}</div> }} | |||
<div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width1}}} }} }}px;"><div class="thumbimage">[[File:{{{image1}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width1}}} }}px|{{{alt1|{{{footer|}}}}}}]]</div>{{#if: {{{caption1|}}} | <div class="thumbcaption" style="clear:left;">{{{caption1}}}</div>}}</div> | |||
<div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width2}}} }} }}px;"><div class="thumbimage">[[File:{{{image2}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width2}}} }}px||{{{alt2|{{{footer|}}}}}}]]</div>{{#if: {{{caption2|}}} | <div class="thumbcaption" style="clear:left;">{{{caption2}}}</div>}}</div> | |||
{{#if: {{{image3|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width3}}} }} }}px;"><div class="thumbimage">[[File:{{{image3}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width3}}} }}px|{{{alt3|{{{footer|}}}}}}]]</div>{{#if: {{{caption3|}}} | <div class="thumbcaption" style="clear:left;">{{{caption3}}}</div>}}</div> | |||
{{#if: {{{image4|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width4}}} }} }}px;"><div class="thumbimage">[[File:{{{image4}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width4}}} }}px|{{{alt4|{{{footer|}}}}}}]]</div>{{#if: {{{caption4|}}} | <div class="thumbcaption" style="clear:left;">{{{caption4}}}</div>}}</div> | |||
{{#if: {{{image5|}}} | <div style="{{#ifeq: {{{direction|horizontal}}} | horizontal | float:left;}}margin:1px;width:{{#expr: 2 + {{#if: {{{width|}}} | {{{width}}} | {{{width5}}} }} }}px;"><div class="thumbimage">[[File:{{{image5}}}|{{#if: {{{width|}}} | {{{width}}} | {{{width5}}} }}px|{{{alt5|{{{footer|}}}}}}]]</div>{{#if: {{{caption5|}}} | <div class="thumbcaption" style="clear:left;">{{{caption5}}}</div>}}</div>}}}}}} | |||
{{#if: {{{footer|}}} | <div class="thumbcaption" style="clear:left;text-align:{{{footer_align|left}}};background:{{{footer_background|transparent}}};">{{{footer}}}</div> }} | |||
</div> | |||
</div></includeonly><noinclude> | |||
{| class="roundy" style="margin:auto; border: 2px solid #9ac5db; background: #FFFFFF" | |||
|- bgcolor=#f1f7fb | |||
! class=roundy colspan=2 | Basic Usage | |||
|- | |||
| colspan=2 | | |||
The multiple image template allows to set at more than one image at the same time in a image box, halfway similar to a gallery but without wasting space. Up to 10 pictures arranged in a row either horizontally or vertically can be used. | |||
<pre style="width:60%"> | |||
{{Multiple image | |||
|align = left/center/right | |||
|direction = vertical/horizontal | |||
|header = header for pictures | |||
|footer = A single footer for all the pics | |||
|width = size for all the pictures, use numbers only | |||
== | | image1 = set a pic | ||
| alt1 = alternate text for pic | |||
| width1 = size for an specific picture, use numbers only | |||
|caption1 = caption for an specific picture | |||
| image2 = | |||
| alt2 = | |||
| width2 = | |||
|caption2 = | |||
| | |||
| width2 | |||
| caption2 | |||
}} | }} | ||
</pre> | |||
|- bgcolor=#f1f7fb | |||
!width=50% |Example 1 | |||
!width= 50%|Result | |||
|- | |||
| | |||
<pre style="width:100%"> | |||
{{Multiple image | |||
|align = center | |||
|direction = horizontal | |||
|footer = The [[tower duo]] | |||
|width = 100 | |||
| image1 = Minecraft-diamond.png | |||
| alt1 = Gem | |||
| | |||
| | |||
| | | image2 = Minecraft-Coal.png | ||
| alt2 = Coal | |||
| alt2 | |||
}} | }} | ||
</pre> | |||
| | |||
{{Template:Multiple image | |||
|align = center | |||
|direction = horizontal | |||
|footer = [[Gem]] and [[Coal]], side by side. | |||
|width = 100 | |||
| image1 = Minecraft-diamond.png | |||
| alt1 = Gem | |||
| image1 | |||
| alt1 | |||
| | | image2 = Minecraft-Coal.png | ||
| | | alt2 = Coal | ||
}} | }} | ||
|- bgcolor=#f1f7fb | |||
!width=50% |Example 2 | |||
!width= 50%|Result | |||
|- | |||
| | |||
<pre style="width:100%"> | |||
{{Template:Multiple image | |||
|align = center | |||
|direction =vertical | |||
|footer = [[Gem]] and [[Coal]], vertical. | |||
|width = 100 | |||
| image1 = Minecraft-diamond.png | |||
| alt1 = Gem | |||
| image1= | |||
| alt1= | |||
| image2 | | image2 = Minecraft-Coal.png | ||
| alt2 = Coal | |||
| | |||
}} | }} | ||
</pre> | </pre> | ||
{{ | | | ||
{{Template:Multiple image | |||
|align = center | |||
|direction =vertical | |||
|footer = [[Gem]] and [[Coal]], vertical. | |||
|width = 100 | |||
| image1 = Minecraft-diamond.png | |||
| alt1 = Gem | |||
| | |||
| | |||
| | | image2 = Minecraft-Coal.png | ||
| | | alt2 = Coal | ||
| | }} | ||
| | |- bgcolor=#f1f7fb | ||
| | !width=50% |Example 3 | ||
| | !width= 50%|Result | ||
| | |- | ||
| | |||
<pre style="width:100%"> | |||
{{Multiple image | |||
|align = right | |||
|direction = horizontal | |||
|footer_align=center | |||
|footer = Based off of the [[Gem/Coal Rating System]] (ev&oe rock isn't on there). | |||
|width = 64 | |||
| | | image1 = Minecraft-Coal.png | ||
| | | width1= 100 | ||
| | | alt1 = Coal | ||
| | |caption1 = [[Coal]]. | ||
| image2 = Rock.png | |||
| width2= 100 | |||
| | | alt2 = Rock | ||
|caption2 = [[GET#29999999_&_30000000_GET|A rock.]] | |||
| | | image3 = BaseDust.png | ||
| | | width3= 100 | ||
| | | alt3 = Dust | ||
| | |caption3 = [[Dust]]. | ||
| | | image4 = Minecraft-diamond.png | ||
| | | width4= 100 | ||
| | | alt4 = Gem | ||
| | |caption4 = [[Gem]]. | ||
}} | }} | ||
</pre> | </pre> | ||
{{ | | | ||
{{Template:Multiple image | |||
|align = right | |||
|direction = horizontal | |||
|footer_align=center | |||
|footer = Based off of the [[Gem/Coal Rating System]] (ev&oe rock isn't on there). | |||
| align | |width = 64 | ||
| direction = | |||
| | |||
| | |||
| width | |||
==== | | image1 = Minecraft-Coal.png | ||
| width1= 100 | |||
| alt1 = Coal | |||
|caption1 = [[Coal]]. | |||
| image2 = Rock.png | |||
| width2= 100 | |||
| alt2 = Rock | |||
|caption2 = [[GET#29999999_&_30000000_GET|A rock.]] | |||
| image3 = BaseDust.png | |||
| | | width3= 100 | ||
| | | alt3 = Dust | ||
|caption3 = [[Dust]]. | |||
| | | image4 = Minecraft-diamond.png | ||
| width4= 100 | |||
| alt4 = Gem | |||
|caption4 = [[Gem]]. | |||
| | |||
| | |||
| | |||
}} | }} | ||
|} | |||
< | <!--[[Category:Other templates|{{PAGENAME}}]]--> | ||
</noinclude> | |||
| | |||
{{ | |||
</ | |||
Revision as of 15:09, 17 May 2024
| Basic Usage | |
|---|---|
|
The multiple image template allows to set at more than one image at the same time in a image box, halfway similar to a gallery but without wasting space. Up to 10 pictures arranged in a row either horizontally or vertically can be used. {{Multiple image
|align = left/center/right
|direction = vertical/horizontal
|header = header for pictures
|footer = A single footer for all the pics
|width = size for all the pictures, use numbers only
| image1 = set a pic
| alt1 = alternate text for pic
| width1 = size for an specific picture, use numbers only
|caption1 = caption for an specific picture
| image2 =
| alt2 =
| width2 =
|caption2 =
}}
| |
| Example 1 | Result |
{{Multiple image
|align = center
|direction = horizontal
|footer = The [[tower duo]]
|width = 100
| image1 = Minecraft-diamond.png
| alt1 = Gem
| image2 = Minecraft-Coal.png
| alt2 = Coal
}}
|
|
| Example 2 | Result |
{{Template:Multiple image
|align = center
|direction =vertical
|footer = [[Gem]] and [[Coal]], vertical.
|width = 100
| image1 = Minecraft-diamond.png
| alt1 = Gem
| image2 = Minecraft-Coal.png
| alt2 = Coal
}}
|
|
| Example 3 | Result |
{{Multiple image
|align = right
|direction = horizontal
|footer_align=center
|footer = Based off of the [[Gem/Coal Rating System]] (ev&oe rock isn't on there).
|width = 64
| image1 = Minecraft-Coal.png
| width1= 100
| alt1 = Coal
|caption1 = [[Coal]].
| image2 = Rock.png
| width2= 100
| alt2 = Rock
|caption2 = [[GET#29999999_&_30000000_GET|A rock.]]
| image3 = BaseDust.png
| width3= 100
| alt3 = Dust
|caption3 = [[Dust]].
| image4 = Minecraft-diamond.png
| width4= 100
| alt4 = Gem
|caption4 = [[Gem]].
}}
|
|





