Template:Navbox

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(First tests for wikipedia style lower page navbox)
 
(don't hard-code font point sizes)
 
(13 intermediate revisions by one user not shown)
Line 1: Line 1:
<!--
+
<!--This is a fairly complicated template. Please don't edit without admin permission-->
 +
<!--Navbox Master Table.-->
 +
<table align="center" width="100%" style="{{{borderstyle|border:1px solid grey;" cellpadding="1" cellspacing="1"}}}>
 +
  <tr>
 +
    <td>
 +
   
 +
<!--Navbox heading and title table start-->
 +
    <table align="center" width="100%" cellpadding="3" cellspacing="0" style="{{{titlestyle|background: #d6d6ff;}}}">
 +
          <tr>
 +
        <td align="right" width="56" style="font-size: small;">[[Template:{{{name}}}|v]] · [[Template_talk:{{{name}}}|d]]<!-- · [[Template:{{{name}}}&action=edit|e]]--></td>
 +
            <td align="center">'''{{{title|{{PAGENAME}}}}}'''</td>
 +
            <td align="left" width ="56" style="font-size: small;"><!--Hide--></td>         
 +
</tr>
 +
        </table>
 +
<!--Navbox heading and title table end-->
  
Please do not edit without discussion first as this is a VERY complex template.
+
<!--Navbox body information table start-->       
 +
      <table align="left" width="100%" cellpadding="2" cellspacing="3" style="font-size: small;">
  
-->{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=</div>|none=|#default=<table class="navbox {{{bodyclass|}}}" cellspacing="0" <!--
+
      {{if|test={{{list1|}}}|then=
-->style="{{{bodystyle|}}};{{{style|}}}"><tr><td style="padding:2px;">}}<!--
+
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group1|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list1|}}}</td>
 +
  </tr>
 +
      }}
  
--><table cellspacing="0" class="nowraplinks {{#if:{{{title|}}}|{{#switch:{{{state|}}}|plain|off=|<!--
+
      {{if|test={{{list2|}}}|then=
-->#default=collapsible {{#if:{{{state|}}}|{{{state}}}|autocollapse}}}}}} {{#switch:{{{border|{{{1|}}}}}}|<!--
+
  <tr>
-->subgroup|child|none=navbox-subgroup" style="width:100%;{{{bodystyle|}}};{{{style|}}}|<!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group2|}}}'''&nbsp;</td>
-->#default=" style="width:100%;background:transparent;color:inherit}};{{{innerstyle|}}};"><!--
+
            <td align="left">&nbsp;{{{list2|}}}</td>
 +
  </tr>
 +
      }}
  
 +
      {{if|test={{{list3|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group3|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list3|}}}</td>
 +
  </tr>
 +
      }}
  
 +
      {{if|test={{{list4|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group4|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list4|}}}</td>
 +
  </tr>
 +
      }}
  
---Title and Navbar---
 
-->{{#if:{{{title|}}}|<tr>{{#if:{{{titlegroup|}}}|<!--
 
--><td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}">{{{titlegroup|}}}</td><!--
 
--><th style="border-left:2px solid #fdfdfd;width:100%;|<th style="}}{{{basestyle|}}};{{{titlestyle|}}}" <!--
 
-->colspan={{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}{{#if:{{{titlegroup|}}}|-1}}}} <!--
 
-->class="navbox-title"><!--
 
  
-->{{#if:{{#switch:{{{navbar|}}}|plain|off=1}}<!--
+
      {{if|test={{{list5|}}}|then=
-->{{#if:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}|<!--
+
  <tr>
-->{{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}|<!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group5|}}}'''&nbsp;</td>
-->{{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}|<!--
+
            <td align="left">&nbsp;{{{list5|}}}</td>
--><div style="float:left; width:6em;text-align:left;"><!--
+
  </tr>
-->{{Navbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}}<!--
+
      }}
--></div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}}<!--
+
  
--><span class="{{{titleclass|}}}" style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"><!--
 
-->{{{title}}}</span></th></tr>}}<!--
 
  
 +
      {{if|test={{{list6|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group6|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list6|}}}</td>
 +
  </tr>
 +
      }}
  
  
