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/doc: Difference between revisions

Template page
m first version
m format
Line 6: Line 6:
|1stat  =optional-<!-- suggested -->  
|1stat  =optional-<!-- suggested -->  


|2      =n
|2      =f
|2d      =one of three values, <code>0</code> or <code>1</code> or <code>2</code>
|2d      =one of three values to specify the format, <code>0</code> or <code>1</code> or <code>2</code>
|2aliases=name
|2aliases=format
|2def    =1
|2def    =1
|2stat  =optional-  
|2stat  =optional-  


|4       =m
|3       =m
|4d     =gallery mode, can be <code>noline</code> <code>packed</code> <code>packed-hover</code> <code>packed-overlay</code> <code>slideshow</code><br>when parameter <code>name</code> is not specified, <code>noline</code> ist defaulted
|3d     =gallery mode, can be <br><code>n</code> or <tt>nolines</tt>, <br><code>p</code> or <tt>packed</tt>,<br><code>h</code> or <tt>packed-hover</tt>, <br><code>o</code> or <tt>packed-overlay</tt>, <br><code>s</code> or <tt>slideshow</tt><br>when parameter <code>format</code> is not specified, <code>nolines</code> ist defaulted
|4aliases=mode
|3aliases=mode
|4def   =empty<br>noline
|3def   =empty<br>noline
|3stat  =optional-
 
|4      =c
|4d      =gallery caption
|4aliases=caption
|4stat  =optional-  
|4stat  =optional-  


|5      =c
|5      =p
|5d      =gallery caption
|5d      =pictures <tt>per row</tt>
|5aliases=caption
|5aliases=perrow
|5stat  =optional-  
|5stat  =optional-  


|6      =p
|6      =s
|6d      =pictures <tt>per row</tt>
|6d      =possible style attribute
|6aliases=perrow
|6aliases=style
|6stat  =optional-  
|6stat  =optional-  


|7      =s
|7      =a
|7d      =possible style attribute
|7d      =attribute (class)
|7aliases=style
|7aliases=attr class
|7stat  =optional-  
|7stat  =optional-  


Line 58: Line 63:
|relieson=
|relieson=
}}
}}
== The parameter "format" ==
can specify one of three options how naming captions for the single files are displayed:
#<li value="0"> no naming
# naming with the "showfilename" option (<code>f=1</code> is also the default)
# naming with the second value of parameter pairs


== File list formats ==
== File list formats ==
Line 64: Line 75:
or as a list separated by <u>mandatory linefeeds</u>
or as a list separated by <u>mandatory linefeeds</u>
;Fomat 2:  {{tle|T=G|<br>file1.ext<br>file2.ext<br>...<br>file{{sub|n}}.ext<br>|more parameters}}
;Fomat 2:  {{tle|T=G|<br>file1.ext<br>file2.ext<br>...<br>file{{sub|n}}.ext<br>|more parameters}}
For <code>name=0</code> or <code>name=1</code> even a mixture of both formats is possible.
Also a mixture of both formats is possible.
The first fomat allows a maximum of currently 45 files, the second one is unlimited.  


 
For <code>format=2</code> only a variation of the first format ist possible, with ''parameter pairs'' of file + decription
For <code>name=2</code> only a variation of the first format ist possible, with pairs of file + decription
;Fomat 3:  {{tle|T=G|file1.ext|description1|file2.ext|description2|...|file{{sub|n}}.ext|description{{sub|n}}|p8=f|2|more parameters}}
;Fomat 3:  {{tle|T=G|file1.ext|description1|file2.ext|description2|...|file{{sub|n}}.ext|description{{sub|n}}|p8=n|2|more parameters}}
This format needs always parameter pairs, but the second parameter may be without value (just a pipe or a new line).<br>
When the description is empty, the filename is displayed.
When the description is empty, the name of the file is displayed instead.
 
== The parameter "name" ==
can specify one of three options how naming captions for the single files are displayed:
*0 no naming
*1 naming with the "showfilename" option (<code>n=1</code> is also the default)
*2 naming with the second value of parameter pairs


== Examples ==
== Examples ==
 
xxx
{{G|Example.svg|w=64|a="float-left"|f=|m=n}}  <nowiki>{{G|Example.svg|w=64|s=float-left}}</nowiki>




Cookies help us deliver our services. By using our services, you agree to our use of cookies.