Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Search
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Module:Galeria/doc
(section)
Module
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== How it works === This module gets all parameters from the parent template of {{T0|G}}, creates the attributes and values, and passes them to the ''gallery'' tag. The mainly invoker is {{T|G|+|case=l}}.<br>The template G itself does nothing than to invoke this module, it does not specify any own parameters. The module analyzes these parameters. In special, the unnamed parameter(s) can contain an '''unlimited number''' of items.<br> First of all, the contents of all unnamed parameters are concatenated to one string:<br> # concatenates all pipe-separated items and separates them by an ACK # changes also the newline separators to ACK separators. Then when the parameter for 'format' is '''not''' specified, but : a second parameter exists (after a pipe), ''and'' :: the first parameter is preceded by a newline, ''and'' ::: the second parameter does '''not''' specify a file name, :then the format parameter is defaulted to the value "2". Using the ACK instead of the slash "/" tolerates items containing slashes, as URL web addresses.<br> For the format 2, pairs of items are built, with possible defaulting of the description item.<br><br> Finally the total amount of items is passed to the {{T|G/layout|-}}, together with the other parameters. <br> Because the {{tag|gallery}} tag does not support the suppression of the <code>showfilename</code> option, <br> ''two'' transclusions of the gallery tag are necessary - one with, and the other one without <code>showfilename</code>.
Summary:
Please note that all contributions to Red Letter Media Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
RLMWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Toggle limited content width