Template:Navbox: Difference between revisions

From Chemical Culture
Jump to navigationJump to search
Content added Content deleted
No edit summary
No edit summary
 
Line 1: Line 1:
{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/>
{{#switch:{{{border|{{{1|}}}}}}|subgroup|child=|none=|#default=<nowiki/>
{{{!}} class="navbox" cellspacing="0" style="{{{bodystyle|}}};{{{style|}}}"
{{{!}} class="navbox" cellspacing="0" style="{{{bodystyle|"font-family:centurygothic"}}};{{{style|"font-family:centurygothic"}}}"
{{!}}-
{{!}}-
{{!}} style="padding:2px;" {{!}} }}
{{!}} style="padding:2px;" {{!}} }}
Line 10: Line 10:
{{!}}- {{#if:{{{titlegroup|}}}|<nowiki/>
{{!}}- {{#if:{{{titlegroup|}}}|<nowiki/>
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}}
{{!}} class="navbox-group" style="{{{basestyle|}}};{{{groupstyle|}}};{{{titlegroupstyle|}}}" {{!}} {{{titlegroup|}}}
! style="border-left:2px solid #fdfdfd;width:100%;|<nowiki/>
! style="border-left:2px solid #fdfdfd;width:100%; "font-family:centurygothic"|<nowiki/>
! 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:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}| {{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}| <div style="float:left; width:6em;text-align:left;"> {{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"> {{{title}}}</span> }}<!--
! 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:{{{name|}}}||{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=1}}}}| {{#ifeq:{{{navbar|}}}|off|{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}| {{#ifeq:{{{state|}}}|plain||<div style="float:left; width:6em;text-align:left;">&nbsp;</div>}}}}| <div style="float:left; width:6em;text-align:left;"> {{Tnavbar|{{{name}}}|fontstyle={{{basestyle|}}};{{{titlestyle|}}};border:none;|mini=1}} </div>{{#ifeq:{{{state|}}}|plain|<div style="float:right;width:6em;">&nbsp;</div>}}}} <span style="font-size:{{#switch:{{{border|{{{1|}}}}}}|subgroup|child|none=100|#default=110}}%;"> {{{title}}}</span> }}<!--


Line 19: Line 19:
{{!}} }}
{{!}} }}
{{!}}-
{{!}}-
{{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}}" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{above}}} }}<!--
{{!}} class="navbox-abovebelow" style="{{{basestyle|}}};{{{abovestyle|}}} font-family:centurygothic" colspan="{{#expr:2{{#if:{{{imageleft|}}}|+1}}{{#if:{{{image|}}}|+1}}}}" {{!}} {{{above}}} }}<!--




Line 27: Line 27:
---First group/list and images---
---First group/list and images---
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<nowiki/>
-->{{#if:{{{list1|}}}|{{#if:{{{title|}}}{{{above|}}}|<nowiki/>
{{!}}- style="height:2px;"
{{!}}- style="height:2px; font-family:centurygothic"
{{!}} }}
{{!}} }}
{{!}}-<!--
{{!}}-<!--

Latest revision as of 18:57, 10 April 2024

Usage

These usage notes will not be included in articles bearing this template.

This is a metatemplate for constructing navigational templates. The format for using this template is as follows:

{{Navbox
| name  = organochlorides
| title = [[Organochlorides|Organochlorides]]
| image = [[File:Neco trilene.png|80px|link=|alt=]]
| imageleft = [[Image:Neco trilene.png|80px]]
| group1 = Chloromethanes
| list1  = [[chloromethane|Methyl Chloride]]{{•}}[[dichloromethane|Methylene Chloride]]{{•}}[[Chloroform]]{{•}}[[Carbon Tetrachloride]]

| group2 = Chloroethanes
| list2  = [[chloroethane|Ethyl Chloride]]{{•}}Dichloroethane ([[dichloroethane I|I]]{{•}}[[dichloroethane II|II]]){{•}}{{•}}Trichloroethanes ([[trichloroethane I|I]]{{•}}[[trichloroethane II|II]]){{•}}Tetrachloroethanes ([[tetrachloroethane I|I]]{{•}}[[tetrachloroethane II|II]]){{•}}[[Pentachloroethane]]{{•}}[[Hexachloroethane]]{{•}}

| group3 = Chloroethylenes
| list3  = [[Vinyl Chloride]]{{•}} Dichloroethylenes ([[Vinylidene Chloride|I]]{{•}}[[dichloroethylene II|II]]){{•}} [[Trichloroethylene]]{{•}} [[Tetrachloroethylene]]

| group4 = Others
| list4  = [[]]{{•}} [[]]{{•}} [[]]{{•}} [[]]

| group5 = From Mixed families
| list5  = [[Chloral]]{{•}}
}}

-Displays: