Template:Switch: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary |
No edit summary |
||
Line 17: | Line 17: | ||
--><span class="_toggle inact4 _toggler_hide-{{{option1|Manga}}} _toggler_hide-{{{option2|Anime}}} _toggler_hide-{{{option3|OVA}}} _toggler_hide-inact4 _toggler_show-{{{option4|Film}}} _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3">{{{option4|Film}}}</span>''' |
--><span class="_toggle inact4 _toggler_hide-{{{option1|Manga}}} _toggler_hide-{{{option2|Anime}}} _toggler_hide-{{{option3|OVA}}} _toggler_hide-inact4 _toggler_show-{{{option4|Film}}} _toggler_show-inact1 _toggler_show-inact2 _toggler_show-inact3">{{{option4|Film}}}</span>''' |
||
{{Toggle |
{{Toggle |
||
| default = {{#ifeq: {{{image1|{{{1|}}} }}} | <!-- no value --> | [[File: |
| default = {{#ifeq: {{{image1|{{{1|}}} }}} | <!-- no value --> | [[File:NoPicAvailable.png|250px|No picture available]] | {{{image1|{{{1|}}} }}} }} |
||
| <!-- nothing |
| <!-- nothing |
||
-->| var = {{{option1|Manga}}} |
-->| var = {{{option1|Manga}}} |
||
Line 23: | Line 23: | ||
{{Toggle |
{{Toggle |
||
| <!-- nothing |
| <!-- nothing |
||
-->| sost = {{#ifeq: {{{image2|{{{2|}}} }}} | <!-- no value --> | [[File: |
-->| sost = {{#ifeq: {{{image2|{{{2|}}} }}} | <!-- no value --> | [[File:NoPicAvailable.png|250px|No picture available]] | {{{image2|{{{2|}}} }}} }} |
||
| var = {{{option2|Anime}}} |
| var = {{{option2|Anime}}} |
||
}} |
}} |
||
{{Toggle |
{{Toggle |
||
| <!-- nothing |
| <!-- nothing |
||
-->| sost = {{#ifeq: {{{image3|{{{3|}}} }}} | <!-- no value --> | [[File: |
-->| sost = {{#ifeq: {{{image3|{{{3|}}} }}} | <!-- no value --> | [[File:NoPicAvailable.png|250px|No picture available]] | {{{image3|{{{3|}}} }}} }} |
||
| var = {{{option3|OVA}}} |
| var = {{{option3|OVA}}} |
||
}} |
}} |
||
{{Toggle |
{{Toggle |
||
| <!-- nothing |
| <!-- nothing |
||
-->| sost = {{#ifeq: {{{image4|{{{4|}}} }}} | <!-- no value --> | [[File: |
-->| sost = {{#ifeq: {{{image4|{{{4|}}} }}} | <!-- no value --> | [[File:NoPicAvailable.png|250px|No picture available]] | {{{image4|{{{4|}}} }}} }} |
||
| var = {{{option4|Film}}} |
| var = {{{option4|Film}}} |
||
}}<noinclude> |
}}<noinclude> |
Revision as of 02:43, 15 March 2018
Manga - Anime - OVA - Film Template:Toggle Template:Toggle 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 - OVA - Film Template:Toggle Template:Toggle Template:Toggle Template:Toggle
{{Switch | [[File:Jotaro SC Infobox Manga.png|250px|Jotaro Kujo]] <!-- Default --> | [[File:Jotaro SC Infobox Anime.png|250px|Jotaro Kujo]] }}
Second part - First part - OVA - Film Template:Toggle Template:Toggle 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]] }}
Second part - First part - OVA - Film Template:Toggle Template:Toggle 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)