Template:Switch/doc

From JoJo's Bizarre Encyclopedia - JoJo Wiki
< Template:Switch
Revision as of 23:22, 14 March 2018 by Vish (talk | contribs) (Created page with ";Description This template is used to do create a switch for infobox images. ;Dependencies This template uses {{T|!}}, {{T|Switch}} (and its related JS) and the tabber extens...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Description

This template is used to do create a switch for infobox images.

Dependencies

This template uses {{!}}, {{Switch}} (and its related JS) and the tabber extension (Wikia's extension).

Syntax

If pre/post timeskip images:

{{Switch infobox
 | anime pre   = 
 | anime post  = 
 | manga pre   = 
 | manga post  = 
}}

Otherwise:

{{Switch infobox
 | anime       = 
 | manga       = 
}}
Parameters
  • anime pre= the anime pre-tiskip image.
  • anime post= the anime post-tiskip image.
  • manga pre= the manga pre-tiskip image.
  • manga post= the manga post-tiskip image.
  • anime= the anime image, if there is no pre/post timeskip distinction (both in anime and manga)
  • manga= the manga image, if there is no pre/post timeskip distinction (both in anime and manga)
Samples
  • All four kind of images:
{{Switch infobox
  | anime pre   = [[File:Monkey D. Luffy Anime Pre Timeskip Infobox.png|250px]]
  | anime post  = [[File:Monkey D. Luffy Anime Post Timeskip Infobox.png|250px]]
  | manga pre   = [[File:Monkey D. Luffy Manga Pre Timeskip Infobox.png|250px]]
  | manga post  = [[File:Monkey D. Luffy Manga Post Timeskip Infobox.png|250px]]
}}


  • With pre/post timeskip images, but not all:
{{Switch infobox
  | anime pre   = [[File:Monkey D. Luffy Anime Pre Timeskip Infobox.png|250px]]
  | anime post  = 
  | manga pre   = [[File:Monkey D. Luffy Manga Pre Timeskip Infobox.png|250px]]
  | manga post  = [[File:Monkey D. Luffy Manga Post Timeskip Infobox.png|250px]]
}}


  • With only manga pre/post timeskip images (similar case for anime only):
{{Switch infobox
  | anime pre   = 
  | anime post  = 
  | manga pre   = [[File:Monkey D. Luffy Manga Pre Timeskip Infobox.png|250px]]
  | manga post  = [[File:Monkey D. Luffy Manga Post Timeskip Infobox.png|250px]]
}}


  • Without pre/post timeskip images:
{{Switch infobox
  | anime       = [[File:Monkey D. Luffy Anime Post Timeskip Infobox.png|250px]]
  | manga       = [[File:Monkey D. Luffy Manga Post Timeskip Infobox.png|250px]]
}}


See Also