Template:Switch infobox/doc

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

This template uses Switch and the tabber extension (Wikia's extension).
 * Dependencies

Following conversion of Char Box to portable infobox code, the selection of images became entirely automated. The practical effect of this switch is that you can no longer manually chose images as the rest of this documentation seems to suggest. However, the old documentation is retained below because it gives a good idea of how the template works behind the scenes. It also shows you how you should name your images in order for them to be parsed correctly by Char Box.
 * Portable infobox notes

To verify that this template is still working properly, go to the actual Monkey D. Luffy page and take a look. Or go to any page that uses the CharBox template.

If pre/post timeskip images:
 * Syntax

Otherwise:


 * 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
 * A character with all four kind of images:

gives:


 * A character with pre/post timeskip images, but not all:

gives:


 * A character with only manga pre/post timeskip images (similar case for anime only):

gives:


 * A characters without pre/post timeskip images:

gives:


 * See Also
 * Switch.
 * Help:Tabber