Template:Navbox
(don't hard-code font point sizes) |
|||
| Line 8: | Line 8: | ||
<table align="center" width="100%" cellpadding="3" cellspacing="0" style="{{{titlestyle|background: #d6d6ff;}}}"> | <table align="center" width="100%" cellpadding="3" cellspacing="0" style="{{{titlestyle|background: #d6d6ff;}}}"> | ||
<tr> | <tr> | ||
| − | <td align="right" width="56" style="font-size: | + | <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="center">'''{{{title|{{PAGENAME}}}}}'''</td> | ||
| − | <td align="left" width ="56" style="font-size: | + | <td align="left" width ="56" style="font-size: small;"><!--Hide--></td> |
</tr> | </tr> | ||
</table> | </table> | ||
| Line 16: | Line 16: | ||
<!--Navbox body information table start--> | <!--Navbox body information table start--> | ||
| − | <table align="left" width="100%" cellpadding="2" cellspacing="3" style="font-size: | + | <table align="left" width="100%" cellpadding="2" cellspacing="3" style="font-size: small;"> |
{{if|test={{{list1|}}}|then= | {{if|test={{{list1|}}}|then= | ||
Latest revision as of 16:53, 23 May 2010
|
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.