Template:Nav: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(29 intermediate revisions by one other user not shown)
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}} | {{lc: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 6: Line 6:
     min-height:60px;
     min-height:60px;
     position:relative;
     position:relative;
    margin-left:0px;
     width:50em;">
     width:50em;">
       <!--{{{header|<div class="header heading" style="background-color:{{{theme-color|}}};">{{{title|[[Overlay]]}}}</div> }}}-->
       <div class="header heading" style="background-color: {{ #if:{{{{{theme|}}}}} | {{{theme-color|}}} | {{{{{theme|}}}|color}}  }};"><!--
      <div class="header heading">{{Aerius_Module_buttons}}</div>
        -->{{    #if:{{#if:{{{{{theme|}}}}}|{{{icon|}}}|{{{{{theme|}}}|icon}}}}|[[File:{{  #if:{{{{{theme|}}}}}|{{{icon|}}}|{{{{{theme|}}}|icon}}}}  ]]|}}<!--
        -->{{    #if:{{{{{theme|}}}}}    |    {{#if:{{{title|}}}|<span>{{{title|}}}</span>|}}    |    {{#if: {{{{{theme|}}}|mainlink}} | <span>[[{{{{{theme|}}}|mainlink}}]]</span> | {{#if:{{{{{theme|}}}|name}}|<span>{{{{{theme|}}}|name}}</span>|}} }}   }}<!--
        -->{{   #if:{{{{{theme|}}}}} | {{{buttons|}}} | {{#if:{{{{{theme|}}}|buttons}}|{{ {{{{{theme|}}}|buttons}} }}|{{{buttons|}}} }}   
          }}
      </div>
       <div class="wrapper">
       <div class="wrapper">
        {{{1|}}}
        {{clear}}
       </div>
       </div>
   </div>
   </div>
</div><noinclude>{{stub|type=template}}</noinclude>
</div>
{{#if:{{{category|}}}|[[Category:{{{category|}}}]]|}}
<noinclude>
</noinclude>{{Template-category|Navigation}}<noinclude>


<noinclude>
Examples:
Required parameters:
{{nav
* title: Can be text or a link
| title=[[Aerius Module]]
* heading: Consists of [[Template:nav-heading]] template, replaces title
| icon=Editor_ribbon_icon_current.png
* 1: Content, consisting of [[Template:nav-group]]
| buttons={{Aerius Module buttons}}
| theme-color=lightgreen
|
{{nav-group|group=      [[Model attributes (Aerius Overlay)| Aerius Overlay Attributes]] }}
{{nav-group|postappend = &nbsp;(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|postappend = &nbsp;(Aerius Overlay) | Attributes | Calculation year | Nox overlay attribute | Nh3 overlay attribute }}
 
 
}}
 
Parameters for predefined theme:
* theme (required): Theming, consisting of "[[Template:theme]]". Injects color, main link, and a theme class E.g. Aerius gets class "theme-aerius".
* 1 (required): Content, consisting of "[[Template:nav-group]]"s.
 
Parameters without theme:
* title (required): Can be text or a link.
* 1 (required): Content, consisting of "[[Template:nav-group]]"s.


Optional parameters:
* buttons (optional): 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 (optional): The color appropriate for the theme, if no theme is directly provided.
* theme-color: The color appropriate for the theme.
</noinclude>
</noinclude>

Latest revision as of 17:03, 30 January 2024


Examples:



Parameters for predefined theme:

  • theme (required): Theming, consisting of "Template:theme". Injects color, main link, and a theme class E.g. Aerius gets class "theme-aerius".
  • 1 (required): Content, consisting of "Template:nav-group"s.

Parameters without theme:

  • title (required): Can be text or a link.
  • 1 (required): Content, consisting of "Template:nav-group"s.
  • buttons (optional): Consists of a buttons template. Is displayed next to title
  • theme-color (optional): The color appropriate for the theme, if no theme is directly provided.