Template:Coin infobox: Difference between revisions

m
Made it possible to expand and collapse the 'found in' tab (just for the blue coin probably). The collapsing is copied from object_infobox
m (Added some line breaks (<br>))
m (Made it possible to expand and collapse the 'found in' tab (just for the blue coin probably). The collapsing is copied from object_infobox)
Line 55: Line 55:
{{!}}-}}
{{!}}-}}
|-
|-
{{#if:{{{foundIn|}}}|{{!}}align="center" colspan="2" bgcolor="#10274c" style="font-size:125%;" {{!}} '''<span style="color:white;">Found in</span>'''
{{#if:{{{foundIn|}}}|
{{!}} colspan="2" style="padding:0" {{!}}
{{{!}} class="mw-collapsible mw-expanded" width="100%" style="background: ghostwhite; text-align:left;" border="0" cellpadding="0" cellspacing="0"
! style="background:{{{secbg|#c5ced6}}}; padding:2px;" {{!}} Found In
{{!}}-
{{!}} style="padding:0 2px;" {{!}} {{{foundIn}}}
{{!}}}
|}}
|}}
|-
{{#if: {{{foundIn|}}} |
{{!}} {{{foundIn}}}
{{!}}-}}
|-
|-
{{#if:{{{related|}}}|{{!}}align="left" colspan="2" bgcolor="#c5ced6" style="font-size:100%;" {{!}} '''<span style=color:black;">Related</span>'''
{{#if:{{{related|}}}|{{!}}align="left" colspan="2" bgcolor="#c5ced6" style="font-size:100%;" {{!}} '''<span style=color:black;">Related</span>'''
Line 83: Line 85:
|height=64
|height=64
|offset=0
|offset=0
|foundIn=[[All Courses]],<br>[[The Castle]]
|foundIn=[[All Courses]]<br>[[The Castle]]
|related=[[Red Coin]]s,<br>[[Blue Coin]]s
|related=[[Red Coin|Red]] and [[Blue Coin]]s
}}
}}
<div style="float:right"><pre>{{Coin_infobox
<div style="float:right"><pre>{{Coin_infobox
113

edits