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 {{{video}}} parameter)
(add Videos category)
Line 82: Line 82:
}}{{#vardefine: {{#var:CREST_CAT}}
}}{{#vardefine: {{#var:CREST_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CREST_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CREST_CAT}}]]|format=count}}
}}{{#vardefine: VIDEOS
  |{{#expr:
    {{#var: EMBEDVIDS}}
  }}
}}{{#vardefine: {{#var:CT_CAT}} {{#var:ARCADE_CAT}}
}}{{#vardefine: {{#var:CT_CAT}} {{#var:ARCADE_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CT_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CT_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
Line 178: Line 182:
     {{#var:{{#var:VH_CAT}}}}
     {{#var:{{#var:VH_CAT}}}}
   }}
   }}
}}{{#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: {{#var:AM_CAT}}
}}{{#vardefine: {{#var:AM_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:AM_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:AM_CAT}}]]|format=count}}
}}{{#vardefine: ANIMATION
}}{{#vardefine: ANIMATION
   |{{#expr:
   |{{#expr:
    {{#var: EMBEDVIDS}}                        +
     {{#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}}}} +
     {{#var:{{#var:AM_CAT}}}}
   }}
   }}
}}{{#vardefine: {{#var:PROMO_CAT}}
}}{{#vardefine: {{#var:PROMO_CAT}}
Line 263: Line 254:


-->{{ Gallery Section | {{{1}}} | {{#var:CREST_CAT}} | | h2 | Character Crest  
-->{{ Gallery Section | {{{1}}} | {{#var:CREST_CAT}} | | h2 | Character Crest  
}}<!--
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 -->
  }}
}}<!--  
}}<!--  


Line 326: Line 328:
   | <!-- all subcategories are empty, don't make a section header-->
   | <!-- all subcategories are empty, don't make a section header-->
   | <h2> Animation </h2>
   | <h2> Animation </h2>
     {{#if:{{{video|}}}
     {{ Gallery Section | {{{1}}} | {{#var:AM_CAT}} | | h3 | BlazBlue: Alter Memory }}
      | <h3> Videos </h3>
{{{video|}}}
      | <!-- else no videos, skip this subsection -->
  }}{{ 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}} | | h3 | BlazBlue: Alter Memory }}
}}<!--
}}<!--



Revision as of 04:17, 3 December 2017

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