Template:BBRadio Gallery: Difference between revisions

Template page
m (categorize as graphic template)
(load images inline)
 
Line 1: Line 1:
<includeonly><div style="text-align:center;">
<includeonly><div style="text-align:center;">
{{#cargo_query:
<b>Insert images from BlazBlue Radio{{#ifeq:{{{1|}}}|1|| &nbsp;{{{1|}}} }}{{#if:{{{2|}}}|, Episode {{{2|}}} }}</b><Br/>
tables=BBRadio_Cuts
{{BBRadio Gallery/Q1
|fields=File,Caption
  |season={{{1|}}}
|where=Season='{{{1|1}}}' AND Episode='{{{2|1}}}'
  |episode={{{2|}}}
  |limit={{{limit|3}}}
  |more results text=...See more insert images from this episode
  |default=No insert images to show for this episode.
  |default=No insert images to show for this episode.
  |intro=<b>Insert images from BlazBlue Radio{{#ifeq:{{{1|}}}|1|| &nbsp;{{{1|}}} }}{{#if:{{{2|}}}|, Episode {{{2|}}} }}</b>
  |widths={{{widths|250}}}
|format=gallery
|caption field=Caption
|show filename=0
|show bytes=0
|image width={{{widths|250}}}
}}
}}
{{BBRadio Gallery/1|displayed={{{limit|3}}}|count_all=999|load_limit=50|season={{{1|}}}|episode={{{2|}}}|sort={{#var:sort}}||widths={{{widths|250}}}}}
</div></includeonly><!--
</div></includeonly><!--
--><noinclude>
--><noinclude>
Line 21: Line 15:


==Example==
==Example==
{{BBRadio Gallery|1|1}}
{{BBRadio Gallery|R|1}}


==Usage==
==Usage==

Latest revision as of 01:33, 23 June 2020

Creates a gallery with BlazBlue Radio insert images based on their season and episode in the BBRadio Cuts Cargo table. (Images uploaded to the wiki via Campaign:BBRadio will be included in the BBRadio Cuts table).

The intro text is displayed on the "further queries" results page as well, and gives valuable information about the query.

Example

Insert images from BlazBlue Radio R, Episode 1

Load 50 more...

BBRadio_Gallery/Q1 3 999 50 R 1 250

Usage

  • see also Template:BBRadio for an explanation of season/episode abbreviations and numbering
{{BBRadio Gallery
| Season 
| Episode
| limit = the maximum number of images to show before a "...See more insert images from this episode" link to the rest of the results
| widths = default width of all images
}}

{{BBRadio Gallery|R}}
{{BBRadio Gallery|R|1}}
  • Season is 1 by default
  • Episode is 1 by default. If no episode is specified, episode will be omitted completely.
  • Limit is 3 by default.
  • Image width is 250 (px) by default, matching that of Template:Gallery Section