Template:Navbox: Difference between revisions

From Open Rail Data Wiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
---Title and Navbar---
<!---Title and Navbar--->
{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|
{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|
<th scope="row" class="navbox-group {{{titlegroupclass|}}}"  
<th scope="row" class="navbox-group {{{titlegroupclass|}}}"  
style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">
style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">
{{{titlegroup|}}}</th><th scope="col" style="border-left:2px solid #fdfdfd;width:100%;|
{{{titlegroup|}}}</th><th scope="col" style="border-left:2px solid #fdfdfd;width:100%;|
<th scope="col" style="}}{{{basestyle|}}};{{{titlestyle|}}}" class="navbox-title"  
<th scope="col" style="}}{{{basestyle|}}};{{{titlestyle|}}}" class="navbox-title"  
colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}}>
colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}}>




Line 11: Line 11:




---Above---
<!---Above--->
{{#if:{{{above|}}}|
{{#if:{{{above|}}}|
{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}
{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}
<tr><td class="navbox-abovebelow {{{aboveclass|}}}" style="{{{basestyle|}}};{{{abovestyle|}}}"  
<tr><td class="navbox-abovebelow {{{aboveclass|}}}" style="{{{basestyle|}}};{{{abovestyle|}}}"  
colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div>
colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}"><div>
{{{above}}}</div></td></tr>}}
{{{above}}}</div></td></tr>}}

Revision as of 19:50, 28 April 2013

{{#if:|{{#if:| <th scope="col" style="border-left:2px solid #fdfdfd;width:100%;|



{{#if:|

{{#if:|}}

{{{above}}}

}}