Template:Nav: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<hr style="margin: 1em 0em; clear: both;" /> | <hr style="margin: 1em 0em; clear: both;" /> | ||
<div class="nav items wide {{#if:{{{theme|}}}|theme-{{{theme|}}}|}}"> | <div class="nav items wide {{ #if:{{{theme|}}} | | {{#if:{{{{{theme|}}}|name}} | theme-{{{{{theme|}}}|name}} | }} }}"> | ||
<div class="box" style="border:1px solid #AAA; | <div class="box" style="border:1px solid #AAA; | ||
border-spacing:0; | border-spacing:0; | ||
Line 8: | Line 8: | ||
margin-left:0px; | margin-left:0px; | ||
width:50em;"> | width:50em;"> | ||
<div class="header heading" style="background-color:{{{theme-color|}}};">{{{title|}}}{{{buttons|}}}</div> | <div class="header heading" style="background-color: {{ #if:{{{{{theme|}}}}} | {{{theme-color|}}} | {{{{{theme|}}}|color}} }};"><!-- | ||
-->{{ #if:{{{{{theme|}}}}} | {{{title|}}} | {{#if: {{{{{theme|}}}|mainlink}} | {{{{{theme|}}}|mainlink}} | {{{{{theme|}}}|name}} }} }}<!-- | |||
-->{{ #if:{{{{{theme|}}}}} | {{{buttons|}}} | {{{{{theme|}}}|buttons}} }} | |||
</div> | |||
<div class="wrapper"> | <div class="wrapper"> | ||
{{{1|}}} | {{{1|}}} | ||
Line 17: | Line 20: | ||
<noinclude> | <noinclude> | ||
Examples: | |||
{{nav | {{nav | ||
| title=[[Aerius Module]] | | title=[[Aerius Module]] | ||
| buttons={{Aerius Module buttons}} | | buttons={{Aerius Module buttons}} | ||
| theme-color= | | theme-color=lightgreen | ||
| | |||
{{nav-group|group= [[Model attributes (Aerius Overlay)| Aerius Overlay Attributes]] }} | |||
{{nav-group|postappend = (Aerius Overlay) | Attributes | Calculation year | Nox overlay attribute | Nh3 overlay attribute }} | |||
}} | |||
{{nav | |||
| theme=aerius-theme | |||
| | | | ||
{{nav-group|group= [[Model attributes (Aerius Overlay)| Aerius Overlay Attributes]] }} | {{nav-group|group= [[Model attributes (Aerius Overlay)| Aerius Overlay Attributes]] }} | ||
Line 36: | Line 48: | ||
* buttons: Consists of a buttons template. Is displayed next to title | * buttons: Consists of a buttons template. Is displayed next to title | ||
* theme: What module, functionality, or other theme this nav belongs to, injected as a class. E.g. Aerius gets class "theme-aerius". | * theme: What module, functionality, or other theme this nav belongs to, injected as a class. E.g. Aerius gets class "theme-aerius". | ||
* theme-color: The color appropriate for the theme. | * theme-color: The color appropriate for the theme, if no theme is directly provided. | ||
</noinclude> | </noinclude> |
Revision as of 06:56, 7 August 2020
This template is a stub.
Examples:
Required parameters:
- title: Can be text or a link
- 1: Content, consisting of Template:nav-group
Optional parameters:
- buttons: Consists of a buttons template. Is displayed next to title
- theme: What module, functionality, or other theme this nav belongs to, injected as a class. E.g. Aerius gets class "theme-aerius".
- theme-color: The color appropriate for the theme, if no theme is directly provided.