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)
m (add collaborations section)
Line 55: Line 55:
}}{{#vardefine:PREORDR_CAT| Pre-order Bonuses
}}{{#vardefine:PREORDR_CAT| Pre-order Bonuses
}}{{#vardefine:  CHIBI_CAT| Chibi  
}}{{#vardefine:  CHIBI_CAT| Chibi  
}}{{#vardefine: LOVRE2_CAT| Lord of Vermilion Re:2
}}{{#vardefine: LOVIII_CAT| Lord of Vermilion III
}}{{#vardefine: MABIDL_CAT| Mabinogi Duel
}}{{#vardefine: UNLMVS_CAT| Unlimited VS
}}{{#vardefine:RADIOXB_CAT| Radio: XBlaze
}}{{#vardefine:RADIOXB_CAT| Radio: XBlaze
}}{{#vardefine: WALPPR_CAT| Wallpapers
}}{{#vardefine: WALPPR_CAT| Wallpapers
Line 67: Line 63:
}}{{#vardefine: EARLYD_CAT| Early Designs
}}{{#vardefine: EARLYD_CAT| Early Designs
}}{{#vardefine: STORYB_CAT| Storyboards
}}{{#vardefine: STORYB_CAT| Storyboards
}}<!--COLLABORATIONS
-->{{#vardefine: LOVRE2_CAT| Lord of Vermilion Re:2
}}{{#vardefine: LOVIII_CAT| Lord of Vermilion III
}}{{#vardefine: MABIDL_CAT| Mabinogi Duel
}}{{#vardefine: UNLMVS_CAT| Unlimited VS
}}<!--
}}<!--
-------------------------------
-------------------------------
Line 217: Line 218:
}}{{#vardefine: {{#var:CHIBI_CAT}}
}}{{#vardefine: {{#var:CHIBI_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CHIBI_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CHIBI_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:LOVRE2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:LOVRE2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:LOVIII_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:LOVIII_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:MABIDL_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MABIDL_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:UNLMVS_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:UNLMVS_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:RADIOXB_CAT}}
}}{{#vardefine: {{#var:RADIOXB_CAT}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:RADIOXB_CAT}}]]|format=count}}
   |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:RADIOXB_CAT}}]]|format=count}}
Line 241: Line 234:
     {{#var:{{#var:PREORDR_CAT}}}}+
     {{#var:{{#var:PREORDR_CAT}}}}+
     {{#var:{{#var:CHIBI_CAT}}}}  +
     {{#var:{{#var:CHIBI_CAT}}}}  +
    {{#var:{{#var:LOVRE2_CAT}}}} +
    {{#var:{{#var:LOVIII_CAT}}}} +
    {{#var:{{#var:MABIDL_CAT}}}} +
    {{#var:{{#var:UNLMVS_CAT}}}} +
     {{#var:{{#var:RADIOXB_CAT}}}}+
     {{#var:{{#var:RADIOXB_CAT}}}}+
     {{#var:{{#var:WALPPR_CAT}}}} +
     {{#var:{{#var:WALPPR_CAT}}}} +
Line 261: Line 250:
     {{#var:{{#var:EARLYD_CAT}}}} +
     {{#var:{{#var:EARLYD_CAT}}}} +
     {{#var:{{#var:STORYB_CAT}}}}
     {{#var:{{#var:STORYB_CAT}}}}
  }}
}}{{#vardefine: {{#var:LOVRE2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:LOVRE2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:LOVIII_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:LOVIII_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:MABIDL_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MABIDL_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:UNLMVS_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:UNLMVS_CAT}}]]|format=count}}
}}{{#vardefine: COLLABORATIONS
  |{{#expr:
    {{#var:{{#var:LOVRE2_CAT}}}} +
    {{#var:{{#var:LOVIII_CAT}}}} +
    {{#var:{{#var:MABIDL_CAT}}}} +
    {{#var:{{#var:UNLMVS_CAT}}}}
   }}
   }}
}}<!--
}}<!--
Line 378: Line 382:
   }}{{ Gallery Section | {{{1}}} | {{#var:PREORDR_CAT}}| | h3 | Pre-order Bonuses
   }}{{ Gallery Section | {{{1}}} | {{#var:PREORDR_CAT}}| | h3 | Pre-order Bonuses
   }}{{ Gallery Section | {{{1}}} | {{#var:CHIBI_CAT}}  | | h3 | Chibi  
   }}{{ Gallery Section | {{{1}}} | {{#var:CHIBI_CAT}}  | | h3 | Chibi  
  }}{{ Gallery Section | {{{1}}} | {{#var:LOVRE2_CAT}} | | h3 | Lord of Vermilion Re:2
  }}{{ Gallery Section | {{{1}}} | {{#var:LOVIII_CAT}} | | h3 | Lord of Vermilion III
  }}{{ Gallery Section | {{{1}}} | {{#var:MABIDL_CAT}} | | h3 | Mabinogi Duel
  }}{{ Gallery Section | {{{1}}} | {{#var:UNLMVS_CAT}} | | h3 | Unlimited VS
   }}{{ Gallery Section | {{{1}}} | {{#var:RADIOXB_CAT}}| | h3 | Radio: XBlaze  
   }}{{ Gallery Section | {{{1}}} | {{#var:RADIOXB_CAT}}| | h3 | Radio: XBlaze  
   }}{{ Gallery Section | {{{1}}} | {{#var:WALPPR_CAT}} | | h3 | Wallpapers  
   }}{{ Gallery Section | {{{1}}} | {{#var:WALPPR_CAT}} | | h3 | Wallpapers  
Line 396: Line 396:
   }}{{ Gallery Section | {{{1}}} | {{#var:EARLYD_CAT}} | | h3 | Early Designs  
   }}{{ Gallery Section | {{{1}}} | {{#var:EARLYD_CAT}} | | h3 | Early Designs  
   }}{{ Gallery Section | {{{1}}} | {{#var:STORYB_CAT}} | | h3 | Storyboards }}
   }}{{ Gallery Section | {{{1}}} | {{#var:STORYB_CAT}} | | h3 | Storyboards }}
}}   
}}<!--
 
COLLABORATIONS
 
-->{{#ifeq: 0 | {{#var:COLLABORATIONS}}
   | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Collaborations </h2>
    {{ Gallery Section | {{{1}}} | {{#var:LOVRE2_CAT}} | | h3 | Lord of Vermilion Re:2
  }}{{ Gallery Section | {{{1}}} | {{#var:LOVIII_CAT}} | | h3 | Lord of Vermilion III
  }}{{ Gallery Section | {{{1}}} | {{#var:MABIDL_CAT}} | | h3 | Mabinogi Duel
  }}{{ Gallery Section | {{{1}}} | {{#var:UNLMVS_CAT}} | | h3 | Unlimited VS
  }}
}}
</includeonly>
</includeonly>
<noinclude>
<noinclude>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 03:58, 20 January 2018

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