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
(initial code)
 
(add skeleton code for the current list of categories)
Line 1: Line 1:
<noinclude>
<noinclude>
THIS TEMPLATE IS STILL A WORK IN PROGRESS SO DON'T USE IT YET
{{:Template:Master Gallery/doc}}
{{:Template:Master Gallery/doc}}
</noinclude><includeonly>
</noinclude><includeonly>
<!-- MAIN ARTWORK -->
<!-- MAIN ARTWORK -->
{{ Gallery Section | {{{1}}} | Main Artwork | | h2 | Main Artwork }}
{{ Gallery Section | {{{1}}} | Main Artwork | | h2 }}


<!-- SPRITES -->
<!-- SPRITES -->
Line 9: Line 11:
   {{#ask:[[Category:{{{1}}}]][[Category:Battle]]|format=count}} +
   {{#ask:[[Category:{{{1}}}]][[Category:Battle]]|format=count}} +
   {{#ask:[[Category:{{{1}}}]][[Category:Palette Reference]]|format=count}} +  
   {{#ask:[[Category:{{{1}}}]][[Category:Palette Reference]]|format=count}} +  
   {{#ask:[[Category:{{{1}}}]][[Category:Portrait]]|format=count}}
   {{#ask:[[Category:{{{1}}}]][[Category:Lobby Avatar]]|format=count}}
   }}
   }}
   | <!-- all three subcategories are empty, don't make a section header-->
   | <!-- all three subcategories are empty, don't make a section header-->
   | <h2> Sprites </h2>  
   | <h2> Sprites </h2>  
     {{ User:Chao | {{{1}}} | Battle | | h3 | Battle }}
     {{ Gallery Section | {{{1}}} | Battle | | h3 }}
     {{ User:Chao | {{{1}}} | Palette Reference | | h3 | Palette References }}
     {{ Gallery Section | {{{1}}} | Palette Reference | | h3 | Palette References }}
     {{ User:Chao | {{{1}}} | Portrait | | h3 | Portraits }}
     {{ Gallery Section | {{{1}}} | Lobby Avatar | | h3 | Lobby Avatars }}
}}
 
<!-- CHARACTER CREST -->
{{ Gallery Section | {{{1}}} | Crest | | h2 | Character Crest }}
 
<!-- ARCADE -->
{{#ifeq: 0 | {{#expr:
  {{#ask:[[Category:{{{1}}}]][[Category:Arcade]][[Category:Calamity Trigger]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Arcade]][[Category:Continuum Shift]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Arcade]][[Category:Chrono Phantasma]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Arcade]][[Category:Central Fiction]]|format=count}}
  }}
  | <!-- all four subcategories are empty, don't make a section header-->
  | <h2> Arcade </h2>
    {{ Gallery Section | {{{1}}} | Calamity Trigger | Arcade | h3 }}
    {{ Gallery Section | {{{1}}} | Continuum Shift  | Arcade | h3 }}
    {{ Gallery Section | {{{1}}} | Chrono Phantasma | Arcade | h3 }}
    {{ Gallery Section | {{{1}}} | Central Fiction  | Arcade | h3 }}
}}
 
<!-- STORY -->
{{#ifeq: 0 | {{#expr:
  {{#ask:[[Category:{{{1}}}]][[Category:Portrait]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Story]][[Category:Calamity Trigger]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Story]][[Category:Continuum Shift]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Story]][[Category:Chrono Phantasma]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Story]][[Category:Central Fiction]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Story]][[Category:Clone Phantasma]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Story]][[Category:XBlaze Code:Embryo]]|format=count}} +
  {{#ask:[[Category:{{{1}}}]][[Category:Story]][[Category:XBlaze Lost:Memories]]|format=count}}
  }}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Story </h2>
    {{ Gallery Section | {{{1}}} | Portrait              |      | h3 | Portraits }}
    {{ Gallery Section | {{{1}}} | Calamity Trigger      | Story | h3 }}
    {{ Gallery Section | {{{1}}} | Continuum Shift      | Story | h3 }}
    {{ Gallery Section | {{{1}}} | Chrono Phantasma      | Story | h3 }}
    {{ Gallery Section | {{{1}}} | Central Fiction      | Story | h3 }}
    {{ Gallery Section | {{{1}}} | Clone Phantasma      | Story | h3 }}
    {{ Gallery Section | {{{1}}} | XBlaze Code:Embryo    | Story | h3 }}
    {{ Gallery Section | {{{1}}} | XBlaze Lost:Memories  | Story | h3 }}
}}
 
<!-- NOVELS -->
{{#ifeq: 0 | {{#expr:
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}}
  }}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Novels </h2>
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Phase 0 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Phase Shift 1 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Phase Shift 2 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Phase Shift 3 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Phase Shift 4 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Calamity Trigger — Part 1 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Calamity Trigger — Part 2 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Continuum Shift — Part 1 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Continuum Shift — Part 2 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Spiral Shift – Ice Blade Hero }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Bloodedge Experience - Part 1 }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Bloodedge Experience - Part 2 }}
}}
 
<!-- MANGA -->
{{#ifeq: 0 | {{#expr:
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}}
  }}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Novels </h2>
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Chemical Complex }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Remix Heart }}
    {{ Gallery Section | {{{1}}} | | | h3 | BlazBlue: Variable Heart }}
}}
}}


{{ User:Chao | Kagura Mutsuki | Story | Chrono Phantasma | h2 | Chrono Phantasma }}
<!-- ANIMATION -->
{{ Gallery Section | {{{1}}} | Animation | | h2 | Animation }}
 
<!-- ARTWORK -->
{{#ifeq: 0 | {{#expr:
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}}
  }}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Artwork </h2>
    {{ Gallery Section | {{{1}}} | | | h3 | Promotional }}
    {{ Gallery Section | {{{1}}} | | | h3 | Birthday }}
    {{ Gallery Section | {{{1}}} | | | h3 | Special }}
    {{ Gallery Section | {{{1}}} | | | h3 | Chibi }}
    {{ Gallery Section | {{{1}}} | | | h3 | Unlimited VS }}
    {{ Gallery Section | {{{1}}} | | | h3 | Wallpapers }}
    {{ Gallery Section | {{{1}}} | | | h3 | Stickers }}
}}   
 
<!-- PRODUCTION ART -->
{{#ifeq: 0 | {{#expr:
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}} +
    {{#ask:[[Category:{{{1}}}]][[Category:]][[Category:]]|format=count}}
  }}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Artwork </h2>
    {{ Gallery Section | {{{1}}} | | | h3 | Model Sheets }}
    {{ Gallery Section | {{{1}}} | | | h3 | Early Designs }}
    {{ Gallery Section | {{{1}}} | | | h3 | Storyboards }}
}}  
</includeonly>
</includeonly>

Revision as of 09:27, 9 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 }}