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

Template:Master Gallery: Difference between revisions

Template page
m (limit BBRadio Gallery Sections to 5 images each)
(added TOC to the top of each gallery)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
<!--
The wikitext here is organized in three parts:
Part 1) declares variables for all the categories the gallery uses
Part 2) calculates how many images will be in each section of the gallery (which is based on which categories an image is sorted into). The answers are saved in variables to be used in part 3.
Part 3) shows headers on the page only if one or more of the Gallery Sections in it have images in them
Adding a new section means editing at least 2) and 3), and if you're using a new category, it will need to be added to 1) as well (and to the documentation)
There's also two kinds of ways to display subsections on the page - Template:Gallery Section (uses categories to decide which images to include) and Template:Gallery Section (Cargo) (uses information from images with the Gallery Information template to decide which images to include).
-->
</noinclude><includeonly>
</noinclude><includeonly>
<gallery><!-- force gallery module to be included --> </gallery><div class="noexcerpt">
<gallery><!-- force gallery module to be included --> </gallery><div class="noexcerpt">
<!--
{{Imbox Gallery Notice 2}}
--------------------------
__TOC__
VARIABLES FOR CHARACTERS
{{#invoke:Character Gallery|main|character={{{1|}}}|data={{{2|}}}}}
-------------------------
</includeonly><noinclude>
(for #cargo_query and #cargo_compound_query on table Files,
specified by Template:Gallery Information)
-->{{#vardefine:GALLERY_CHAR|{{#replace:{{{1|}}}|'|}}}}
<!--
-------------------------------
VARIABLES for TAGS/CATEGORIES
-------------------------------
-->{{#vardefine:  MAIN_CAT| Main Artwork
}}{{#vardefine:  CREST_CAT| Crests
}}{{#vardefine:  CHIBI_CAT| Chibi
}}{{#vardefine: BATTLE_CAT| Battle
}}{{#vardefine: LOBAVI_CAT| Lobby Avatars
}}{{#vardefine: PORTRT_CAT| Portraits
}}{{#vardefine: ARCADE_CAT| Arcade Mode
}}{{#vardefine:  STORY_CAT| Story
}}{{#vardefine:  SHORT_CAT| Short Story Illustrations
}}{{#vardefine:    CT_CAT| BlazBlue: Calamity Trigger
}}{{#vardefine:    CS_CAT| BlazBlue: Continuum Shift
}}{{#vardefine:    CP_CAT| BlazBlue: Chrono Phantasma
}}{{#vardefine:    CF_CAT| BlazBlue: Central Fiction
}}{{#vardefine:    TAG_CAT| BlazBlue: Cross Tag Battle
}}{{#vardefine: CLONEP_CAT| BlazBlue: Clone Phantasma
}}{{#vardefine:    DW_CAT| BlazBlue Alternative: Dark War
}}{{#vardefine:  XBCE_CAT| XBlaze Code: Embryo
}}{{#vardefine:  XBLM_CAT| XBlaze Lost: Memories
}}<!-- NOVELS
-->{{#vardefine:PHASE0_CAT| BlazBlue: Phase 0
}}{{#vardefine: PHASE1_CAT| BlazBlue: Phase Shift 1
}}{{#vardefine: PHASE2_CAT| BlazBlue: Phase Shift 2
}}{{#vardefine: PHASE3_CAT| BlazBlue: Phase Shift 3
}}{{#vardefine: PHASE4_CAT| BlazBlue: Phase Shift 4
}}{{#vardefine: NOVCT1_CAT| BlazBlue: Calamity Trigger - Part 1
}}{{#vardefine: NOVCT2_CAT| BlazBlue: Calamity Trigger - Part 2
}}{{#vardefine: NOVCS1_CAT| BlazBlue: Continuum Shift - Part 1
}}{{#vardefine: NOVCS2_CAT| BlazBlue: Continuum Shift - Part 2
}}{{#vardefine:  SSIBH_CAT| BlazBlue: Spiral Shift - Hero of the Frozen Blade
}}{{#vardefine:    BE1_CAT| BlazBlue: Bloodedge Experience - Part 1
}}{{#vardefine:    BE2_CAT| BlazBlue: Bloodedge Experience - Part 2
}}<!-- MANGA
-->{{#vardefine: MANBB_CAT| BlazBlue (Manga)
}}{{#vardefine:    CC_CAT| BlazBlue: Chimelical Complex
}}{{#vardefine:    RH_CAT| BlazBlue: Remix Heart
}}{{#vardefine:    VH_CAT| BlazBlue: Variable Heart
}}<!-- ANIME
-->{{#vardefine:  ANIM_CAT| Animations
}}{{#if: {{{video|}}}
| {{#vardefine: EMBEDVIDS| 1 }}
| {{#vardefine: EMBEDVIDS| 0 }}
}}{{#vardefine:    AM_CAT| BlazBlue: Alter Memory
}}<!--RADIO SHOWS
-->{{#vardefine:TMMLCHB_CAT| Chibi Portraits
}}{{#vardefine: BBRADIO_CAT| BlazBlue Radio Insert Images
}}{{#vardefine: RADIOXB_CAT| Radio: XBlaze
}}<!--ARTWORK
-->{{#vardefine: PROMO_CAT| Promotional Artwork
}}{{#vardefine:  BDAY_CAT| Birthday Art
}}{{#vardefine: EXTRAS_CAT| Staff Extras
}}{{#vardefine: SPCIAL_CAT| Special Artwork
}}{{#vardefine:PREORDR_CAT| Pre-order Bonuses
}}{{#vardefine: WALPPR_CAT| Wallpapers
}}{{#vardefine: STICKR_CAT| Stickers
}}{{#vardefine:  ICON_CAT| Icons
}}<!--PRODUCTION ART
-->{{#vardefine:MODSHT_CAT| Model Sheets
}}{{#vardefine: EARLYD_CAT| Early Designs
}}{{#vardefine: STORYB_CAT| Storyboards
}}<!--COLLABORATIONS
-->{{#vardefine: LOVRE2_CAT| Lord of Vermilion Re:2
}}{{#vardefine: LOVIII_CAT| Lord of Vermilion III
}}{{#vardefine: MABIDL_CAT| Mabinogi Duel
}}{{#vardefine: UNLMVS_CAT| Unlimited VS
}}<!--
-------------------------------
VARIABLES FOR IMAGE COUNTS
-------------------------------
-->{{#vardefine: {{#var:MAIN_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MAIN_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CREST_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CREST_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CHIBI_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CHIBI_CAT}}]]|format=count}}
}}{{#vardefine: MAIN_VISUALS
  |{{#expr:
    {{#var:{{#var:MAIN_CAT}}}} +
    {{#var:{{#var:CREST_CAT}}}}+
    {{#var:{{#var:CHIBI_CAT}}}}
  }}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:BATTLE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:BATTLE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:LOBAVI_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:LOBAVI_CAT}}]]|format=count}}
}}{{#vardefine: GAMEPLAY_CF
  |{{#expr:
    {{#var:{{#var:CF_CAT}} {{#var:BATTLE_CAT}}}} +
    {{#var:{{#var:CF_CAT}} {{#var:LOBAVI_CAT}}}}
  }}
}}{{#vardefine: {{#var:TAG_CAT}} {{#var:BATTLE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:TAG_CAT}}]][[Category:{{#var:BATTLE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:TAG_CAT}} {{#var:LOBAVI_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:TAG_CAT}}]][[Category:{{#var:LOBAVI_CAT}}]]|format=count}}
}}{{#vardefine: GAMEPLAY_TAG
  |{{#expr:
    {{#var:{{#var:TAG_CAT}} {{#var:BATTLE_CAT}}}} +
    {{#var:{{#var:TAG_CAT}} {{#var:LOBAVI_CAT}}}}
  }}
}}{{#vardefine: GAMEPLAY
  |{{#expr:
    {{#var:GAMEPLAY_CF}} +
    {{#var:GAMEPLAY_TAG}}
  }}
}}{{#vardefine: VIDEOS
  |{{#expr:
    {{#var: EMBEDVIDS}}
  }}
}}{{#vardefine: {{#var:CT_CAT}} {{#var:ARCADE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CT_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CS_CAT}} {{#var:ARCADE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CS_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CP_CAT}} {{#var:ARCADE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CP_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:ARCADE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
}}{{#vardefine: ARCADE
  |{{#expr:
    {{#var:{{#var:CT_CAT}} {{#var:ARCADE_CAT}}}} +
    {{#var:{{#var:CS_CAT}} {{#var:ARCADE_CAT}}}} +
    {{#var:{{#var:CP_CAT}} {{#var:ARCADE_CAT}}}} +
    {{#var:{{#var:CF_CAT}} {{#var:ARCADE_CAT}}}}
  }}
}}{{#vardefine: {{#var:PORTRT_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PORTRT_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:SHORT_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:SHORT_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CT_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CT_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CS_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CS_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CP_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CP_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:TAG_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:TAG_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CLONEP_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CLONEP_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:XBCE_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:XBCE_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:XBLM_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:XBLM_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: STORY
  |{{#expr:
    {{#var:{{#var:PORTRT_CAT}}}} +
    {{#var:{{#var:CT_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:CS_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:CP_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:CF_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:TAG_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:CLONEP_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:XBCE_CAT}} {{#var:STORY_CAT}}}}  +
    {{#var:{{#var:XBLM_CAT}} {{#var:STORY_CAT}}}}
  }}
}}{{#vardefine: {{#var:PHASE0_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE0_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PHASE1_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE1_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PHASE2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PHASE3_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE3_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PHASE4_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE4_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:NOVCT1_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:NOVCT1_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:NOVCT2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:NOVCT2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:NOVCS1_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:NOVCS1_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:NOVCS2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:NOVCS2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:SSIBH_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:SSIBH_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:BE1_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BE1_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:BE2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BE2_CAT}}]]|format=count}}
}}{{#vardefine: NOVELS
  |{{#expr:
    {{#var:{{#var:PHASE0_CAT}}}} +
    {{#var:{{#var:PHASE1_CAT}}}} +
    {{#var:{{#var:PHASE2_CAT}}}} +
    {{#var:{{#var:PHASE3_CAT}}}} +
    {{#var:{{#var:PHASE4_CAT}}}} +
    {{#var:{{#var:NOVCT1_CAT}}}} +
    {{#var:{{#var:NOVCT2_CAT}}}} +
    {{#var:{{#var:NOVCS1_CAT}}}} +
    {{#var:{{#var:NOVCS2_CAT}}}} +
    {{#var:{{#var:SSIBH_CAT}}}}  +
    {{#var:{{#var:BE1_CAT}}}}    +
    {{#var:{{#var:BE2_CAT}}}}
  }}
}}{{#vardefine: {{#var:MANBB_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MANBB_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CC_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CC_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:RH_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:RH_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:VH_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:VH_CAT}}]]|format=count}}
}}{{#vardefine: MANGA
  |{{#expr:
    {{#var:{{#var:MANBB_CAT}}}} +
    {{#var:{{#var:CC_CAT}}}}    +
    {{#var:{{#var:RH_CAT}}}}    +
    {{#var:{{#var:VH_CAT}}}}
  }}
}}{{#vardefine: {{#var:AM_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:AM_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CT_CAT}} {{#var:ANIM_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CT_CAT}}]][[Category:{{#var:ANIM_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CS_CAT}} {{#var:ANIM_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CS_CAT}}]][[Category:{{#var:ANIM_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CP_CAT}} {{#var:ANIM_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CP_CAT}}]][[Category:{{#var:ANIM_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:ANIM_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:ANIM_CAT}}]]|format=count}}
}}{{#vardefine: ANIMATION
  |{{#expr:
    {{#var:{{#var:AM_CAT}}}}                  +
    {{#var:{{#var:CT_CAT}} {{#var:ANIM_CAT}}}} +
    {{#var:{{#var:CS_CAT}} {{#var:ANIM_CAT}}}} +
    {{#var:{{#var:CP_CAT}} {{#var:ANIM_CAT}}}} +
    {{#var:{{#var:CF_CAT}} {{#var:ANIM_CAT}}}}
  }}
}}{{#vardefine: {{#var:TMMLCHB_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:TMMLCHB_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:RADIOXB_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:RADIOXB_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:BBRADIO_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BBRADIO_CAT}}]]|format=count}}
}}{{#vardefine: RADIO_SHOWS
  |{{#expr:
    {{#var:{{#var:TMMLCHB_CAT}}}} +
    {{#var:{{#var:RADIOXB_CAT}}}} +
    {{#var:{{#var:BBRADIO_CAT}}}}
  }}
}}{{#vardefine: {{#var:PROMO_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PROMO_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:BDAY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BDAY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:EXTRAS_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:EXTRAS_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:SPCIAL_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:SPCIAL_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PREORDR_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PREORDR_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:WALPPR_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:WALPPR_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:STICKR_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:STICKR_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:ICON_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:ICON_CAT}}]]|format=count}}
}}{{#vardefine: ARTWORK
  |{{#expr:
    {{#var:{{#var:PROMO_CAT}}}}  +
    {{#var:{{#var:BDAY_CAT}}}}  +
    {{#var:{{#var:EXTRAS_CAT}}}} +
    {{#var:{{#var:SPCIAL_CAT}}}} +
    {{#var:{{#var:PREORDR_CAT}}}}+
    {{#var:{{#var:WALPPR_CAT}}}} +
    {{#var:{{#var:STICKR_CAT}}}} +
    {{#var:{{#var:ICON_CAT}}}}
  }}
}}{{#vardefine: {{#var:MODSHT_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MODSHT_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:EARLYD_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:EARLYD_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:STORYB_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:STORYB_CAT}}]]|format=count}}
}}{{#vardefine: PRODUCTION_ART
  |{{#expr:
    {{#var:{{#var:MODSHT_CAT}}}} +
    {{#var:{{#var:EARLYD_CAT}}}} +
    {{#var:{{#var:STORYB_CAT}}}}
  }}
}}{{#vardefine: {{#var:LOVRE2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:LOVRE2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:LOVIII_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:LOVIII_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:MABIDL_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MABIDL_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:UNLMVS_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:UNLMVS_CAT}}]]|format=count}}
}}{{#vardefine: COLLABORATIONS
  |{{#expr:
    {{#var:{{#var:LOVRE2_CAT}}}} +
    {{#var:{{#var:LOVIII_CAT}}}} +
    {{#var:{{#var:MABIDL_CAT}}}} +
    {{#var:{{#var:UNLMVS_CAT}}}}
  }}
}}<!--
-------------------------------
GALLERY LAYOUT
-------------------------------
--><!--
 
MAIN VISUALS
 
-->{{#ifeq: 0 | {{#var:MAIN_VISUALS}}
  | <!-- all subcategories are empty, don't make a section header-->
  | {{ Gallery Section | {{{1}}} | {{#var:MAIN_CAT}}  | | h2 | Main Visuals}}<!--
-->{{ Gallery Section | {{{1}}} | {{#var:CREST_CAT}} | | h3 | Character Crest }}<!--
-->{{ Gallery Section | {{{1}}} | {{#var:CHIBI_CAT}} | | h3 | Chibi }}
}}<!--
 
GAMEPLAY
 
-->{{#ifeq: 0 | {{#var:GAMEPLAY}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Gameplay </h2><!--
-->{{#ifeq: 0 | {{#var:GAMEPLAY_CF}} |
  | <h3>C-Series</h3>
{{#cargo_compound_query:
tables=Files;fields=_pageName,Caption;where=Characters HOLDS "{{#var:GALLERY_CHAR}}" AND Source HOLDS "BlazBlue: Central Fiction" AND Gallery_Sections HOLDS "Battle"
|tables=Files;fields=_pageName,Caption;where=Characters HOLDS "{{#var:GALLERY_CHAR}}" AND Source HOLDS "BlazBlue: Central Fiction" AND Gallery_Sections HOLDS "Lobby Avatars"
|format=gallery
|show bytes=0
|show dimensions=0
|show filename=0
|caption field=Caption
}}}}<!--
-->{{#ifeq: 0 | {{#var:GAMEPLAY_TAG}} |  
  | <h3>BlazBlue: Cross Tag Battle</h3>
{{#cargo_compound_query:
tables=Files;fields=_pageName,Caption;where=Characters HOLDS "{{{1|}}}" AND Source HOLDS "BlazBlue: Cross Tag Battle" AND Gallery_Sections HOLDS "Battle"
|tables=Files;fields=_pageName,Caption;where=Characters HOLDS "{{{1|}}}" AND Source HOLDS "BlazBlue: Cross Tag Battle" AND Gallery_Sections HOLDS "Lobby Avatars"
|format=gallery
|show bytes=0
|show dimensions=0
|show filename=0
|caption field=Caption
}}}}
}}
<!--
 
VIDEOS
 
-->{{#ifeq: 0 | {{#var:VIDEOS}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Video </h2>
    {{#if: {{{video|}}}
    | <h3> Videos </h3> <br> {{{video|}}}
    | <!-- else no videos, skip this subsection -->
  }}
}}<!--
 
ARCADE
 
-->{{#ifeq: 0 | {{#var:ARCADE}}
  | <!-- all four subcategories are empty, don't make a section header-->
  | <h2> Arcade </h2>
    {{ Gallery Section | {{{1}}} | {{#var:CT_CAT}} | {{#var:ARCADE_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CS_CAT}} | {{#var:ARCADE_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CP_CAT}} | {{#var:ARCADE_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CF_CAT}} | {{#var:ARCADE_CAT}} | h3 }}
}}<!--
 
STORY
 
-->{{#ifeq: 0 | {{#var:STORY}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Story </h2>
    {{ Gallery Section | {{{1}}} | {{#var:PORTRT_CAT}} | | h3 | Portraits
  }}{{ Gallery Section | {{{1}}} | {{#var:SHORT_CAT}}  | | h3 | Short Stories
  }}{{ Gallery Section | {{{1}}} | {{#var:CT_CAT}}    | {{#var:STORY_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CS_CAT}}    | {{#var:STORY_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CP_CAT}}    | {{#var:STORY_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CF_CAT}}    | {{#var:STORY_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:TAG_CAT}}    | {{#var:STORY_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CLONEP_CAT}} | {{#var:STORY_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:XBCE_CAT}}  | {{#var:STORY_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:XBLM_CAT}}  | {{#var:STORY_CAT}} | h3 }}
}}<!--
 
NOVELS
 
-->{{#ifeq: 0 | {{#var:NOVELS}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Novels </h2>
    {{ Gallery Section | {{{1}}} | {{#var:PHASE0_CAT}} | | h3 | BlazBlue: Phase 0
  }}{{ Gallery Section | {{{1}}} | {{#var:PHASE1_CAT}} | | h3 | BlazBlue: Phase Shift 1
  }}{{ Gallery Section | {{{1}}} | {{#var:PHASE2_CAT}} | | h3 | BlazBlue: Phase Shift 2
  }}{{ Gallery Section | {{{1}}} | {{#var:PHASE3_CAT}} | | h3 | BlazBlue: Phase Shift 3
  }}{{ Gallery Section | {{{1}}} | {{#var:PHASE4_CAT}} | | h3 | BlazBlue: Phase Shift 4
  }}{{ Gallery Section | {{{1}}} | {{#var:NOVCT1_CAT}} | | h3 | BlazBlue: Calamity Trigger — Part 1
  }}{{ Gallery Section | {{{1}}} | {{#var:NOVCT2_CAT}} | | h3 | BlazBlue: Calamity Trigger — Part 2
  }}{{ Gallery Section | {{{1}}} | {{#var:NOVCS1_CAT}} | | h3 | BlazBlue: Continuum Shift — Part 1
  }}{{ Gallery Section | {{{1}}} | {{#var:NOVCS2_CAT}} | | h3 | BlazBlue: Continuum Shift — Part 2
  }}{{ Gallery Section | {{{1}}} | {{#var:SSIBH_CAT}}  | | h3 | BlazBlue: Spiral Shift – Hero of the Frozen Blade
  }}{{ Gallery Section | {{{1}}} | {{#var:BE1_CAT}}    | | h3 | BlazBlue: Bloodedge Experience - Part 1
  }}{{ Gallery Section | {{{1}}} | {{#var:BE2_CAT}}    | | h3 | BlazBlue: Bloodedge Experience - Part 2 }}
}}<!--
 
MANGA
 
-->{{#ifeq: 0 | {{#var:MANGA}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Manga </h2>
    {{ Gallery Section | {{{1}}} | {{#var:MANBB_CAT}} | | h3 | BlazBlue
  }}{{ Gallery Section | {{{1}}} | {{#var:CC_CAT}}    | | h3 | BlazBlue: Chilemical Complex
  }}{{ Gallery Section | {{{1}}} | {{#var:RH_CAT}}    | | h3 | BlazBlue: Remix Heart
  }}{{ Gallery Section | {{{1}}} | {{#var:VH_CAT}}    | | h3 | BlazBlue: Variable Heart }}
}}<!--
 
ANIMATION
 
-->{{#ifeq: 0 | {{#var:ANIMATION}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Animation </h2>
    {{ Gallery Section | {{{1}}} | {{#var:AM_CAT}} | | h3 | BlazBlue: Alter Memory
  }}{{ Gallery Section | {{{1}}} | {{#var:CT_CAT}} | {{#var:ANIM_CAT}} | h3 | BlazBlue: Calamity Trigger
  }}{{ Gallery Section | {{{1}}} | {{#var:CS_CAT}} | {{#var:ANIM_CAT}} | h3 | BlazBlue: Continuum Shift
  }}{{ Gallery Section | {{{1}}} | {{#var:CP_CAT}} | {{#var:ANIM_CAT}} | h3 | BlazBlue: Chrono Phantasma
  }}{{ Gallery Section | {{{1}}} | {{#var:CF_CAT}} | {{#var:ANIM_CAT}} | h3 | BlazBlue: Central Fiction }}
}}<!--
 
  RADIO SHOWS
 
-->{{#ifeq: 0 | {{#var:RADIO_SHOWS}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Radio Shows </h2>
    {{Gallery Section | {{{1}}} | {{#var:TMMLCHB_CAT}} | | h3 | Chibi Portraits
  }}{{Gallery Section (BBRadio) |{{{1}}}|1| | h3 | BlazBlue Radio | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|2| | h3 | BlazBlue Radio Continued | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|W| | h3 | BlazBlue Radio Wide | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|H| | h3 | BlazBlue Radio Hyper | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|A| | h3 | BlazBlue Radio Ace | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|Q| | h3 | BlazBlue Radio Quick | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|D| | h3 | BlazBlue Radio Dynamic | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|NEO| | h3 | BlazBlue Radio NEO | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|R| | h3 | BlazBlue Radio Repeat | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|R2| | h3 | BlazBlue Radio Repeat 2 | limit=5 | widths=150
  }}{{Gallery Section (BBRadio) |{{{1}}}|K| | h3 | BlazBlue Radio Kaze | limit=5 | widths=150
  }}{{ Gallery Section | {{{1}}} | {{#var:RADIOXB_CAT}}| | h3 | Radio: XBlaze }}
}}<!--
 
ARTWORK
 
-->{{#ifeq: 0 | {{#var:ARTWORK}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Artwork </h2>
    {{ Gallery Section | {{{1}}} | {{#var:PROMO_CAT}}  | | h3 | Promotional
  }}{{ Gallery Section | {{{1}}} | {{#var:BDAY_CAT}}  | | h3 | Birthday
  }}{{ Gallery Section | {{{1}}} | {{#var:EXTRAS_CAT}} | | h3 | Staff Extras
  }}{{ Gallery Section | {{{1}}} | {{#var:SPCIAL_CAT}} | | h3 | Guest Artwork
  }}{{ Gallery Section | {{{1}}} | {{#var:PREORDR_CAT}}| | h3 | Pre-order Bonuses
  }}{{ Gallery Section | {{{1}}} | {{#var:WALPPR_CAT}} | | h3 | Wallpapers
  }}{{ Gallery Section | {{{1}}} | {{#var:STICKR_CAT}} | | h3 | Stickers
  }}{{ Gallery Section | {{{1}}} | {{#var:ICON_CAT}}  | | h3 | Icons }}
}}<!--
 
PRODUCTION ART
 
-->{{#ifeq: 0 | {{#var:PRODUCTION_ART}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Production Art </h2>
    {{ Gallery Section | {{{1}}} | {{#var:MODSHT_CAT}} | | h3 | Model Sheets
  }}{{ Gallery Section | {{{1}}} | {{#var:EARLYD_CAT}} | | h3 | Early Designs
  }}{{ Gallery Section | {{{1}}} | {{#var:STORYB_CAT}} | | h3 | Storyboards }}
}}<!--
 
COLLABORATIONS
 
-->{{#ifeq: 0 | {{#var:COLLABORATIONS}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Collaborations </h2>
    {{ Gallery Section | {{{1}}} | {{#var:LOVRE2_CAT}} | | h3 | Lord of Vermilion Re:2
  }}{{ Gallery Section | {{{1}}} | {{#var:LOVIII_CAT}} | | h3 | Lord of Vermilion III
  }}{{ Gallery Section | {{{1}}} | {{#var:MABIDL_CAT}} | | h3 | Mabinogi Duel
  }}{{ Gallery Section | {{{1}}} | {{#var:UNLMVS_CAT}} | | h3 | Unlimited VS
  }}
}}</div>
</includeonly>
<noinclude>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 17:57, 3 April 2021

Documentation icon Template documentation[view] [edit] [history] [purge]

For examples of pages using this template, see Category:Gallery Pages.

Purpose

Creates a gallery from Template:Gallery Section for the specified character. It will skip sections and subsections that the character does not have images for.

Usage

{{ Master Gallery | Character Name }}