|
The navbox below links to Templates for easy navigation and for organization of all current templates.
Please note that this box below has the <noinclude> tag. This means that when you insert the template you are using above ^ to an article, this box below will NOT be inserted.
Template documentation
|
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Description
This template is designed to add images in a gallery format. This is often used in articles where multiple images are added and where that particular article doesn't have its own image gallery article. Please note that editors should use the <gallery> tag when using this template and images added to a gallery does not need to add the word "File".
Example:
[[File:Shiroko Icon.png]] X
Shiroko Icon.png ✓ Note: This is only applicable when you are using the <gallery> tag.
The <gallery> tag also contains many types and options for editor to customise. editors do not need to add these options if they don't need it.
Check out this article on Fandom's Community Central for more information on galleries and its options.
- bordercolor - Change the default color of the border to a desirable color.
- Options - #000000 or black
- bordersize - Determine the size of the border
- Options - small / medium / large
- captiontextcolor = Change the default color of the text(grey) to a desirable color.
- Options - #000000 or black
- captionalign - Determine the alignment of the text.
- Options - left / center / right
- orientation - Change the orientation of the image.
- Options - landscape / portrait / square
- hideaddbutton - Hide the "Add button" that automatically appears when the <gallery> tag is used.
- Options - "true"
Example: Adding all of these options would become,
<gallery bordercolor=#02D3FB bordersize=medium captionalign=center orientation=landscape hideaddbutton="true">
Syntax
{{Gallery Box
|<gallery>
</gallery>
}}
Sample
Without Options(Default)
{{Gallery Box
|<gallery>
Shiroko Icon.png|You can also add text underneath the image.
Serika Icon.png
Hoshino Icon.png
Nonomi Icon.png
Ayame Icon.png
</gallery>
}}
With Options
{{Gallery Box
|<gallery bordercolor=#02D3FB bordersize=medium captionalign=center orientation=landscape hideaddbutton="true">
Shiroko Icon.png|You can also add text underneath the image.
Serika Icon.png
Hoshino Icon.png
Nonomi Icon.png
Ayame Icon.png
</gallery>
}}
Results in...
Without Options(Default)
With Options
The options for the second box includes:
<gallery bordercolor=#02D3FB bordersize=medium captionalign=center orientation=landscape hideaddbutton="true">