Help:Gallery: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (didn't realize this was in two places)
Line 53: Line 53:
</pre>
</pre>


== Gallery sections ==
== Galleries in articles ==
Galleries should be divided by image type. The standard section order is provided below.
See [[MarioWiki:Galleries]] for information on formatting article gallery sections and dedicated gallery pages.
 
=== Character pages ===
<pre>
==Artwork==
==Sprites and models==
==Screenshots==
</pre>
 
=== Game pages ===
<pre>
==Logos==
==Artwork==
==Sprites and models==
==Screenshots==
==Box art==
</pre>


{{MarioWiki}}
{{MarioWiki}}
{{Shortcut|SMW:GALLERY}}
{{Shortcut|SMW:GALLERY}}
[[Category:Help]]
[[Category:Help]]

Revision as of 08:40, June 7, 2024

This help page covers how to create an image gallery.

Gallery basics

Galleries are best used in situations where many images need to be displayed. Galleries are like thumbnails boxed together in a table.

By default, galleries have a fluid width. Do not create galleries with a fixed width on any page outside of your userspace.

The basic syntax for a gallery is as follows:

<gallery>
Image name.ext|Caption
</gallery>

Example

Source code

<gallery>
MarioMP8Artwork.png|[[Mario]]
Luigi Artwork - Mario Party 7.png|[[Luigi]]
NSMBDS Bowser Artwork.png|[[Bowser]]
</gallery>

Advanced options

In rare instances, it may be necessary to change the image widths, heights, and even background color in order to display them properly in a gallery.

This can be accomplished using the widths, heights, and class parameters, respectively.

The following background color classes are available: blackbg, graybg

Example

Source code

<gallery class="blackbg" widths="50" heights="50">
SM64 Asset Sprite CS Mario.png|Mario
SM64 Asset Sprite CS Coin.png|Yellow Coin
SM64 Asset Sprite CS Power Star.png|Power Star
</gallery>

Galleries in articles

See MarioWiki:Galleries for information on formatting article gallery sections and dedicated gallery pages.