Template:Navbox
(testing iron chariots template:if) |
(don't hard-code font point sizes) |
||
| (8 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 | + | <!--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--> | ||
| − | <!--Navbox | + | <!--Navbox body information table start--> |
| − | + | <table align="left" width="100%" cellpadding="2" cellspacing="3" style="font-size: small;"> | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | {{if|test={{{list1|}}}|then= | |
| − | + | <tr> | |
| − | + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group1|}}}''' </td> | |
| − | + | <td align="left"> {{{list1|}}}</td> | |
| + | </tr> | ||
| + | }} | ||
| − | + | {{if|test={{{list2|}}}|then= | |
| − | + | <tr> | |
| − | + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group2|}}}''' </td> | |
| − | + | <td align="left"> {{{list2|}}}</td> | |
| − | + | </tr> | |
| + | }} | ||
| − | + | {{if|test={{{list3|}}}|then= | |
| − | + | <tr> | |
| − | + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group3|}}}''' </td> | |
| − | + | <td align="left"> {{{list3|}}}</td> | |
| − | + | </tr> | |
| + | }} | ||
| − | |} | + | {{if|test={{{list4|}}}|then= |
| − | |} | + | <tr> |
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group4|}}}''' </td> | ||
| + | <td align="left"> {{{list4|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list5|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group5|}}}''' </td> | ||
| + | <td align="left"> {{{list5|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list6|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group6|}}}''' </td> | ||
| + | <td align="left"> {{{list6|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list7|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group7|}}}''' </td> | ||
| + | <td align="left"> {{{list7|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list8|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group8|}}}''' </td> | ||
| + | <td align="left"> {{{list8|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list9|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group9|}}}''' </td> | ||
| + | <td align="left"> {{{list9|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list10|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group10|}}}''' </td> | ||
| + | <td align="left"> {{{list10|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list11|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group11|}}}''' </td> | ||
| + | <td align="left"> {{{list11|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list12|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group12|}}}''' </td> | ||
| + | <td align="left"> {{{list12|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list13|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group13|}}}''' </td> | ||
| + | <td align="left"> {{{list13|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list14|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group14|}}}''' </td> | ||
| + | <td align="left"> {{{list14|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list15|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group15|}}}''' </td> | ||
| + | <td align="left"> {{{list15|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list16|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group16|}}}''' </td> | ||
| + | <td align="left"> {{{list16|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list17|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group17|}}}''' </td> | ||
| + | <td align="left"> {{{list17|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list18|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group18|}}}''' </td> | ||
| + | <td align="left"> {{{list18|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | |||
| + | {{if|test={{{list19|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group19|}}}''' </td> | ||
| + | <td align="left"> {{{list19|}}}</td> | ||
| + | </tr> | ||
| + | }} | ||
| + | |||
| + | {{if|test={{{list20|}}}|then= | ||
| + | <tr> | ||
| + | <td align="right" width="180" style="{{{groupstyle|background: #e7e7ff;}}}">'''{{{group20|}}}''' </td> | ||
| + | <td align="left"> {{{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
|
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.