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)
 
(added TOC to the top of each gallery)
 
(65 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{:Template:Master Gallery/doc}}
{{Documentation}}
</noinclude><includeonly>
</noinclude><includeonly>
<!-- MAIN ARTWORK -->
<gallery><!-- force gallery module to be included --> </gallery><div class="noexcerpt">
{{ Gallery Section | {{{1}}} | Main Artwork | | h2 | Main Artwork }}
{{Imbox Gallery Notice 2}}
 
__TOC__
<!-- SPRITES -->
{{#invoke:Character Gallery|main|character={{{1|}}}|data={{{2|}}}}}
{{#ifeq: 0 | {{#expr:
</includeonly><noinclude>
  {{#ask:[[Category:{{{1}}}]][[Category:Battle]]|format=count}} +
[[Category:Templates]]
  {{#ask:[[Category:{{{1}}}]][[Category:Palette Reference]]|format=count}} +
</noinclude>
  {{#ask:[[Category:{{{1}}}]][[Category:Portrait]]|format=count}}
  }}
  | <!-- all three subcategories are empty, don't make a section header-->
  | <h2> Sprites </h2>  
    {{ User:Chao | {{{1}}} | Battle | | h3 | Battle }}
    {{ User:Chao | {{{1}}} | Palette Reference | | h3 | Palette References }}
    {{ User:Chao | {{{1}}} | Portrait | | h3 | Portraits }}
}}
 
{{ User:Chao | Kagura Mutsuki | Story | Chrono Phantasma | h2 | Chrono Phantasma }}
</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 }}