Difference between revisions of "User:Murph/sandbox"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (Change template path to local version)
m (Will subst throw any light on what's broken?)
Line 19: Line 19:
 
|list3 = List3
 
|list3 = List3
 
}}
 
}}
 +
 +
<!--
 +
 +
Please do not edit without discussion first as this is a VERY complex template.
 +
 +
-->{{#switch:|subgroup|child=</div>|none=|#default=<table cellspacing="0" <!--
 +
-->class="navbox" style="border-spacing:0;;"><tr><td style="padding:2px;">}}<!--
 +
 +
--><table cellspacing="0" class="nowraplinks  {{#if:</span><div style="float:right;width:0px;padding:1px;"></div><div style="float:right;width:10em;padding:0em 1em;">&nbsp;</div><span style="font-size:110%;">Titlegroup, group width = 10em, with Centered Title|{{#switch:uncollapsed|<!--
 +
-->plain|off=|#default=mw-collapsible {{#switch:uncollapsed|collapsed=mw-collapsed|#default=uncollapsed}}}}}} {{#switch:|<!--
 +
-->subgroup|child|none=navbox-subgroup" style="border-spacing:0;;|<!--
 +
-->#default=navbox-inner" style="border-spacing:0;background:transparent;color:inherit}};;"><!--
 +
 +
 +
---Title and Navbar---
 +
-->{{#if:</span><div style="float:right;width:0px;padding:1px;"></div><div style="float:right;width:10em;padding:0em 1em;">&nbsp;</div><span style="font-size:110%;">Titlegroup, group width = 10em, with Centered Title|<tr>{{#if:Titlegroup|<!--
 +
--><th scope="row" class="navbox-group " <!--
 +
-->style=";width:10em;;"><!--
 +
-->Titlegroup</th><th scope="col" style="border-left:2px solid #fdfdfd;width:100%;|<!--
 +
--><th scope="col" style="}};width:auto;" class="navbox-title" <!--
 +
-->colspan={{#expr:2{{#if:|+1}}{{#if:[[File:Placeholder.svg|100px]]|+1}}{{#if:Titlegroup|-1}}}}><!--
 +
 +
-->{{#if:{{#switch:|plain|off=1}}<!--
 +
-->{{#if:Navbox/testcases||{{#switch:|subgroup|child|none=1}}}}|<!--
 +
-->{{#ifeq:|off|{{#ifeq:uncollapsed|plain|<span style="float:right;width:6em;">&nbsp;</span>}}|<!--
 +
-->{{#ifeq:uncollapsed|plain||<span style="float:left;width:6em;">&nbsp;</span>}}}}|<!--
 +
-->{{#if:Navbox/testcases|{{Navbar|Navbox/testcases|mini=1|<!--
 +
-->fontstyle=;width:auto;;background:none transparent;border:none;}}|<!--
 +
--><span class="error" style="float:left;white-space:nowrap;">Error: No name provided</span>}}<!--
 +
-->{{#ifeq:uncollapsed|plain|<span style="float:right;width:6em;">&nbsp;</span>}}}}<!--
 +
 +
--><div class="" style="font-size:110%;">
 +
</span><div style="float:right;width:0px;padding:1px;"></div><div style="float:right;width:10em;padding:0em 1em;">&nbsp;</div><span style="font-size:110%;">Titlegroup, group width = 10em, with Centered Title</div></th></tr>}}<!--
 +
 +
 +
---Above---
 +
-->{{#if:Above|<!--
 +
-->{{#if:</span><div style="float:right;width:0px;padding:1px;"></div><div style="float:right;width:10em;padding:0em 1em;">&nbsp;</div><span style="font-size:110%;">Titlegroup, group width = 10em, with Centered Title|<tr style="height:2px;"><td></td></tr>}}<!--
 +
--><tr><td class="navbox-abovebelow " style=";" <!--
 +
-->colspan="{{#expr:2{{#if:|+1}}{{#if:[[File:Placeholder.svg|100px]]|+1}}}}"><div>
 +
Above</div></td></tr>}}<!--
 +
 +
 +
---Body---
 +
 +
---First group/list and images---
 +
-->{{#if:List1, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test|{{#if:</span><div style="float:right;width:0px;padding:1px;"></div><div style="float:right;width:10em;padding:0em 1em;">&nbsp;</div><span style="font-size:110%;">Titlegroup, group width = 10em, with Centered TitleAbove|<tr style="height:2px;"><td></td></tr>}}<tr><!--
 +
 +
-->{{#if:|<!--
 +
--><td class="navbox-image " style="width:0%;padding:0px 2px 0px 0px;" <!--
 +
-->rowspan={{#expr:1{{#if:List2|+2}}{{#if:List3|+2}}{{#if:|+2}}<!--
 +
-->{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}<!--
 +
-->{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}<!--
 +
-->{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}<!--
 +
-->{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}}}><div>
 +
{{{imageleft}}}</div></td>}}<!--
 +
 +
-->{{#if:Group1|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->Group1</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
List1, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test</div></td><!--
 +
 +
-->{{#if:[[File:Placeholder.svg|100px]]|<!--
 +
--><td class="navbox-image " style="width:0%;padding:0px 0px 0px 2px;width:1px;" <!--
 +
-->rowspan={{#expr:1{{#if:List2|+2}}{{#if:List3|+2}}{{#if:|+2}}<!--
 +
-->{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}<!--
 +
-->{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}<!--
 +
-->{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}<!--
 +
-->{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}{{#if:|+2}}}}><div>
 +
[[File:Placeholder.svg|100px]]</div></td>}}<!--
 +
 +
--></tr>}}<!--
 +
 +
 +
---Remaining groups/lists---
 +
 +
-->{{#if:List2|<!--
 +
-->{{#if:</span><div style="float:right;width:0px;padding:1px;"></div><div style="float:right;width:10em;padding:0em 1em;">&nbsp;</div><span style="font-size:110%;">Titlegroup, group width = 10em, with Centered TitleAboveList1, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test|<tr style="height:2px"><td></td></tr>}}<tr><!--
 +
-->{{#if:Group2|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->Group2</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
List2</div></td></tr>}}<!--
 +
 +
-->{{#if:List3|<!--
 +
-->{{#if:</span><div style="float:right;width:0px;padding:1px;"></div><div style="float:right;width:10em;padding:0em 1em;">&nbsp;</div><span style="font-size:110%;">Titlegroup, group width = 10em, with Centered TitleAboveList1, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, testList2|<tr style="height:2px"><td></td></tr>}}<tr><!--
 +
-->{{#if:Group3|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->Group3</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
List3</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group4}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list4}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group5}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list5}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group6}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list6}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group7}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list7}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group8}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list8}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group9}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list9}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group10}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list10}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group11}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list11}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group12}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list12}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group13}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list13}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group14}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list14}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group15}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list15}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group16}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list16}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group17}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list17}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group18}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list18}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group19}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|even|odd}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list19}}}</div></td></tr>}}<!--
 +
 +
