Template:Multiframe: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Protected "Template:Multiframe": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
No edit summary
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="<noinclude>width:82px</noinclude>{{#if:{{{size|}}}|width:{{#expr:{{{size}}}+2}}px}}"><div class="thumbimage plainlinks" clear=all {{#switch:{{{align}}}|none|center=style=overflow:auto}} style="background-color:{{{background-color|white}}}">{{{1|<noinclude>[[File:Example.png|30px]][[File:Star.png|50px]]<br>[[File:NSMBW Mario Solo Artwork.png|70px]]</noinclude>}}}</div><div class=thumbcaption clear=all>{{{2|<noinclude>This is an example of the images' description. It will appear in a box behind them.</noinclude>}}}</div></div></div>{{#ifeq:{{{align}}}|center|</center>}}<noinclude>If you want to use more than one image in one box (or the image from foreign site), you can use this template.
<includeonly>{{#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="width:{{#if:{{{size|}}}|{{#expr:{{{size}}}+2}}px|fit-content;width:-moz-fit-content}}"><div class="thumbimage plainlinks" {{#switch:{{{align}}}|none|center=style=overflow:auto}} style="background-color:{{{background-color|#fff}}}">{{{1|}}}</div><div class="thumbcaption">{{{2|}}}</div></div></div>{{#ifeq:{{{align}}}|center|</center>}}</includeonly><noinclude>
<pre style=font-size:10pt>{{multiframe
{{multiframe|[[File:Example.png|30px]][[File:Star.png|50px]]<br>[[File:NSMBW Mario Solo Artwork.png|70px]]|This is an example of the caption. It will appear below the images.|size=80}}
 
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.png|50px]]
   [[File:Star.png|50px]] <br> <!-- Put the below image under the above two -->
  <br> <!-- Put the below image under the above two -->
   [[File:NSMBW Mario Solo Artwork.png|70px]]
   [[File:NSMBW Mario Solo Artwork.png|70px]]
  | This is an example of the images' description. It will appear in a box behind them. <!-- Description -->
  | This is an example of the caption. It will appear below the images. <!-- Description -->
  | size= 80 <!-- Put width size (in pixels), the top two are equals 80 and the bottom 70, put the greater one -->
  | size=80 <!-- Put width size (in pixels), the top two equal 80 and the bottom 70, put the greater one -->
  | align= right <!-- Box's appearance (left/right/center) -->
  | align=right <!-- Box's appearance (left/right/center) with right being the default -->
}}</pre>
}}
</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 templates|Multiframe]]</noinclude>
 
[[Category:Media templates]]</noinclude>

Revision as of 18:55, September 2, 2021

This is an example of the caption. It will appear below the images.

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:NSMBW Mario Solo Artwork.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=right <!-- Box's appearance (left/right/center) with right being the default -->
}}

If you want to use images in separate frames, you can use {{multiple image}} instead.