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 (remove extraneous newlines between sections)
(add CT/CS/CP/CF/AM subcategories for Animation, fix Chilemical Complex subsection header)
Line 44: Line 44:
}}{{#vardefine:    VH_CAT| BlazBlue: Variable Heart
}}{{#vardefine:    VH_CAT| BlazBlue: Variable Heart
}}<!-- ANIME
}}<!-- ANIME
-->{{#vardefine: ANIME_CAT| BlazBlue: Alter Memory
-->{{#vardefine: ANIM_CAT| Animation
}}{{#vardefine:    AM_CAT| BlazBlue: Alter Memory
}}<!--ARTWORK
}}<!--ARTWORK
-->{{#vardefine: PROMO_CAT| Promotional Artwork
-->{{#vardefine: PROMO_CAT| Promotional Artwork
Line 173: Line 174:
     {{#var:{{#var:VH_CAT}}}}
     {{#var:{{#var:VH_CAT}}}}
   }}
   }}
}}{{#vardefine: {{#var:ANIME_CAT}}
}}{{#vardefine: {{#var:CT_CAT}} {{#var:ANIM_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:ANIME_CAT}}]]|format=count}}
   |{{#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: {{#var:AM_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:AM_CAT}}]]|format=count}}
}}{{#vardefine: ANIMATION
  |{{#expr:
    {{#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}}}} +
    {{#var:{{#var:AM_CAT}}}} +
  }}
}}{{#vardefine: {{#var:PROMO_CAT}}
}}{{#vardefine: {{#var:PROMO_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PROMO_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PROMO_CAT}}]]|format=count}}
Line 291: Line 308:
   | <h2> Manga </h2>  
   | <h2> Manga </h2>  
     {{ Gallery Section | {{{1}}} | {{#var:MANBB_CAT}} | | h3 | BlazBlue  
     {{ Gallery Section | {{{1}}} | {{#var:MANBB_CAT}} | | h3 | BlazBlue  
   }}{{ Gallery Section | {{{1}}} | {{#var:CC_CAT}}    | | h3 | BlazBlue: Chemical Complex  
   }}{{ Gallery Section | {{{1}}} | {{#var:CC_CAT}}    | | h3 | BlazBlue: Chilemical Complex  
   }}{{ Gallery Section | {{{1}}} | {{#var:RH_CAT}}    | | h3 | BlazBlue: Remix Heart  
   }}{{ Gallery Section | {{{1}}} | {{#var:RH_CAT}}    | | h3 | BlazBlue: Remix Heart  
   }}{{ Gallery Section | {{{1}}} | {{#var:VH_CAT}}    | | h3 | BlazBlue: Variable Heart }}
   }}{{ Gallery Section | {{{1}}} | {{#var:VH_CAT}}    | | h3 | BlazBlue: Variable Heart }}
Line 298: Line 315:
  ANIMATION  
  ANIMATION  


-->{{ Gallery Section | {{{1}}} | {{#var:ANIME_CAT}} | | h2 | Animation
-->{{#ifeq: 0 | {{#var:ANIMATION}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Animation </h2>
    {{ Gallery Section | {{{1}}} | {{#var:CT_CAT}} | {{#var:ANIM_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CS_CAT}} | {{#var:ANIM_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CP_CAT}} | {{#var:ANIM_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:CF_CAT}} | {{#var:ANIM_CAT}} | h3
  }}{{ Gallery Section | {{{1}}} | {{#var:AM_CAT}} | | h2 | BlazBlue: Alter Memory }}
}}<!--
}}<!--



Revision as of 01:37, 11 November 2017

THIS TEMPLATE IS STILL A WORK IN PROGRESS SO DON'T USE IT YET

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