-->{{#if:|<!--
 +
--><tr style="height:2px"><td></td></tr><tr><!--
 +
-->{{#if:|<th scope="row" class="navbox-group " <!--
 +
-->style=";{{#if:|width:{{{groupwidth}}};}}width:10em;;"><!--
 +
-->{{{group20}}}</th><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 +
-->{{#if:||width:100%;}}padding:0px;width:auto;;;" <!--
 +
-->class="navbox-list navbox-{{#ifeq:|swap|odd|even}} "><!--
 +
--><div style="padding:0em 0.25em">
 +
{{{list20}}}</div></td></tr>}}<!--
 +
 +
 +
---Below---
 +
-->{{#if:Below|<!--
 +
-->{{#if:</span><div style="float:right;width:0px;padding:1px;"></div><div style="float:right;width:10em;padding:0em 1em;">&nbsp;</div><span style="font-size:110%;">Titlegroup, group width = 10em, with Centered TitleAboveList1, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, test, testList2List3|<tr style="height:2px;"><td></td></tr>}}<!--
 +
--><tr><td class="navbox-abovebelow " style=";" <!--
 +
-->colspan="{{#expr:2{{#if:|+1}}{{#if:[[File:Placeholder.svg|100px]]|+1}}}}"><div>
 +
Below</div></td></tr>}}<!--
 +
 +
 +
--></table>{{#switch:|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!--
 +
 +
-->{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#ifeq:|child||{{#ifeq:|subgroup||{{#switch:{{lc:{{SUBPAGENAME}}}}
 +
|doc
 +
|sandbox
 +
|testcases =
 +
|#default = {{#switch:
 +
  |plainlist
 +
  |hlist
 +
  |hlist hnum
 +
  |hlist vcard
 +
  |vcard hlist =
 +
  |#default = {{#switch:
 +
  |plainlist
 +
  |hlist
 +
  |hlist hnum
 +
  |hlist vcard
 +
  |vcard hlist =
 +
  |#default = {{#ifeq:|no||[[Category:Navigational boxes without horizontal lists]]}}
 +
  }}
 +
  }}
 +
}}
 +
}}}}}}<!--
 +
 +
-->{{#ifeq:{{NAMESPACE}}|{{ns:10}}|{{#switch:{{lc:{{SUBPAGENAME}}}}
 +
|sandbox
 +
|testcases =
 +
|#default = {{#switch:width:auto;
 +
  |padding: 0.25em 0; line-height: 1.3em;
 +
  |padding:0.25em 0; line-height:1.4em; width:auto;
 +
  |padding:0.4em 0; line-height:1.4em; = [[Category:Navigational boxes with custom list spacing]]
 +
  |#default =
 +
}}
 +
}}}}{{template other|{{#if:width:auto;width:10em;|[[Category:Navboxes using background colours]]}}}}

Revision as of 15:30, 30 May 2015