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
self-revert; will experiment in sandbox if I return
mNo edit summary
 
(5 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{#ifeq:{{{8|}}}|c|<center>}}{{#if:{{{1|}}}|{{#if:{{{9|}}}|<{{{9}}}>}}
{{#ifeq:{{{8|}}}|c|<div class="center">}}<!--
{{#if:{{{7|}}}|<span style="{{{7}}}">}}{{#ifeq:{{{10|}}}|1
-->{{#if:{{{1|}}}
|{{#tag:gallery|{{{1|}}}|{{#if:{{{8|}}}|{{#ifeq:{{{8}}}|c||<class="{{{8|}}}">}}}}
| {{#if:{{{9|}}}|<{{{9|}}}>}}<!--
|mode={{{2|}}}|caption={{{3|}}}|perrow={{{4|}}}|widths={{{5|}}}|heights={{{6|}}}|showfilename=1}}
  -->{{#if:{{{7|}}}|<span style="{{{7}}}">}}<!--
|{{#tag:gallery|{{{1|}}}|{{#if:{{{8|}}}|{{#ifeq:{{{8|}}}|c||<class="{{{8|}}}">}}}}
  -->{{#ifeq:{{{10|}}}|1
|mode={{{2|}}}|caption={{{3|}}}|perrow={{{4|}}}|widths={{{5|}}}|heights={{{6|}}}}}}}
  | {{#tag:gallery|{{{1|}}}|class={{#if: {{{8|}}} | {{#ifeq:{{{8|}}}|c || {{{8|}}} }} }}|mode={{{2|}}}|caption={{{3|}}}|perrow={{{4|}}}|widths={{{5|}}}|heights={{{6|}}}|showfilename=1}}
{{#if:{{{7|}}}|</span>}}{{#if:{{{9|}}}|</{{{9}}}>}}}}{{#ifeq:{{{8|}}}|c|</center>}}<noinclude>
  | {{#tag:gallery|{{{1|}}}|class={{#if: {{{8|}}} | {{#ifeq:{{{8|}}}|c || {{{8|}}} }} }}|mode={{{2|}}}|caption={{{3|}}}|perrow={{{4|}}}|widths={{{5|}}}|heights={{{6|}}}}}
  }}<!--
  -->{{#if:{{{7|}}}|</span>}}<!--
  -->{{#if:{{{9|}}}|</{{{9|}}}>}}
}}<!--
-->{{#ifeq:{{{8|}}}|c|</div>}}<noinclude>
Subtemplate of {{T|G|-|case=l}}, transcluded by the {{M|Galeria|module}}.
Subtemplate of {{T|G|-|case=l}}, transcluded by the {{M|Galeria|module}}.
:Because the <tt>gallery tag</tt> does not support the suppression of the <code>showfilename</code> option, <br>
; Parameters:
:two transclusions of the gallery tag are necessary - one with, and the other one without <tt>showfilename</tt>.
# filenames (+ captions) &nbsp; <small>as a (linefeed/pipe separated) string</small>  
<!-- {{Heavily used template/sandbox|Template talk:G}} -->
The parameters for G/layout are:
# filenames (+ captions) &nbsp; <small>as a (linefeed/pipe separated) string</small>  
# mode
# mode
# caption
# caption
Line 21: Line 23:
# text
# text
# showfilename option
# showfilename option
; Implementation note
: ''Because the <code>gallery tag</code> does not support the suppression of the <code>showfilename</code> option, two transclusions of the gallery tag are necessary - one with, and the other one without <code>showfilename</code>.''
<!-- {{Heavily used template|Template talk:G}} -->


[[Category:Miscellaneous subtemplates]]
[[Category:Subtemplates]]
</noinclude>
</noinclude>

Latest revision as of 09:32, 20 February 2024

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

Parameters
  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
Implementation note
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.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.