Template:Master Gallery: Difference between revisions

Template page
m (remove Palette References category since palettes are now on each character's gameplay page)
m (split gameplay section by c-series/bbtag (except for Susano'o who keeps the old format))
Line 87: Line 87:
     {{#var:{{#var:CHIBI_CAT}}}}
     {{#var:{{#var:CHIBI_CAT}}}}
   }}
   }}
}}{{#vardefine: {{#var:BATTLE_CAT}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:BATTLE_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BATTLE_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:BATTLE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:LOBAVI_CAT}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:LOBAVI_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:LOBAVI_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:LOBAVI_CAT}}]]|format=count}}
}}{{#vardefine: SPRITES
}}{{#vardefine: GAMEPLAY_CF
   |{{#expr:
   |{{#expr:
     {{#var:{{#var:BATTLE_CAT}}}} +
     {{#var:{{#var:CF_CAT}} {{#var:BATTLE_CAT}}}} +
     {{#var:{{#var:LOBAVI_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
}}{{#vardefine: VIDEOS
Line 298: Line 312:
  -->{{ Gallery Section | {{{1}}} | {{#var:CREST_CAT}} | | h3 | Character Crest }}<!--
  -->{{ Gallery Section | {{{1}}} | {{#var:CREST_CAT}} | | h3 | Character Crest }}<!--
  -->{{ Gallery Section | {{{1}}} | {{#var:CHIBI_CAT}} | | h3 | Chibi }}
  -->{{ Gallery Section | {{{1}}} | {{#var:CHIBI_CAT}} | | h3 | Chibi }}
}}<!--  
}}<!--


SPRITES
 
 
-->{{#ifeq: Susano'o | {{{1|}}} |<!--
 
  GAMEPLAY, just for Susano'o (Susano'o breaks the above)


-->{{#ifeq: 0 | {{#var:SPRITES}}
-->{{#ifeq: 0 | {{#var:SPRITES}}
   | <!-- all three subcategories are empty, don't make a section header-->
   | <!-- all three subcategories are empty, don't make a section header-->
   | <h2> Sprites </h2>  
   | <h2> Gameplay </h2>  
     {{ Gallery Section | {{{1}}} | {{#var:BATTLE_CAT}} | | h3  
     {{ Gallery Section | {{{1}}} | {{#var:BATTLE_CAT}} | | h3  
   }}{{ Gallery Section | {{{1}}} | {{#var:LOBAVI_CAT}} | | h3 | Lobby Avatars }}
   }}{{ Gallery Section | {{{1}}} | {{#var:LOBAVI_CAT}} | | h3 | Lobby Avatars }}
}}<!--
  }}
|<!--
 
  GAMEPLAY, for everyone that's not Susano'o
 
-->{{#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 "{{{1|}}}" AND Source HOLDS "BlazBlue: Central Fiction" AND Gallery_Sections HOLDS "Lobby Avatars"
|tables=Files;fields=_pageName,Caption;where=Source HOLDS "BlazBlue: Central Fiction" AND Gallery_Sections HOLDS "Battle" AND Characters HOLDS "{{{1|}}}"
|format=gallery
|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
|caption field=Caption
}}}}
}}
}}
<!--


  VIDEOS  
  VIDEOS  

Revision as of 23:37, 28 May 2019

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 }}