Template:Infobox: Difference between revisions

122 bytes added ,  15:47, 26 March 2023
adjustment to allow for explicit definition of items as "Other" universe without adding visual label in infobox or appended universe+type category
(placement param (environment): change indooronly, outdooronly to switch statement, add wateronly)
(adjustment to allow for explicit definition of items as "Other" universe without adding visual label in infobox or appended universe+type category)
Line 5: Line 5:
}}
}}
|-
|-
|colspan=2 id="infobox-image" | {{#if:{{{universe|}}}|<div id="infobox-universe">{{#switch:{{{universe|}}}
|colspan=2 id="infobox-image" | {{#if:{{{universe|}}}|{{#switch:{{{universe|}}}
          |Other=
           |Beauty and the Beast
           |Beauty and the Beast
           |Cars
           |Cars
Line 29: Line 30:
           |Up
           |Up
           |WALL-E
           |WALL-E
           |Wreck-It Ralph=[[File:{{{universe|}}}_light.png{{!}}24px{{!}}link={{{type|}}}#{{{universe|}}}]] [[{{{type|}}}#{{{universe|}}}{{!}}{{{universe|}}}]]
           |Wreck-It Ralph=<div id="infobox-universe">[[File:{{{universe|}}}_light.png{{!}}24px{{!}}link={{{type|}}}#{{{universe|}}}]] [[{{{type|}}}#{{{universe|}}}{{!}}{{{universe|}}}]]</div>[[Category:{{{universe|}}}_{{{type|}}}]]<div style="clear:both;"></div>
           |#default={{{universe|}}}}}[[Category:{{{universe|}}}_{{{type|}}}]]</div><div style="clear:both;"></div>}}{{#if:{{{character|}}}|[[{{{character|}}}#Quests|{{{character|}}} Quest]]<br>|}}{{#if:{{{image_m|}}}|{{#Widget:BodyType}}
           |#default=<div id="infobox-universe">{{{universe|}}}</div>[[Category:{{{universe|}}}_{{{type|}}}]]<div style="clear:both;"></div>}}}}{{#if:{{{character|}}}|[[{{{character|}}}#Quests|{{{character|}}} Quest]]<br>|}}{{#if:{{{image_m|}}}|{{#Widget:BodyType}}
<div class="tab content1">[[File:{{{image}}}|center]]</div>
<div class="tab content1">[[File:{{{image}}}|center]]</div>
<div class="tab content2">[[File:{{{image_m}}}|center]]</div>{{#Widget:BodyTypeEnd}}|{{#if:{{{character|}}}|[[File:{{{character}}}.png|200px|center]]|[[File:{{{image}}}{{#if:{{{width|}}}|{{!}}{{{width|}}}|}}|center]]}}}}
<div class="tab content2">[[File:{{{image_m}}}|center]]</div>{{#Widget:BodyTypeEnd}}|{{#if:{{{character|}}}|[[File:{{{character}}}.png|200px|center]]|[[File:{{{image}}}{{#if:{{{width|}}}|{{!}}{{{width|}}}|}}|center]]}}}}
moderator
26,674

edits