FANDOM



Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:CharGallery/doc to edit this documentation. (How does this work?)
Description
This template is used in conjunction with Template:Char to create character galleries like this.
Syntax
{{CharGallery|<theme=... (optional)>|<title=Title (optional)>|<page=Page Name (optional)>|<template=Template Name (optional)>|<{{Char|...}}>|<...>}}
Themes are defined in MediaWiki:Custom-Themes.scss, then compiled and propagated to MediaWiki:Themes.css. The palettes (as of revisions 166161 and 166162 respectively) are as follows.
Theme (affiliation-[…]) border-color background-color CustomHeader color
civilians #267728#2c8a2e
hero_public_safety_commission #77746a#858176
ketsubutsu_high #afb5bc#bdc2c8
league_of_villains #657382#708090
police #0060a9#006ec2
pro_heroes #e88c00#ff9b02
shie_hassaikai #3f3579#483d8b
shiketsu_high #002b59#003872
ua_high (default) #8d2424#a12929
vigilantes #e76828#ea783f
villains #525252#5f5f5f
isamu_high #640633#7c073f
masegaki_primary
seiai_high
seijin_high
If the title named parameter is supplied, a header will be generated with a link to the page with that title. To change the target, specify the page named parameter. To suppress linking, specify a blank page named parameter.
If the template named parameter is also supplied, links to view and edit that template will be generated in the header, and the category Character Gallery Templates will be added to that template. NB: Omit the Template: namespace prefix.
Examples
{{CharGallery|theme=affiliation-ua_high
|{{Char|Izuku Midoriya Portrait.png|Izuku Midoriya|Seat No. 18}}
}}
gives…
{{CharGallery|theme=affiliation-ua_high|title=Class 1-A
|{{Char|Izuku Midoriya Portrait.png|Izuku Midoriya|Seat No. 18}}
}}
gives…
{{CharGallery|theme=affiliation-ua_high|title=U.A. Students|page=U.A. High School#U.A. Students
|{{Char|Izuku Midoriya Portrait.png|Izuku Midoriya|Seat No. 18}}
}}
gives…
{{CharGallery|theme=affiliation-ua_high|title=Beautiful Cinnamon Roll Too Good For This World, Too Pure|page=|template=CharGallery/doc
|{{Char|Izuku Midoriya Portrait.png|Izuku Midoriya|Seat No. 18}}
}}
gives…
Beautiful Cinnamon Roll Too Good For This World, Too Pure
*Disclosure: Some of the links above are affiliate links, meaning, at no additional cost to you, Fandom will earn a commission if you click through and make a purchase. Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+