Help:Gallery: Difference between revisions

m
no edit summary
m (Text replacement - "\[\[Category:([^\]|]+)\|{{PAGENAME}}\]\]" to "Category:$1")
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Shortcut|MW:GALLERY}}
This help page covers how to create an image '''gallery'''.


This help page covers the instructions of creating a '''photo''', or '''picture 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.


==How to create a picture gallery==
By default, galleries have a fluid width. Do not create galleries with a fixed width on any page outside of your [[MarioWiki:Userspace|userspace]].
Galleries are best used in situations where a lot of pictures 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 your userspace.
The basic syntax for a gallery is as follows:


Here is an example of a gallery:
<pre>
<gallery>
Image name.ext|Caption
</gallery>
</pre>
 
=== Example ===
<gallery>
<gallery>
MarioMP8Artwork.png|[[Mario]]
MarioMP8Artwork.png|[[Mario]]
Line 15: Line 21:
</gallery>
</gallery>


<pre><gallery>
==== Source code ====
<pre>
<gallery>
MarioMP8Artwork.png|[[Mario]]
MarioMP8Artwork.png|[[Mario]]
Luigi Artwork - Mario Party 7.png|[[Luigi]]
Luigi Artwork - Mario Party 7.png|[[Luigi]]
NSMBDS Bowser Artwork.png|[[Bowser]]
NSMBDS Bowser Artwork.png|[[Bowser]]
</gallery></pre>
</gallery>
</pre>
 
== 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.


The basic template for a gallery is this:
This can be accomplished using the <code>widths</code>, <code>heights</code>, and <code>class</code> parameters, respectively.


<pre><gallery>
The following background color classes are available: <code>blackbg</code>, <code>graybg</code>
Image name.ext|Caption
 
</gallery></pre>
=== Example ===
<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>
 
==== Source code ====
<pre>
<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>
</pre>


Galleries should be divided by image type. The standard section order is as follow:
== Gallery sections ==
Galleries should be divided by image type. The standard section order is provided below.


Character pages:
=== Character pages ===
<pre>==Artwork==
<pre>
==Artwork==
==Sprites/models==
==Sprites/models==
==Screenshots==
==Screenshots==
</pre>
</pre>


Game pages:
=== Game pages ===
<pre>
<pre>
==Logos==
==Logos==
Line 44: Line 72:
</pre>
</pre>


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