Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Gallery Section (BBRadio): Difference between revisions

Template page
m (sort alphabetically by title)
(limit images to 4, remove unused "Episode" parameter, link to a custom ViewData URL as an outro)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#vardefine:intro|{{#switch:{{{4|h3}}}
  |h2=<h2>{{#if:{{{5|}}}|{{{5}}}|BlazBlue Radio {{{2}}}}}</h2>
  |h3=<h3>{{#if:{{{5|}}}|{{{5}}}|BlazBlue Radio {{{2}}}}}</h3>
  |h4=<h4>{{#if:{{{5|}}}|{{{5}}}|BlazBlue Radio {{{2}}}}}</h4>
  |h5=<h5>{{#if:{{{5|}}}|{{{5}}}|BlazBlue Radio {{{2}}}}}</h5>
}}}}<!--
-->{{#cargo_query:
-->{{#cargo_query:
tables=Files, BBRadio_Cuts
tables=Files, BBRadio_Cuts
|fields=Files._pageName, Files.Caption
|fields=Files._pageName, Files.Caption
|join on=Files._pageName=BBRadio_Cuts._pageName  
|join on=Files._pageName=BBRadio_Cuts._pageName  
|where=Files.Characters HOLDS "{{{1|}}}" AND BBRadio_Cuts.Season="{{{2|}}}"{{#if:{{{3|}}}| AND BBRadio_Cuts.Episode="{{{3|}}}"}}
|where=Files.Characters HOLDS "{{{1|}}}" AND BBRadio_Cuts.Season="{{{2|}}}"
|order by=_pageName
|order by=_pageName
|limit={{{limit|50}}}
|limit={{{limit|4}}}
|default=
|default=
|more results text=more results
|more results text=
|intro={{#var:intro}}
|outro=<a href="{{#invoke:ViewData URL|BBRadio|{{{1|}}}|{{{2|}}}|intro={{#var:intro}}}}">see all</a>
|format=gallery
|format=gallery
|intro={{#switch:{{{4|h3}}}
  |h2=<h2>{{#if:{{{5|}}}|{{{5}}}|BlazBlue Radio {{{2}}}}}</h2>
  |h3=<h3>{{#if:{{{5|}}}|{{{5}}}|BlazBlue Radio {{{2}}}}}</h3>
  |h4=<h4>{{#if:{{{5|}}}|{{{5}}}|BlazBlue Radio {{{2}}}}}</h4>
  |h5=<h5>{{#if:{{{5|}}}|{{{5}}}|BlazBlue Radio {{{2}}}}}</h5>
}}
|show bytes=0
|show bytes=0
|show dimensions=0
|show dimensions=0
Line 30: Line 32:
   | character      <-- {{{1}}} the character's name
   | character      <-- {{{1}}} the character's name
   | season          <-- {{{2}}} the BlazBlue Radio season's initial
   | season          <-- {{{2}}} the BlazBlue Radio season's initial
  | episode        <-- {{{3}}} the episode identifier (optional)
   | h2              <-- {{{4}}} Header depth (h2, h3, h4, h5)
   | h2              <-- {{{4}}} Header depth (h2, h3, h4, h5)
   | Main Artwork    <-- {{{5}}} Section header (optional, will default to {{{2}}} )
   | Main Artwork    <-- {{{5}}} Section header (optional, will default to {{{2}}} )


   | widths=250 by default
   | widths=250 by default
   | limit=100 by default
   | limit=4 by default
}}
}}


Line 63: Line 64:
** [[Template:Gallery Section]] - the original Gallery Section template, which uses SMW categories to pull images
** [[Template:Gallery Section]] - the original Gallery Section template, which uses SMW categories to pull images
** [[Template:Gallery Section (Cargo)]] - this template, but for querying only the "Files" table
** [[Template:Gallery Section (Cargo)]] - this template, but for querying only the "Files" table
* [[Template:BBRadio Cuts]] - defines the table named "[[Special:CargoTables/BBRadio_Cuts|BBRadio_Cuts]]" that this template refers to
* [[Template:BBRadio]] - defines the table named "[[Special:CargoTables/BBRadio_Cuts|BBRadio_Cuts]]" that this template refers to
** [[Campaign:BBRadio]] - Easily upload images with the BBRadio Cuts template.
** [[Campaign:BBRadio]] - Easily upload images with the BBRadio Cuts template.


[[Category:Graphic templates]]
[[Category:Graphic templates]]
{{Gallery Section (BBRadio)|Noel Vermillion|D}}
</noinclude>
</noinclude>

Revision as of 01:54, 31 July 2019

Purpose

Create a section of the Template:Master Gallery that includes all images for a season and/or episode of BlazBlue Radio that feature a given character.

Usage

{{Gallery Section (BBRadio)
  | character       <-- {{{1}}} the character's name
  | season          <-- {{{2}}} the BlazBlue Radio season's initial
  | h2              <-- {{{4}}} Header depth (h2, h3, h4, h5)
  | Main Artwork    <-- {{{5}}} Section header (optional, will default to {{{2}}} )

  | widths=250 by default
  | limit=4 by default
}}

i.e. {{Gallery Section (BBRadio) | Valkenhayn R. Hellsing | 2 }}
i.e. {{Gallery Section (BBRadio) | Hazama | 2 | 1 | h3 | Alternate Heading }}
i.e. {{Gallery Section (BBRadio) | Hazama | 1 | 1 | | | widths=250 | limit=30 }}

character Use the character's name used in Category:Media by Character

season Follow the code used in the BBRadio_Cuts table as defined on the BBRadio template page

Transcluded from Template:BBRadio

For season, please put one of the codes from the Codes column for the corresponding season. The BBRadio_Cuts Code column indicates what the season will be represented by in the BBRadio_Cuts table.

Season Codes BBRadio_Cuts Code
ぶるらじ
BlazBlue Radio
1 (or blank) 1
続ぶるらじ
BlazBlue Radio Continued
2
Zoku
Continued
2
ぶるらじW
BlazBlue Radio Wide
3
W
W
ぶるらじH
BlazBlue Radio Hyper
4
H
H
ぶるらじA
BlazBlue Radio Ace
5
A
A
ぶるらじQ
BlazBlue Radio Quick
6
Q
Q
ぶるらじD
BlazBlue Radio Dynamic
7
D
D
ぶるらじNEO
BlazBlue Radio NEO
8
NEO
NEO
Season Codes BBRadio_Cuts Code
ぶるらじR
BlazBlue Radio Repeat
R R
ぶるらじR2
BlazBlue Radio Repeat Two
R2 R2
ぶるらじ風
BlazBlue Radio Kaze
K
Kaze
K

episode Optional. If omitted, the gallery will include all images for the season that include the specified character. (i.e. BlazBlue Radio A)

header depth Optional. Defaults to h3

section header Optional. An alternative title to use as the section header. It defaults to "BlazBlue Radio" plus the specified season's abbreviation.

|widths= Optional. Specifies the width of each image in the gallery. Defaults to 250 (matching the default for Template:Gallery Section)

|limit= Optional. The maximum number of images to display in the gallery before showing a "further results" link. Defaults to 50.

See Also

BlazBlue Radio D

<a href="https://blazblue.wiki/index.php?title=Special:ViewData&tables=Files%2CBBRadio_Cuts&fields=Files._pageName%2C+Files.Caption&where=Files.Characters+HOLDS+%22Noel+Vermillion%22+AND+BBRadio_Cuts.Season=%22D%22&join_on=Files._pageName=BBRadio_Cuts._pageName&order_by=_pageName&format=gallery&offset=0&limit=100&default=&intro=%3Ch3%3EBlazBlue+Radio+D%3C%2Fh3%3E&show+bytes=0&show+dimensions=0&show+filename=0&caption+field=Caption&image+width=250">see all</a>