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 variables)
(added TOC to the top of each gallery)
 
(63 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
THIS TEMPLATE IS STILL A WORK IN PROGRESS SO DON'T USE IT YET
{{Documentation}}
 
{{:Template:Master Gallery/doc}}
</noinclude><includeonly>
</noinclude><includeonly>
<!--
<gallery><!-- force gallery module to be included --> </gallery><div class="noexcerpt">
-------------------------------
{{Imbox Gallery Notice 2}}
VARIABLES for TAGS/CATEGORIES
__TOC__
-------------------------------
{{#invoke:Character Gallery|main|character={{{1|}}}|data={{{2|}}}}}
-->{{#vardefine:  MAIN_CAT| Main Artwork
</includeonly><noinclude>
}}{{#vardefine: BATTLE_CAT| Battle
[[Category:Templates]]
}}{{#vardefine: PALREF_CAT| Palette Reference
</noinclude>
}}{{#vardefine: LOBAVI_CAT| Lobby Avatar
}}{{#vardefine:  CREST_CAT| Crest
}}{{#vardefine: PORTRT_CAT| Portrait
}}{{#vardefine: ARCADE_CAT| Arcade
}}{{#vardefine:  STORY_CAT| Story
}}{{#vardefine:    CT_CAT| Calamity Trigger
}}{{#vardefine:    CS_CAT| Continuum Shift
}}{{#vardefine:    CP_CAT| Chrono Phantasma
}}{{#vardefine:    CF_CAT| Central Fiction
}}{{#vardefine: CLONEP_CAT| Clone Phantasma
}}{{#vardefine:  XBCE_CAT| XBlaze Code:Embryo
}}{{#vardefine:  XBLM_CAT| XBlaze Lost:Memories
}}<!-- NOVELS
-->{{#vardefine:PHASE0_CAT| BlazBlue: Phase 0
}}{{#vardefine: PHASE1_CAT| Blazblue: Phase Shift 1
}}{{#vardefine: PHASE2_CAT| Blazblue: Phase Shift 2
}}{{#vardefine: PHASE3_CAT| Blazblue: Phase Shift 3
}}{{#vardefine: PHASE4_CAT| Blazblue: Phase Shift 4
}}{{#vardefine: NOVCT1_CAT| Blazblue: Calamity Trigger - Part 1
}}{{#vardefine: NOVCT2_CAT| Blazblue: Calamity Trigger - Part 2
}}{{#vardefine: NOVCS1_CAT| Blazblue: Continuum Shift - Part 1
}}{{#vardefine: NOVCS2_CAT| Blazblue: Continuum Shift - Part 2
}}{{#vardefine:  SSIBH_CAT| BlazBlue: Spiral Shift – Ice Blade Hero
}}{{#vardefine:    BE1_CAT| BlazBlue: Bloodedge Experience - Part 1
}}{{#vardefine:    BE2_CAT| BlazBlue: Bloodedge Experience - Part 2
}}<!-- MANGA
-->{{#vardefine: MANBB_CAT| BlazBlue
}}{{#vardefine:    CC_CAT| BlazBlue: Chemical Complex (Chimelical Complex???)
}}{{#vardefine:    RH_CAT| BlazBlue: Remix Heart
}}{{#vardefine:    VH_CAT| BlazBlue: Variable Heart
}}<!-- ANIME
-->{{#vardefine: ANIME_CAT| Animation
}}<!--ARTWORK
-->{{#vardefine: PROMO_CAT| Promotional
}}{{#vardefine:  BDAY_CAT| Birthday
}}{{#vardefine: SPCIAL_CAT| Special
}}{{#vardefine:  CHIBI_CAT| Chibi
}}{{#vardefine: UNLMVS_CAT| Unlimited VS
}}{{#vardefine: WALPPR_CAT| Wallpaper
}}{{#vardefine: STICKR_CAT| Sticker
}}<!--PRODUCTION ART
-->{{#vardefine:MODSHT_CAT| Model Sheet
}}{{#vardefine: EARLYD_CAT| Early Design
}}{{#vardefine: STORYB_CAT| Storyboard
}}<!--
-------------------------------
VARIABLES FOR IMAGE COUNTS
-------------------------------
-->{{#vardefine: {{#var:MAIN_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MAIN_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:BATTLE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BATTLE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PALREF_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PALREF_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:LOBAVI_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:LOBAVI_CAT}}]]|format=count}}
}}{{#vardefine: SPRITES
  |{{#expr:
    {{#var:{{#var:BATTLE_CAT}}}} +
    {{#var:{{#var:PALREF_CAT}}}} +
    {{#var:{{#var:LOBAVI_CAT}}}}
  }}
}}{{#vardefine: {{#var:CREST_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CREST_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CT_CAT}} {{#var:ARCADE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CT_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CS_CAT}} {{#var:ARCADE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CS_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CP_CAT}} {{#var:ARCADE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CP_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:ARCADE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:ARCADE_CAT}}]]|format=count}}
}}{{#vardefine: ARCADE
  |{{#expr:
    {{#var:{{#var:CT_CAT}} {{#var:ARCADE_CAT}}}} +
    {{#var:{{#var:CS_CAT}} {{#var:ARCADE_CAT}}}} +
    {{#var:{{#var:CP_CAT}} {{#var:ARCADE_CAT}}}} +
    {{#var:{{#var:CF_CAT}} {{#var:ARCADE_CAT}}}}
  }}
}}{{#vardefine: {{#var:PORTRT_CAT}}
  {{#ask:[[Category:{{{1}}}]][[Category:{{#var:PORTRT_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CT_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CT_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CS_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CS_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CP_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CP_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CF_CAT}} {{#var:STORY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CF_CAT}}]][[Category:{{#var:STORY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CLONEP_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CLONEP_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:XBCE_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:XBCE_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:XBLM_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:XBLM_CAT}}]]|format=count}}
}}{{#vardefine: STORY
  |{{#expr:
    {{#var:{{#var:PORTRT_CAT}}}} +
    {{#var:{{#var:CT_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:CS_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:CP_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:CF_CAT}} {{#var:STORY_CAT}}}} +
    {{#var:{{#var:CLONEP_CAT}}}} +
    {{#var:{{#var:XBCE_CAT}}}}  +
    {{#var:{{#var:XBLM_CAT}}}}
  }}
}}{{#vardefine: {{#var:PHASE0_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE0_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PHASE1_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE1_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PHASE2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PHASE3_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE3_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PHASE4_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:PHASE4_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:NOVCT1_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:NOVCT1_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:NOVCT2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:NOVCT2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:NOVCS1_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:NOVCS1_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:NOVCS2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:NOVCS2_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:SSIBH_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:SSIBH}}]]|format=count}}
}}{{#vardefine: {{#var:BE1_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BE1_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:BE2_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BE2_CAT}}]]|format=count}}
}}{{#vardefine:NOVELS
  |{{#expr:
    {{#var:{{#var:PHASE0_CAT}}}} +
    {{#var:{{#var:PHASE1_CAT}}}} +
    {{#var:{{#var:PHASE2_CAT}}}} +
    {{#var:{{#var:PHASE3_CAT}}}} +
    {{#var:{{#var:NOVCT1_CAT}}}} +
    {{#var:{{#var:NOVCT2_CAT}}}} +
    {{#var:{{#var:NOVCS1_CAT}}}} +
    {{#var:{{#var:NOVCS2_CAT}}}} +
    {{#var:{{#var:SSIBH_CAT}}}}  +
    {{#var:{{#var:BE1_CAT}}}}    +
    {{#var:{{#var:BE2_CAT}}}}
  }}
}}{{#vardefine: {{#var:MANBB_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MANBB_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CC_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CC_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:RH_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:RH_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:VH_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:VH_CAT}}]]|format=count}}
}}{{#vardefine:MANGA
  |{{#expr:
    {{#var:MANBB_CAT}} +
    {{#var:CC_CAT}} +
    {{#var:RH_CAT}} +
    {{#var:VH_CAT}}
  }}
}}{{#vardefine: {{#var:ANIME_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:ANIME_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:PROMO_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{#var:PROMO_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:BDAY_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:BDAY_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:SPCIAL_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:SPCIAL_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:CHIBI_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:CHIBI_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:UNLMVS_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:UNLMVS_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:WALPPR_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:WALPPR_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:STICKR_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:STICKR_CAT}}]]|format=count}}
}}{{#vardefine: ARTWORK
  |{{#expr:
    {{#var:PROMO_CAT}}  +
    {{#var:BDAY_CAT}}  +
    {{#var:SPCIAL_CAT}} +
    {{#var:CHIBI_CAT}}  +
    {{#var:UNLMVS_CAT}} +
    {{#var:WALPPR_CAT}} +
    {{#var:STICKR_CAT}}
  }}
}}{{#vardefine: {{#var:MODSHT_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:MODSHT_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:EARLYD_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:EARLYD_CAT}}]]|format=count}}
}}{{#vardefine: {{#var:STORYB_CAT}}
  |{{#ask:[[Category:{{{1}}}]][[Category:{{#var:STORYB_CAT}}]]|format=count}}
}}{{#vardefine: PRODUCTION_ART
  |{{#expr:
    {{#var:MODSHT_CAT}} +
    {{#var:EARLYD_CAT}} +
    {{#var:STORYB_CAT}} +
  }}
}}<!--
-------------------------------
GALLERY LAYOUT
-------------------------------
--><!-- MAIN ARTWORK -->
{{ Gallery Section | {{{1}}} | {{#var:MAIN_CAT}} | | h2 }}
 
<!-- SPRITES -->
{{#ifeq: 0 | {{#var:SPRITES}}
  | <!-- all three subcategories are empty, don't make a section header-->
  | <h2> Sprites </h2>
    {{ Gallery Section | {{{1}}} | {{#var:BATTLE_CAT}} | | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:PALREF_CAT}} | | h3 | Palette References }}
    {{ Gallery Section | {{{1}}} | {{#var:LOBAVI_CAT}} | | h3 | Lobby Avatars }}
}}
 
<!-- CHARACTER CREST -->
{{ Gallery Section | {{{1}}} | {{#var:CREST_CAT}} | | h2 | Character Crest }}
 
<!-- ARCADE -->
{{#ifeq: 0 | {{#var:ARCADE}}
  | <!-- all four subcategories are empty, don't make a section header-->
  | <h2> Arcade </h2>
    {{ Gallery Section | {{{1}}} | {{#var:CT_CAT}} | {{#var:ARCADE_CAT}} | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:CS_CAT}} | {{#var:ARCADE_CAT}} | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:CP_CAT}} | {{#var:ARCADE_CAT}} | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:CF_CAT}} | {{#var:ARCADE_CAT}} | h3 }}
}}
 
<!-- STORY -->
{{#ifeq: 0 | {{#var:STORY}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Story </h2>
    {{ Gallery Section | {{{1}}} | {{#var:PORTRT_CAT}} | | h3 | Portraits }}
    {{ Gallery Section | {{{1}}} | {{#var:CT_CAT}}    | {{#var:STORY_CAT}} | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:CS_CAT}}    | {{#var:STORY_CAT}} | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:CP_CAT}}    | {{#var:STORY_CAT}} | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:CF_CAT}}    | {{#var:STORY_CAT}} | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:CLONEP_CAT}} | | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:XBCE_CAT}}  | | h3 }}
    {{ Gallery Section | {{{1}}} | {{#var:XBLM_CAT}}  | | h3 }}
}}
 
<!-- NOVELS -->
{{#ifeq: 0 | {{#var:NOVELS}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Novels </h2>
    {{ Gallery Section | {{{1}}} | {{#var:PHASE0_CAT}} | | h3 | BlazBlue: Phase 0 }}
    {{ Gallery Section | {{{1}}} | {{#var:PHASE1_CAT}} | | h3 | BlazBlue: Phase Shift 1 }}
    {{ Gallery Section | {{{1}}} | {{#var:PHASE2_CAT}} | | h3 | BlazBlue: Phase Shift 2 }}
    {{ Gallery Section | {{{1}}} | {{#var:PHASE3_CAT}} | | h3 | BlazBlue: Phase Shift 3 }}
    {{ Gallery Section | {{{1}}} | {{#var:PHASE4_CAT}} | | h3 | BlazBlue: Phase Shift 4 }}
    {{ Gallery Section | {{{1}}} | {{#var:NOVCT1_CAT}} | | h3 | BlazBlue: Calamity Trigger — Part 1 }}
    {{ Gallery Section | {{{1}}} | {{#var:NOVCT2_CAT}} | | h3 | BlazBlue: Calamity Trigger — Part 2 }}
    {{ Gallery Section | {{{1}}} | {{#var:NOVCS1_CAT}} | | h3 | BlazBlue: Continuum Shift — Part 1 }}
    {{ Gallery Section | {{{1}}} | {{#var:NOVCS1_CAT}} | | h3 | BlazBlue: Continuum Shift — Part 2 }}
    {{ Gallery Section | {{{1}}} | {{#var:SSIBH_CAT}}  | | h3 | BlazBlue: Spiral Shift – Ice Blade Hero }}
    {{ Gallery Section | {{{1}}} | {{#var:BE1_CAT}}    | | h3 | BlazBlue: Bloodedge Experience - Part 1 }}
    {{ Gallery Section | {{{1}}} | {{#var:BE2_CAT}}    | | h3 | BlazBlue: Bloodedge Experience - Part 2 }}
}}
 
<!-- MANGA -->
{{#ifeq: 0 | {{#var:MANGA}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Manga </h2>  
    {{ Gallery Section | {{{1}}} | {{#var:MANBB_CAT}} | | h3 | BlazBlue }}
    {{ Gallery Section | {{{1}}} | {{#var:CC_CAT}}    | | h3 | BlazBlue: Chemical Complex }}
    {{ Gallery Section | {{{1}}} | {{#var:RH_CAT}}    | | h3 | BlazBlue: Remix Heart }}
    {{ Gallery Section | {{{1}}} | {{#var:VH_CAT}}    | | h3 | BlazBlue: Variable Heart }}
}}
 
<!-- ANIMATION -->
{{ Gallery Section | {{{1}}} | {{#var:ANIME_CAT}} | | h2 | Animation }}
 
<!-- ARTWORK -->
{{#ifeq: 0 | {{#var:ARTWORK}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Artwork </h2>
    {{ Gallery Section | {{{1}}} | {{#var:PROMO_CAT}}  | | h3 | Promotional }}
    {{ Gallery Section | {{{1}}} | {{#var:BDAY_CAT}}  | | h3 | Birthday }}
    {{ Gallery Section | {{{1}}} | {{#var:SPCIAL_CAT}} | | h3 | Special }}
    {{ Gallery Section | {{{1}}} | {{#var:CHIBI_CAT}}  | | h3 | Chibi }}
    {{ Gallery Section | {{{1}}} | {{#var:UNLMVS_CAT}} | | h3 | Unlimited VS }}
    {{ Gallery Section | {{{1}}} | {{#var:WALPPR_CAT}} | | h3 | Wallpapers }}
    {{ Gallery Section | {{{1}}} | {{#var:STICKR_CAT}} | | h3 | Stickers }}
}} 
 
<!-- PRODUCTION ART -->
{{#ifeq: 0 | {{#var:PRODUCTION_ART}}
  | <!-- all subcategories are empty, don't make a section header-->
  | <h2> Artwork </h2>
    {{ Gallery Section | {{{1}}} | {{#var:MODSHT_CAT}} | | h3 | Model Sheets }}
    {{ Gallery Section | {{{1}}} | {{#var:EARLYD_CAT}} | | h3 | Early Designs }}
    {{ Gallery Section | {{{1}}} | {{#var:STORYB_CAT}} | | h3 | Storyboards }}
}} 
</includeonly>

Latest revision as of 17:57, 3 April 2021

Documentation icon Template documentation[view] [edit] [history] [purge]

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