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 (fix a bug where certain categories were not being hidden when empty)
m (sort XB, CLONEP story separately from other images tagged with XB/CLONEP as well)
Line 104: Line 104:
}}{{#vardefine: {{#var:CF_CAT}} {{#var:STORY_CAT}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:STORY_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CLONEP_CAT}}
}}{{#vardefine: {{#var:CLONEP_CAT}} {{#var:STORY_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CLONEP_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CLONEP_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:XBCE_CAT}}
}}{{#vardefine: {{#var:XBCE_CAT}} {{#var:STORY_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:XBCE_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:XBCE_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:XBLM_CAT}}
}}{{#vardefine: {{#var:XBLM_CAT}} {{#var:STORY_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:XBLM_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:XBLM_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: STORY
}}{{#vardefine: STORY
   |{{#expr:
   |{{#expr:
Line 117: Line 117:
     {{#var:{{#var:CP_CAT}} {{#var:STORY_CAT}}}} +
     {{#var:{{#var:CP_CAT}} {{#var:STORY_CAT}}}} +
     {{#var:{{#var:CF_CAT}} {{#var:STORY_CAT}}}} +
     {{#var:{{#var:CF_CAT}} {{#var:STORY_CAT}}}} +
     {{#var:{{#var:CLONEP_CAT}}}} +
     {{#var:{{#var:CLONEP_CAT}} {{#var:STORY_CAT}}}} +
     {{#var:{{#var:XBCE_CAT}}}}  +
     {{#var:{{#var:XBCE_CAT}} {{#var:STORY_CAT}}}}  +
     {{#var:{{#var:XBLM_CAT}}}}
     {{#var:{{#var:XBLM_CAT}} {{#var:STORY_CAT}}}}
   }}
   }}
}}{{#vardefine: {{#var:PHASE0_CAT}}
}}{{#vardefine: {{#var:PHASE0_CAT}}

Revision as of 12:52, 17 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 }}