Template:Gallery/doc

From UnderMine Wiki
Jump to navigation Jump to search
Documentation[ purge ]

This template was created for simplifying larger scale gallery creation.

A typical galllery for a page used to look like this:

<gallery>
File:Penance.png|link=Penance|1. [[Penance]]
File:Balance.png|link=Balance|2. [[Balance]]
File:Vigor.png|link=Vigor|3. [[Vigor]]
</gallery>

However since all three arguments are just repeated three times with different wiki formatting surrounding it, a template (which became a lua module) was created to simplify.

In order to get the same result using the template simply use the Gallery Template:

{{Gallery|Penance|Balance|Vigor}}

There is additional arguments that can be included to allow for more configurability:

gif=1 - this will make all of the file extentions gifs instead of pngs
nocount=1 - this will make no number display in front of the link under the image
noimagelink=1 - this removes the link from the text under the image as well as from the image itself
dynamic=1 - this allows for specifying the file type as every second arguement

Examples are displayed below:

{{Gallery|gif=1
|Canary
|Djinn
|Firebird
}}
{{Gallery|nocount=1
|Canary
|Djinn
|Firebird
}}
{{Gallery|noimagelink=1
|Canary
|Djinn
|Firebird
}}
{{Gallery|dynamic=1
|Canary|png
|Djinn|gif
|Firebird|gif
}}

This final example is to show that multiple tags can be specified for a single gallery:

{{Gallery|dynamic=1|noimagelink=1|nocount=1
|Firebird|png
|Nikko spar|gif
|Shopkeepera|gif
}}