Template:Nav: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 10: Line 10:
         -->{{    #if:{{#if:{{{{{theme|}}}}}|{{{icon|}}}|{{{{{theme|}}}|icon}}}}|[[File:{{  #if:{{{{{theme|}}}}}|{{{icon|}}}|{{{{{theme|}}}|icon}}}}  ]]|}}<!--
         -->{{    #if:{{#if:{{{{{theme|}}}}}|{{{icon|}}}|{{{{{theme|}}}|icon}}}}|[[File:{{  #if:{{{{{theme|}}}}}|{{{icon|}}}|{{{{{theme|}}}|icon}}}}  ]]|}}<!--
         -->{{    #if:{{{{{theme|}}}}}    |    {{#if:{{{title|}}}|<span>{{{title|}}}</span>|}}    |    {{#if: {{{{{theme|}}}|mainlink}} | [[{{{{{theme|}}}|mainlink}}]] | {{#if:{{{{{theme|}}}|name}}|<span>{{{{{theme|}}}|name}}</span>|}} }}    }}<!--
         -->{{    #if:{{{{{theme|}}}}}    |    {{#if:{{{title|}}}|<span>{{{title|}}}</span>|}}    |    {{#if: {{{{{theme|}}}|mainlink}} | [[{{{{{theme|}}}|mainlink}}]] | {{#if:{{{{{theme|}}}|name}}|<span>{{{{{theme|}}}|name}}</span>|}} }}    }}<!--
         -->{{    #if:{{{{{theme|}}}}} | {{{buttons|}}} | {{nav buttons/inner | image= {{{{{theme|}}}|image}}         | link= {{{{{theme|}}}|mainlink}}         | color=       {{{{{theme|}}}|color}}   | text-color= {{{{{theme|}}}|text-color}}  }} }}
         -->{{    #if:{{{{{theme|}}}}} | {{{buttons|}}} |  
              {{nav buttons/inner | image= {{{{{theme|}}}|image}} | link= {{{{{theme|}}}|mainlink}} | color= {{{{{theme|}}}|color}} | text-color= {{{{{theme|}}}|text-color}}  }}
          }}
       </div>
       </div>
       <div class="wrapper">
       <div class="wrapper">

Revision as of 11:54, 14 December 2020


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.