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
(add Girls' Frontline to Collaborations)
mNo edit summary
Line 15: Line 15:
<!--
<!--
--------------------------
--------------------------
  VARIABLES FOR CHARACTERS
  VARIABLES for CHARACTERS
-------------------------
-------------------------
(for #cargo_query and #cargo_compound_query on table Files,  
(for #cargo_query and #cargo_compound_query on table Files,  
Line 91: Line 91:
}}{{#vardefine: UNLMVS_CAT| Unlimited VS  
}}{{#vardefine: UNLMVS_CAT| Unlimited VS  
}}<!--
}}<!--
-------------------------------
--------------------------------------------------------------------
  VARIABLES FOR IMAGE COUNTS
  VARIABLES to COUNT HOW MANY IMAGES (IF ANY) WILL BE IN EACH SECTION
-------------------------------
--------------------------------------------------------------------
-->{{#vardefine: {{#var:MAIN_CAT}}
-->{{#vardefine: {{#var:MAIN_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MAIN_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MAIN_CAT}}]]|format=count}}
Line 358: Line 358:
   | <h3>BlazBlue: Cross Tag Battle</h3>
   | <h3>BlazBlue: Cross Tag Battle</h3>
{{#cargo_compound_query:
{{#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 "{{#var:GALLERY_CHAR}}" 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"
|tables=Files;fields=_pageName,Caption;where=Characters HOLDS "{{#var:GALLERY_CHAR}}" AND Source HOLDS "BlazBlue: Cross Tag Battle" AND Gallery_Sections HOLDS "Lobby Avatars"
|format=gallery
|format=gallery
|show bytes=0
|show bytes=0

Revision as of 19:40, 7 September 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 }}