Template:Switch/doc

This template is used to do create a switch between two images, useful for Character infobox - High School DxD.
 * Description

This template uses Toggle Test and its related JavaSripts.
 * Dependencies


 * Syntax


 * Parameters
 * opotion1= the text associated with image 1 (this is the default text) - optional, default:.
 * image1/1= the default image to be displayed, can be given as first free parameter.
 * opotion2= the text associated with image 2 - optional, default:.
 * image2/2= the secondary image, can be given as second free parameter.

The basic way
 * Samples

placed in Character infobox - High School DxD like

gives:

With custom options:

placed in Character infobox - High School DxD like {{Character infobox - High School DxD |option1 = Second part |image1 = |option2 = First part |image2 =
 * name      =
 * image     = {{Switch
 * caption   =
 * Kana      =
 * Romaji    =


 * Race      =
 * Nicknames =
 * Hair Color =
 * Eye Color =
 * Equipment =

}} gives: {{Character infobox - High School DxD |option1 = Second part |image1 = |option2 = First part |image2 =
 * Relatives    =
 * Affiliations =
 * Status       =
 * Ranking      =
 * Voice Actor  =
 * name      = Rias Gremory
 * image     = {{Switch
 * caption   =
 * Kana      = リアス・グレモリー
 * Romaji    = Riasu Guremorī


 * Race      = Devil (Pure-Blooded)
 * Nicknames = Crimson-Haired Ruin Princess Princess of Destruction President (Buchou)
 * Hair Color = Crimson Red
 * Eye Color = Blue-Green
 * Equipment = Power of Destruction Evil Pieces

}}
 * Relatives    = Lord Gremory (Father) Venelana Gremory (Mother) Sirzechs Lucifer (Brother) Millicas Gremory (Nephew) Grayfia Lucifuge (Sister-in-law) Sairaorg Bael (Cousin) Misla Bael (Aunt)
 * Affiliations = Gremory Clan (Heiress) 72 Pillars Kuoh Academy (Third-year student) Occult Research Club (President/Founder)
 * Status       = Alive
 * Ranking      = King
 * Voice Actor  = Yoko Hikasa

- Toggle Test.
 * See Also