Template:Multiframe: Difference between revisions
From Mariopedia, a wiki on Mario, Yoshi, Wario, Donkey Kong, Super Smash Bros., and more!
Jump to navigationJump to search
Content added Content deleted
(Created page with "{{#switch:{{{align}}}|left=<div class="thumb tleft">|none=<div class="thumb tnone">|center=<center><div class="thumb tnone">|#default=<div class="thumb tright">}}<div class=th...") |
(updates from https://www.mariowiki.com/Template:Multiframe) |
||
Line 1: | Line 1: | ||
{{#switch:{{{align}}}|left=<div class="thumb tleft">|none=<div class="thumb tnone">|center=<center><div class="thumb tnone">|#default=<div class="thumb tright">}}<div class=thumbinner style=" |
<includeonly>{{#switch:{{{align}}}|left=<div class="multiframe thumb tleft">|none=<div class="multiframe thumb tnone">|center=<center><div class="multiframe thumb tnone">|#default=<div class="multiframe thumb tright">}}<div class="thumbinner" style="width:{{#if:{{{size|}}}|{{#expr:{{{size}}}+2}}px|fit-content;width:-moz-fit-content}}"><div class="thumbimage" {{#switch:{{{align}}}|none|center=style="overflow:auto"}} style="text-align:center"><div style="background-color:{{{bg|#fff}}}"><div>{{{1|}}}</div></div></div><div class="thumbcaption">{{{2|}}}</div></div></div>{{#ifeq:{{{align}}}|center|</center>}}</includeonly><noinclude> |
||
{{multiframe|[[File:Example.png|30px]][[File:Star.png|50px]]<br>[[File:MarioNSMBWii.png|70px]]|This is an example of the caption. It will appear below the images.|size=80}} |
|||
<pre style=font-size:10pt>{{multiframe |
|||
If you want to use more than one image in one box (or the image from foreign site), you can use this template: |
|||
<pre> |
|||
{{multiframe |
|||
| [[File:Example.png|30px]] <!-- You can put any image with any resolution --> |
| [[File:Example.png|30px]] <!-- You can put any image with any resolution --> |
||
[[File:Star. |
[[File:Star.png|50px]] <br> <!-- Put the below image under the above two --> |
||
⚫ | |||
<br> <!-- Put the below image under the above two --> |
|||
⚫ | |||
⚫ | |||
| size=80 <!-- Put width size (in pixels), the top two equal 80 and the bottom 70, put the greater one --> |
|||
⚫ | |||
| |
| align=left <!-- Box's alignment (left/right/center) with right being the default --> |
||
| bg=grey <!-- Image background color. White is the default --> |
|||
| align= right <!-- Box's appearance (left/right/center) --> |
|||
}} |
}} |
||
</pre> |
|||
If you want to use images in separate frames, you can use {{tem|multiple image}} instead. |
If you want to use images in separate frames, you can use {{tem|multiple image}} instead. |
||
[[Category:Media |
[[Category:Media templates]]</noinclude> |
Latest revision as of 00:27, April 26, 2022
If you want to use more than one image in one box (or the image from foreign site), you can use this template:
{{multiframe | [[File:Example.png|30px]] <!-- You can put any image with any resolution --> [[File:Star.png|50px]] <br> <!-- Put the below image under the above two --> [[File:MarioNSMBWii.png|70px]] | This is an example of the caption. It will appear below the images. <!-- Description --> | size=80 <!-- Put width size (in pixels), the top two equal 80 and the bottom 70, put the greater one --> | align=left <!-- Box's alignment (left/right/center) with right being the default --> | bg=grey <!-- Image background color. White is the default --> }}
If you want to use images in separate frames, you can use {{multiple image}} instead.