Template:Gallery1/Documentation: Difference between revisions

From Japari Library, the Kemono Friends Wiki
Jump to navigation Jump to search
(Created page with "Used to add galleries to forms. Usage: <pre>{{Gallery1|ServalOriginal.png CoyoteOriginal.png{{!}}This one has a caption, since it has one of these pipe escapes: <code><nowiki>...")
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Used to add galleries to forms.
Used to add galleries to forms.
Usage:
 
<pre>{{Gallery1|ServalOriginal.png
* The first parameter is unnamed and is used to list the images just as one would in a gallery. Note that to add a caption, a pipe escape <code><nowiki>{{!}}</nowiki></code> is necessary. '''Using a regular pipe will break the template.'''
* The <code>w</code> parameter is used to set the maximum width. By default, it is 250.
* The <code>h</code> parameter is used to set the maximum height. By default, it is 250.
 
'''Usage Example:'''
<pre>{{Gallery1|
ServalOriginal.png
CoyoteOriginal.png{{!}}This one has a caption, since it has one of these pipe escapes: <code><nowiki>{{!}}</nowiki></code>
CoyoteOriginal.png{{!}}This one has a caption, since it has one of these pipe escapes: <code><nowiki>{{!}}</nowiki></code>
American AlligatorOriginal.png|widths={{{w|250}}}px|heights={{{h|250}}}px}}</pre>
American AlligatorOriginal.png
Output:
|w=450}}</pre>
{{Gallery1|ServalOriginal.png
'''Output:'''
{{Gallery1|
ServalOriginal.png
CoyoteOriginal.png{{!}}This one has a caption, since it has one of these pipe escapes: <code><nowiki>{{!}}</nowiki></code>
CoyoteOriginal.png{{!}}This one has a caption, since it has one of these pipe escapes: <code><nowiki>{{!}}</nowiki></code>
American AlligatorOriginal.png|widths={{{w|250}}}px|heights={{{h|250}}}px}}
American AlligatorOriginal.png
|w=450}}
<noinclude>[[Category:Template Documentation]]</noinclude>
<noinclude>[[Category:Template Documentation]]</noinclude>

Latest revision as of 18:06, 3 May 2024

Used to add galleries to forms.

  • The first parameter is unnamed and is used to list the images just as one would in a gallery. Note that to add a caption, a pipe escape {{!}} is necessary. Using a regular pipe will break the template.
  • The w parameter is used to set the maximum width. By default, it is 250.
  • The h parameter is used to set the maximum height. By default, it is 250.

Usage Example:

{{Gallery1|
ServalOriginal.png
CoyoteOriginal.png{{!}}This one has a caption, since it has one of these pipe escapes: <code>{{!}}</code>
American AlligatorOriginal.png
|w=450}}

Output: