Template:Switch: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<!-- |
|||
<div class="infoboxtabs2">{{#tag:tabber|<!-- |
|||
ACTIVE STYLE 2 |
|||
-->{{{Tab1|Manga}}}=<!-- |
|||
-->'''<span class="_toggle {{{option2|Manga}}}" style="display:none;"><span style="color:black;">{{{option2|Manga}}}</span></span><!-- |
|||
-->{{{1|[[File:Placeholder.png{{!}}200px{{!}}No picture available]]}}}<!-- |
|||
INACTIVE STYLE 2 (DEFAULT) |
|||
-->{{!}}-{{!}}<!-- |
|||
--><span class="_toggle inact2 _toggler_hide-{{{option1|Anime}}} _toggler_hide-inact2 _toggler_show-{{{option2|Manga}}} _toggler_show-inact1">{{{option2|Manga}}}</span> - <!-- |
|||
-->{{{Tab2|Anime}}}=<!-- |
|||
ACTIVE STYLE 1 (DEFAULT) |
|||
-->{{{2|[[File:Placeholder.png{{!}}200px{{!}}No picture available]]}}}<!-- |
|||
--><span class="_toggle {{{option1|Anime}}}"><span style="color:black;">{{{option1|Anime}}}</span></span><!-- |
|||
-->{{#if: {{{3|}}}| {{!}}-{{!}}<!-- |
|||
INACTIVE STYLE 1 |
|||
-->{{{Tab3|OVA}}}=<!-- |
|||
--><span class="_toggle inact1 _toggler_hide-{{{option2|Manga}}} _toggler_hide-inact1 _toggler_show-{{{option1|Anime}}} _toggler_show-inact2" style="display:none;">{{{option1|Anime}}}</span>''' |
|||
-->{{{3|[[File:Placeholder.png{{!}}200px{{!}}No picture available]]}}} }}<!-- |
|||
{{Toggle |
|||
-->{{#if: {{{4|}}}| {{!}}-{{!}}<!-- |
|||
| default = {{#ifeq: {{{image1|{{{1|}}} }}} | <!-- no value --> | [[File:NoPicAvailable.png|250px|No picture available]] | {{{image1|{{{1|}}} }}} }} |
|||
-->{{{Tab4|Film}}}=<!-- |
|||
| <!-- nothing |
|||
-->{{{4|[[File:Placeholder.png{{!}}200px{{!}}No picture available]]}}} }}<!-- |
|||
--> |
-->| var = {{{option1|Anime}}} |
||
}} |
|||
-->{{{Tab5|Fifth}}}=<!-- |
|||
{{Toggle |
|||
-->{{{5|[[File:Placeholder.png{{!}}200px{{!}}No picture available]]}}} }}<!-- |
|||
| <!-- nothing |
|||
-->}}</div><noinclude>[[Category:Templates]]</noinclude> |
|||
-->| sost = {{#ifeq: {{{image2|{{{2|}}} }}} | <!-- no value --> | [[File:NoPicAvailable.png|250px|No picture available]] | {{{image2|{{{2|}}} }}} }} |
|||
| var = {{{option2|Manga}}} |
|||
}}<noinclude> |
|||
{{Documentation}} |
|||
</noinclude> |
Revision as of 23:21, 14 March 2018
Manga - Anime Template:Toggle Template:Toggle
Template Documentation (sometimes hidden or invisible)
Template tools: purge • what links here • what transclude this • subpages |
- Description
This template is used to do create a switch between two images, useful for {{Character Infobox}}.
- Dependencies
This template uses File:NoPicAvailable.png.
- 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 Template:Toggle Template:Toggle
{{Switch | [[File:Jotaro SC Infobox Manga.png|250px|Jotaro Kujo]] <!-- Default --> | [[File:Jotaro SC Infobox Anime.png|250px|Jotaro Kujo]] }}
First part - Second part Template:Toggle Template:Toggle
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]] }}
First part - Second part Template:Toggle Template:Toggle
With missing images:
{{Switch | option1 = Second part <!-- Default --> | image1 = [[File:Jotaro SC Infobox Anime.png|250px|Jotaro Kujo]] <!-- Default --> | option2 = First part | image2 = }}
Visit Template:Switch/doc to edit this text! (How does this work?) (Refresh this text)