Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:G/layout: Difference between revisions

Template page
m corr
m format
Line 1: Line 1:
{{#ifeq:{{{8|}}}|c|<center>}}{{#switch:{{{1|}}}|+|=|#default={{#if:{{{9|}}}|<{{{9}}}>}}
{{#ifeq:{{{8|}}}|c|<center>}}{{{#if:{{{1|}}}|{{#if:{{{9|}}}|<{{{9}}}>}}
{{#if:{{{7|}}}|<span style="{{{7}}}">}}{{#ifeq:{{{10|}}}|1
{{#if:{{{7|}}}|<span style="{{{7}}}">}}{{#ifeq:{{{10|}}}|1
|{{#tag:gallery|{{{1|}}}|{{#if:{{{8|}}}|{{#ifeq:{{{8}}}|c||<class="{{{8|}}}">}}}}
|{{#tag:gallery|{{{1|}}}|{{#if:{{{8|}}}|{{#ifeq:{{{8}}}|c||<class="{{{8|}}}">}}}}
Line 11: Line 11:
<!-- {{Heavily used template/sandbox|Template talk:G}} -->
<!-- {{Heavily used template/sandbox|Template talk:G}} -->
The parameters for G/layout are:
The parameters for G/layout are:
# filenames (+ captions)
# filenames (+ captions) &nbsp; <small>as a  (linefeed/pipe separated) string</small>
# mode
# mode
# caption
# caption

Revision as of 06:28, 21 July 2020

{ Subtemplate of template:{{G}}, transcluded by the module.

Because the gallery tag does not support the suppression of the showfilename option,
two transclusions of the gallery tag are necessary - one with, and the other one without showfilename.

The parameters for G/layout are:

  1. filenames (+ captions)   as a (linefeed/pipe separated) string
  2. mode
  3. caption
  4. perrow
  5. width
  6. height
  7. style
  8. class
  9. text
  10. showfilename option
Cookies help us deliver our services. By using our services, you agree to our use of cookies.