Template:Switch

From JoJo's Bizarre Encyclopedia - JoJo Wiki
Revision as of 03:16, 15 March 2018 by Vish (talk | contribs)
Jump to navigation Jump to search

Manga - Anime - One-Shot - OVA - Film No picture available

Template Documentation (sometimes hidden or invisible)

Template tools: purgewhat links herewhat transclude thissubpages

Description

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

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

Manga - Anime - One-Shot - OVA - Film Jotaro Kujo

{{Switch
  | [[File:Jotaro SC Infobox Manga.png|250px|Jotaro Kujo]] <!-- Default -->
  | [[File:Jotaro SC Infobox Anime.png|250px|Jotaro Kujo]]
}}


Second part - First part - One-Shot - OVA - Film Jotaro Kujo

With custom options:

{{Switch
 | option1 = Second part <!-- Default -->
 | image1  = [[File:Jotaro SC Infobox Manga.png|250px|Jotaro Kujo]] <!-- Default -->
 | option2 = First part
 | image2  = [[File:Jotaro SC Infobox Anime.png|250px|Jotaro Kujo]]
}}


Second part - First part - One-Shot - OVA - Film Jotaro Kujo

With missing images:

{{Switch
 | option1 = Second part <!-- Default -->
 | image1  = [[File:Jotaro SC Infobox Anime.png|250px|Jotaro Kujo]] <!-- Default -->
 | option2 = First part
 | image2  = 
}}


See Also

Visit Template:Switch/doc to edit this text! (How does this work?) (Refresh this text)