Template:Nav: Difference between revisions

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


Examples:
Examples:
{{nav
{{nav
| title=[[Aerius Module]]
| title=[[Aerius Module]]
| icon=Editor_ribbon_icon_current.png
| buttons={{Aerius Module buttons}}
| buttons={{Aerius Module buttons}}
| theme-color=lightgreen
| theme-color=lightgreen
Line 35: Line 36:
}}
}}
{{nav
{{nav
| theme=aerius-theme
| theme=aerius theme
|
|
{{nav-group|group=      [[Model attributes (Aerius Overlay)| Aerius Overlay Attributes]] }}
{{nav-group|group=      [[Model attributes (Aerius Overlay)| Aerius Overlay Attributes]] }}
Line 44: Line 45:


Parameters for predefined theme:
Parameters for predefined theme:
* theme (required): Theming, consisting of [[Template:theme]]s. Injects color, main link, and a theme class E.g. Aerius gets class "theme-aerius".
* 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.
* 1 (required): Content, consisting of "[[Template:nav-group]]"s.


Parameters without theme:
Parameters without theme:
* title (required): Can be text or a link.
* title (required): Can be text or a link.
* 1 (required): Content, consisting of [[Template:nav-group]]s.
* 1 (required): Content, consisting of "[[Template:nav-group]]"s.


* buttons (optional): Consists of a buttons template. Is displayed next to title
* 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.
* theme-color (optional): The color appropriate for the theme, if no theme is directly provided.
</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.