---Above---
+
      {{if|test={{{list7|}}}|then=
-->{{#if:{{{above|}}}|<!--
+
  <tr>
-->{{#if:{{{title|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group7|}}}'''&nbsp;</td>
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" <!--
+
            <td align="left">&nbsp;{{{list7|}}}</td>
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{above}}}</td></tr>}}<!--
+
  </tr>
 +
      }}
  
  
 +
      {{if|test={{{list8|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group8|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list8|}}}</td>
 +
  </tr>
 +
      }}
  
---Body---
 
  
---First group/list and images---
+
      {{if|test={{{list9|}}}|then=
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<tr style="height:2px;"><td></td></tr>}}<tr><!--
+
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group9|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list9|}}}</td>
 +
  </tr>
 +
      }}
  
-->{{#if:{{{imageleft|}}}|<!--
 
--><td style="width:0%;padding:0px 2px 0px 0px;{{{imageleftstyle|}}}" <!--
 
-->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!--
 
-->{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!--
 
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}<!--
 
-->{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!--
 
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><!--
 
-->{{{imageleft}}}</td>}}<!--
 
  
-->{{#if:{{{group1|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group1style|}}}"><!--
+
      {{if|test={{{list10|}}}|then=
-->{{{group1}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
  <tr>
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list1style|}}}" <!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group10|}}}'''&nbsp;</td>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
+
            <td align="left">&nbsp;{{{list10|}}}</td>
--><div style="padding:{{{list1padding|{{{listpadding|0em 0.25em}}}}}}">
+
  </tr>
{{{list1}}}</div></td><!--
+
      }}
  
-->{{#if:{{{image|}}}|<!--
 
--><td style="width:0%;padding:0px 0px 0px 2px;{{{imagestyle|}}}" <!--
 
-->rowspan={{#expr:1{{#if:{{{list2|}}}|+2}}{{#if:{{{list3|}}}|+2}}{{#if:{{{list4|}}}|+2}}<!--
 
-->{{#if:{{{list5|}}}|+2}}{{#if:{{{list6|}}}|+2}}{{#if:{{{list7|}}}|+2}}{{#if:{{{list8|}}}|+2}}<!--
 
-->{{#if:{{{list9|}}}|+2}}{{#if:{{{list10|}}}|+2}}{{#if:{{{list11|}}}|+2}}{{#if:{{{list12|}}}|+2}}<!--
 
-->{{#if:{{{list13|}}}|+2}}{{#if:{{{list14|}}}|+2}}{{#if:{{{list15|}}}|+2}}{{#if:{{{list16|}}}|+2}}<!--
 
-->{{#if:{{{list17|}}}|+2}}{{#if:{{{list18|}}}|+2}}{{#if:{{{list19|}}}|+2}}{{#if:{{{list20|}}}|+2}}}}><!--
 
-->{{{image}}}</td>}}<!--
 
  
--></tr>}}<!--
+
      {{if|test={{{list11|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group11|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list11|}}}</td>
 +
  </tr>
 +
      }}
  
  
 +
      {{if|test={{{list12|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group12|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list12|}}}</td>
 +
  </tr>
 +
      }}
  
---Remaining groups/lists---
 
  
-->{{#if:{{{list2|}}}|<!--
+
      {{if|test={{{list13|}}}|then=
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
+
  <tr>
-->{{#if:{{{group2|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group2style|}}}"><!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group13|}}}'''&nbsp;</td>
-->{{{group2}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
            <td align="left">&nbsp;{{{list13|}}}</td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list2style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
+
      }}
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list2}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list3|}}}|<!--
 
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}|<tr style="height:2px"><td></td></tr>}}<tr><!--
 
-->{{#if:{{{group3|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group3style|}}}"><!--
 
-->{{{group3}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list3style|}}}" <!--
 
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 
{{{list3}}}</div></td></tr>}}<!--
 
  
-->{{#if:{{{list4|}}}|<!--
+
      {{if|test={{{list14|}}}|then=
--><tr style="height:2px"><td></td></tr><tr><!--
+
  <tr>
-->{{#if:{{{group4|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group4style|}}}"><!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group14|}}}'''&nbsp;</td>
-->{{{group4}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
            <td align="left">&nbsp;{{{list14|}}}</td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list4style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
+
      }}
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list4}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list5|}}}|<!--
 
--><tr style="height:2px"><td></td></tr><tr><!--
 
-->{{#if:{{{group5|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group5style|}}}"><!--
 
-->{{{group5}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list5style|}}}" <!--
 
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 
{{{list5}}}</div></td></tr>}}<!--
 
  
-->{{#if:{{{list6|}}}|<!--
+
      {{if|test={{{list15|}}}|then=
--><tr style="height:2px"><td></td></tr><tr><!--
+
  <tr>
-->{{#if:{{{group6|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group6style|}}}"><!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group15|}}}'''&nbsp;</td>
-->{{{group6}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
            <td align="left">&nbsp;{{{list15|}}}</td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list6style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
+
      }}
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list6}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list7|}}}|<!--
 
--><tr style="height:2px"><td></td></tr><tr><!--
 
-->{{#if:{{{group7|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group7style|}}}"><!--
 
-->{{{group7}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list7style|}}}" <!--
 
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 
{{{list7}}}</div></td></tr>}}<!--
 
  
-->{{#if:{{{list8|}}}|<!--
+
      {{if|test={{{list16|}}}|then=
--><tr style="height:2px"><td></td></tr><tr><!--
+
  <tr>
-->{{#if:{{{group8|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group8style|}}}"><!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group16|}}}'''&nbsp;</td>
-->{{{group8}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
            <td align="left">&nbsp;{{{list16|}}}</td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list8style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
+
      }}
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list8}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list9|}}}|<!--
 
--><tr style="height:2px"><td></td></tr><tr><!--
 
-->{{#if:{{{group9|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group9style|}}}"><!--
 
-->{{{group9}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list9style|}}}" <!--
 
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 
{{{list9}}}</div></td></tr>}}<!--
 
  
-->{{#if:{{{list10|}}}|<!--
+
      {{if|test={{{list17|}}}|then=
--><tr style="height:2px"><td></td></tr><tr><!--
+
  <tr>
-->{{#if:{{{group10|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group10style|}}}"><!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group17|}}}'''&nbsp;</td>
-->{{{group10}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
            <td align="left">&nbsp;{{{list17|}}}</td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list10style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
+
      }}
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list10}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list11|}}}|<!--
 
--><tr style="height:2px"><td></td></tr><tr><!--
 
-->{{#if:{{{group11|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group11style|}}}"><!--
 
-->{{{group11}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list11style|}}}" <!--
 
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 
{{{list11}}}</div></td></tr>}}<!--
 
  
-->{{#if:{{{list12|}}}|<!--
+
      {{if|test={{{list18|}}}|then=
--><tr style="height:2px"><td></td></tr><tr><!--
+
  <tr>
-->{{#if:{{{group12|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group12style|}}}"><!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group18|}}}'''&nbsp;</td>
-->{{{group12}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
            <td align="left">&nbsp;{{{list18|}}}</td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list12style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
+
      }}
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list12}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list13|}}}|<!--
 
--><tr style="height:2px"><td></td></tr><tr><!--
 
-->{{#if:{{{group13|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group13style|}}}"><!--
 
-->{{{group13}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list13style|}}}" <!--
 
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
 
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 
{{{list13}}}</div></td></tr>}}<!--
 
  
-->{{#if:{{{list14|}}}|<!--
+
      {{if|test={{{list19|}}}|then=
--><tr style="height:2px"><td></td></tr><tr><!--
+
  <tr>
-->{{#if:{{{group14|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group14style|}}}"><!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group19|}}}'''&nbsp;</td>
-->{{{group14}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
            <td align="left">&nbsp;{{{list19|}}}</td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list14style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
+
      }}
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list14}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list15|}}}|<!--
+
      {{if|test={{{list20|}}}|then=
--><tr style="height:2px"><td></td></tr><tr><!--
+
  <tr>
-->{{#if:{{{group15|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group15style|}}}"><!--
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group20|}}}'''&nbsp;</td>
-->{{{group15}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
            <td align="left">&nbsp;{{{list20|}}}</td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list15style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
+
      }}
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list15}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list16|}}}|<!--
 
--><tr style="height:2px"><td></td></tr><tr><!--
 
-->{{#if:{{{group16|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group16style|}}}"><!--
 
-->{{{group16}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list16style|}}}" <!--
 
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 
{{{list16}}}</div></td></tr>}}<!--
 
  
-->{{#if:{{{list17|}}}|<!--
+
      </table>
--><tr style="height:2px"><td></td></tr><tr><!--
+
<!--Navbox body information table end-->          
-->{{#if:{{{group17|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group17style|}}}"><!--
+
-->{{{group17}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
    </td>
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list17style|}}}" <!--
+
  </tr>
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
+
</table>
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
<!--Navbox Master Table end.-->
{{{list17}}}</div></td></tr>}}<!--
+
<noinclude>
 +
==Template Overview==
 +
This template is the main Navbox that is [[Template:Formal fallacies | seen at the bottom of wiki page articles]]. There are 20 available category spaces to be defined.
  
-->{{#if:{{{list18|}}}|<!--
 
--><tr style="height:2px"><td></td></tr><tr><!--
 
-->{{#if:{{{group18|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group18style|}}}"><!--
 
-->{{{group18}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
 
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list18style|}}}" <!--
 
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
 
--><div style="padding:{{{listpadding|0em 0.25em}}}">
 
{{{list18}}}</div></td></tr>}}<!--
 
  
-->{{#if:{{{list19|}}}|<!--
+
==Example Usage==
--><tr style="height:2px"><td></td></tr><tr><!--
+
<pre>
-->{{#if:{{{group19|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group19style|}}}"><!--
+
-->{{{group19}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
-->width:100%;padding:0px;{{{liststyle|}}};{{{oddstyle|}}};{{{list19style|}}}" <!--
+
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|even|{{{evenodd|odd}}}}}"><!--
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list19}}}</div></td></tr>}}<!--
+
  
-->{{#if:{{{list20|}}}|<!--
+
{{Navbox|name = Formal fallacies
--><tr style="height:2px"><td></td></tr><tr><!--
+
|borderstyle={{{borderstyle|border:1px solid grey;" cellpadding="1" cellspacing="1"}}}
-->{{#if:{{{group20|}}}|<td class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{group20style|}}}"><!--
+
|titlestyle= background:#DCFFCF;
-->{{{group20}}}</td><td style="text-align:left;border-left-width:2px;border-left-style:solid;|<td colspan=2 style="}}<!--
+
|title=[[Formal fallacies]]
-->width:100%;padding:0px;{{{liststyle|}}};{{{evenstyle|}}};{{{list20style|}}}" <!--
+
|groupstyle= background:#E9FFDA;
-->class="navbox-list navbox-{{#ifeq:{{{evenodd|}}}|swap|odd|{{{evenodd|even}}}}}"><!--
+
--><div style="padding:{{{listpadding|0em 0.25em}}}">
+
{{{list20}}}</div></td></tr>}}<!--
+
  
 +
|group1=Propositional logic
 +
|list1=''[[Affirming a disjunct]]'' · ''[[Affirming the consequent]]'' · ''[[Argument from fallacy]]'' · ''[[False dilemma]]' · ''[[Argument from fallacy]]''
  
---Below---
+
|group2=Quantificational logic
-->{{#if:{{{below|}}}|<!--
+
|list2=''[[Existential fallacy]]'' · ''[[Illicit Conversion]]'' · ''[[Proof by example]]'' · ''[[Quantifier shift]]''
-->{{#if:{{{title|}}}{{{above|}}}{{{list1|}}}{{{list2|}}}{{{list3|}}}|<tr style="height:2px;"><td></td></tr>}}<!--
+
--><tr><td class="navbox-abovebelow" style="{{{basestyle|}}};{{{belowstyle|}}}" <!--
+
-->colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}">{{{below}}}</td></tr>}}<!--
+
  
  
--></table>{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=<div>|none=|#default=</td></tr></table>}}<!--
+
|group3=Syllogistic
 +
|list3=''[[Affirmative conclusion from a negative premise]]'' · ''[[Exclusive premises]]'' · ''[[Necessity]]'' · ''[[Four-term Fallacy]]'' · ''[[Illicit major]]'' · ''[[Illicit minor]]'' · ''[[Undistributed middle]]''
  
--><noinclude>
+
}}
  
Originally from [[http://en.wikipedia.org/wiki/Template:Navbox Wikipedia]].
+
</pre>
  
Currently in Constriction/Testing phase
+
==Variable Usesage==
 +
===Header Variables===
 +
'''name=''' ''It is important this variable perfectly mirrors the template name for the links in the top left of the title bar to function correctly.''
  
 +
'''boarderstyle=''' ''Variable is for switching the css outer boarder on/off when the Navbox is nested in a lager [[Template:Navboxsimple|Navboxsimple]]. Defualt is on.''
 +
 +
'''titlestyle=''' ''Variable controls the css colour and text style for the title bar. Default background colour is set to #d6d6ff.''
 +
 +
'''title=''' ''This is the title for the Navbox displayed in the title bar.''
 +
 +
'''groupstyle=''' ''Variable controls the css colour and text style for the group segments. Default background colour is set to #e7e7ff.''
 +
 +
 +
===Body Variables===
 +
'''group1=''' ''Name of the first group category on the left and side. This may be defined as a link.''
 +
 +
'''list1=''' ''List of articles to go in this category. Wiki text formatting should be done in this variable.''
 +
 +
 +
'''group2=''' ''Name of the second group category on the left and side. This may be defined as a link.''
 +
 +
'''list2=''' ''List of articles to go in this category. Wiki text formatting should be done in this variable.''
 +
 +
 +
'''Repeat for the desired number of categories.'''
 
</noinclude>
 
</noinclude>

Latest revision as of 16:53, 23 May 2010

[[Template:{{{name}}}|v]] · [[Template_talk:{{{name}}}|d]] Navbox

Contents

Template Overview

This template is the main Navbox that is seen at the bottom of wiki page articles. There are 20 available category spaces to be defined.


Example Usage


{{Navbox|name = Formal fallacies
|borderstyle={{{borderstyle|border:1px solid grey;" cellpadding="1" cellspacing="1"}}}
|titlestyle= background:#DCFFCF;
|title=[[Formal fallacies]]
|groupstyle= background:#E9FFDA;

|group1=Propositional logic
|list1=''[[Affirming a disjunct]]'' · ''[[Affirming the consequent]]'' · ''[[Argument from fallacy]]'' · ''[[False dilemma]]' · ''[[Argument from fallacy]]''

|group2=Quantificational logic
|list2=''[[Existential fallacy]]'' · ''[[Illicit Conversion]]'' · ''[[Proof by example]]'' · ''[[Quantifier shift]]''


|group3=Syllogistic
|list3=''[[Affirmative conclusion from a negative premise]]'' · ''[[Exclusive premises]]'' · ''[[Necessity]]'' · ''[[Four-term Fallacy]]'' · ''[[Illicit major]]'' · ''[[Illicit minor]]'' · ''[[Undistributed middle]]''

}}

Variable Usesage

Header Variables

name= It is important this variable perfectly mirrors the template name for the links in the top left of the title bar to function correctly.

boarderstyle= Variable is for switching the css outer boarder on/off when the Navbox is nested in a lager Navboxsimple. Defualt is on.

titlestyle= Variable controls the css colour and text style for the title bar. Default background colour is set to #d6d6ff.

title= This is the title for the Navbox displayed in the title bar.

groupstyle= Variable controls the css colour and text style for the group segments. Default background colour is set to #e7e7ff.


Body Variables

group1= Name of the first group category on the left and side. This may be defined as a link.

list1= List of articles to go in this category. Wiki text formatting should be done in this variable.


group2= Name of the second group category on the left and side. This may be defined as a link.

list2= List of articles to go in this category. Wiki text formatting should be done in this variable.


Repeat for the desired number of categories.

Personal tools
Namespaces
Variants
Actions
wiki navigation
IronChariots.Org
Toolbox