Template:Gallery1/Documentation: Difference between revisions
Jump to navigation
Jump to search
Mistiryshak (talk | contribs) (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>...") |
Mistiryshak (talk | contribs) 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| | 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| | 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
wparameter is used to set the maximum width. By default, it is 250. - The
hparameter 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: