Template:Navbox

From Iron Chariots Wiki
(Difference between revisions)
Jump to: navigation, search
(don't hard-code font point sizes)
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<!--This is a fairly complicated template. Please don't edit without admin permission-->
 
<!--This is a fairly complicated template. Please don't edit without admin permission-->
<!--Navbox master table.-->
+
<!--Navbox Master Table.-->
{| align="center" width="100%" style="border:1px solid grey;" cellpadding="1" cellspacing="1"  
+
<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-->
  
<!--Navbox heading and title information.-->
+
<!--Navbox body information table start-->        
  |-
+
      <table align="left" width="100%" cellpadding="2" cellspacing="3" style="font-size: small;">
  |
+
  {| align="center" width="100%" cellpadding="3" cellspacing="0" style="{{{titlestyle|background: #d6d6ff;}}}"
+
    |-
+
      | align="right" width="56" style="font-size: 8pt;"|[[Template:{{{name}}}|v]] · [[Template_talk:{{{name}}}|d]] · [[Template:{{{name}}}&action=edit|e]]
+
      | align="center" |'''{{{title|{{PAGENAME}}}}}'''
+
      | align="left" width ="56"|<!--Hide-->
+
  |}
+
  
<!--Navbox body information.-->
+
      {{if|test={{{list1|}}}|then=
  |-
+
  <tr>
  |
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group1|}}}'''&nbsp;</td>
  {| align="left" width="100%" cellpadding="2" cellspacing="3" style="font-size: 8pt;"
+
            <td align="left">&nbsp;{{{list1|}}}</td>
 +
  </tr>
 +
      }}
  
    {{if|{{{list1}}}= |then= |else=
+
      {{if|test={{{list2|}}}|then=
    |-
+
  <tr>
      | align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}" |'''{{{group1|}}}'''&nbsp;
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group2|}}}'''&nbsp;</td>
      | align="left" |&nbsp;{{{list1|}}}
+
            <td align="left">&nbsp;{{{list2|}}}</td>
    }}
+
  </tr>
 +
      }}
  
    {{if|{{{list2}}}=|then=|else=
+
      {{if|test={{{list3|}}}|then=
    |-
+
  <tr>
      | align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}" |'''{{{group2|}}}'''&nbsp;
+
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group3|}}}'''&nbsp;</td>
      | align="left" |&nbsp;{{{list12|}}}
+
            <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>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list5|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group5|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list5|}}}</td>
 +
  </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>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list7|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group7|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list7|}}}</td>
 +
  </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>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list9|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group9|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list9|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list10|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group10|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list10|}}}</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>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list13|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group13|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list13|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list14|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group14|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list14|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list15|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group15|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list15|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list16|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group16|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list16|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list17|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group17|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list17|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list18|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group18|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list18|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
 
 +
      {{if|test={{{list19|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group19|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list19|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
      {{if|test={{{list20|}}}|then=
 +
  <tr>
 +
            <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group20|}}}'''&nbsp;</td>
 +
            <td align="left">&nbsp;{{{list20|}}}</td>
 +
  </tr>
 +
      }}
 +
 
 +
 
 +
      </table>
 +
<!--Navbox body information table end-->         
 +
 +
    </td>
 +
   </tr>
 +
</table>
 +
<!--Navbox Master Table end.-->
 +
<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.
 +
 
 +
 
 +
==Example Usage==
 +
<pre>
 +
 
 +
{{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]]''
 +
 
 +
}}
 +
 
 +
</pre>
 +
 
 +
==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>

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