FANDOM

2,609 Pages

Manga - Anime

Template documentation (for the above template, sometimes hidden or invisible) (view - edit - history)
Description

This template is used to do create a switch between two images, useful for {{Char Box}}.

Dependencies

This template uses File:NoPicAvailable.png, {{Toggle}} and its related JavaScripts.

Syntax
{{Switch
 |option1 = Text image 1 <!-- Default -->
 |image1  = Image 1 <!-- Default -->
 |option2 = Text image 2
 |image2  = Image 2
}}
Parameters
  • option1= the text associated with image 1 (this is the default text) - optional, default: Post Timeskip.
  • image1/1= the default image to be displayed, can be given as first free parameter - default: File:NoPicAvailable.png.
  • option2= the text associated with image 2 - optional, default: Pre Timeskip.
  • image2/2= the secondary image, can be given as second free parameter - default: File:NoPicAvailable.png..
Samples

Pre Timeskip - Post Timeskip Monkey D. Luffy

  


{{Switch
 | [[File:Monkey D. Luffy Manga Post Timeskip Infobox.png|250px|Monkey D. Luffy]] <!-- Default -->
 | [[File:Luffy Right Before Timeskip.png|250px|Monkey D. Luffy]]
}}


First part - Second part Monkey D. Luffy

With custom options:

{{Switch
 | option1 = Second part <!-- Default -->
 | image1  = [[File:Monkey D. Luffy Manga Post Timeskip Infobox.png|250px|Monkey D. Luffy]] <!-- Default -->
 | option2 = First part
 | image2  = [[File:Luffy Right Before Timeskip.png|250px|Monkey D. Luffy]]
}}


First part - Second part Monkey D. Luffy

With missing images:

{{Switch
 | option1 = Second part <!-- Default -->
 | image1  = [[File:Monkey D. Luffy Manga Post Timeskip Infobox.png|250px|Monkey D. Luffy]] <!-- Default -->
 | option2 = First part
 | image2  = 
}}


Visit Template:Switch Infobox/doc to edit this text! (How does this work?) (Refresh this text - why?)
Community content is available under CC-BY-SA unless otherwise noted.