More actions
m (only show cameos tab is see_cameos = y) |
m (add header to default gallery) |
||
Line 19: | Line 19: | ||
}} | }} | ||
}} | }} | ||
| | |{{#var:header}} | ||
{{Gallery Section (Cargo)/Q1|character={{{character|}}}|location={{{location|}}}|weapon={{{weapon|}}}|artist={{{artist|}}}|section={{{section|}}}|source={{{source|}}}}} | |||
{{Gallery Section (Cargo)/3|displayed={{{load_limit|4}}}|count_all={{{count_all|0}}}|load_limit=50|character={{#var:CHARACTER}}|location={{{location|}}}|weapon={{{weapon|}}}|artist={{{artist|}}}|section={{{section|}}}|source={{{source|}}}|sort={{#var:sort}}|widths={{{widths|}}} | {{Gallery Section (Cargo)/3|displayed={{{load_limit|4}}}|count_all={{{count_all|0}}}|load_limit=50|character={{#var:CHARACTER}}|location={{{location|}}}|weapon={{{weapon|}}}|artist={{{artist|}}}|section={{{section|}}}|source={{{source|}}}|sort={{#var:sort}}|widths={{{widths|}}} | ||
}} | }} |
Revision as of 03:19, 11 June 2020
This page is part of an automated Gallery system. For more details, please refer to Help:Manual of Style/Character Pages/Gallery. See all pages included in this system |
Creates a section of the Template:Master Gallery based on information stored through Template:Gallery Metadata.
Usage
{{Gallery Section (Cargo) |character= |location= |weapon= |source= |section= |artist= |limit= |widths= |header= |title= |sort= |see_all=True by default (use 'n' to turn off) |see_cameos=False by default (use 'y' to turn on) |count_all= |count_cameos= }}
Reference Template:Gallery Metadata for character, location, weapon, source, section, and artist.
|limits=
Optional, the max number of images to show before truncating and displaying a "show more" link. Defaults to 4.
|widths=
Optional, the width of each image in the gallery. Defaults to 250 (matching the default for Template:Gallery Section)
|header=
Optional, sets the header depth. Accepts the values h2
, h3
, h4
, h5
. Leaving this out will default the title to regular text.
|title=
Optional, defines the text to be used as the header for this gallery section. (e.g. Birthday Art)
|sort=
Optional. If set to date
, the results will be sorted by descending date (with newer images after older ones). By default it sorts alphabetically.
|see_all=
Optional. Controls the display of a "see all" button next to the header, that links to all results. It displays all the time by default. Use |see all=n
to hide the button all the time. If count_all
is given, then this button won't display unless there is overflow.
|see_cameos=
Optional. Change to y
to show a button to Special:ViewData that performs the same query, but with the character as a cameo instead. (e.g. Izayoi showing up in Hakumen's Arcade Mode)
|count_all=
Optional. Put a number here to display it next to the "see all" message (e.g. "see all 13"). If this number is entered, the template will check if the see all
button needs to be shown and hide it if necessary.
|count_cameos=
Optional. Put the number of cameo images here.
See Also
- Template:Master Gallery
- Template:Gallery Section
- Template:Gallery Section (BBRadio)
- Template:Gallery Metadata
- Module:ViewData URL, builds a custom URL to Special:ViewData