Template:Nav: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (9 intermediate revisions by 2 users not shown) | |||
| Line 9: | Line 9: | ||
<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:{{#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}} | <span>[[{{{{{theme|}}}|mainlink}}]]</span> | {{#if:{{{{{theme|}}}|name}}|<span>{{{{{theme|}}}|name}}</span>|}} }} }}<!-- | ||
-->{{ #if:{{{{{theme|}}}}} | {{{buttons|}}} | | -->{{ #if:{{{{{theme|}}}}} | {{{buttons|}}} | {{#if:{{{{{theme|}}}|buttons}}|{{ {{{{{theme|}}}|buttons}} }}|{{{buttons|}}} }} | ||
}} | }} | ||
</div> | </div> | ||
| Line 19: | Line 18: | ||
</div> | </div> | ||
</div> | </div> | ||
</div><noinclude> | </div> | ||
{{#if:{{{category|}}}|[[Category:{{{category|}}}]]|}} | |||
<noinclude> | |||
</noinclude>{{Template-category|Navigation}}<noinclude> | </noinclude>{{Template-category|Navigation}}<noinclude> | ||
Examples: | Examples: | ||
{{nav | {{nav | ||
| title=[[ | | title=[[Water Module]] | ||
| icon=Editor_ribbon_icon_current.png | | icon=Editor_ribbon_icon_current.png | ||
| buttons={{ | | buttons={{Water Module buttons}} | ||
| theme-color=lightgreen | | theme-color=lightgreen | ||
| | | | ||
{{nav-group|group= [[Model attributes ( | {{nav-group|group= [[Model attributes (Water Overlay)| Water Overlay Attributes]] }} | ||
{{nav-group|postappend = ( | {{nav-group|postappend = (Water Overlay) | Attributes | Timeframes | Timeframe times}} | ||
}} | }} | ||
{{nav | {{nav | ||
| theme= | | theme=water theme | ||
| | | | ||
{{nav-group|group= [[Model attributes ( | {{nav-group|group= [[Model attributes (Water Overlay)| Water Overlay Attributes]] }} | ||
{{nav-group|postappend = ( | {{nav-group|postappend = (Water Overlay) | Attributes | Timeframes | Timeframe times }} | ||
| Line 44: | Line 45: | ||
Parameters for predefined theme: | Parameters for predefined theme: | ||
* theme (required): Theming, consisting of "[[Template:theme]]". Injects color, main link, and a theme class E.g. | * theme (required): Theming, consisting of "[[Template:theme]]". Injects color, main link, and a theme class E.g. Water gets class "theme-water". | ||
* 1 (required): Content, consisting of "[[Template:nav-group]]"s. | * 1 (required): Content, consisting of "[[Template:nav-group]]"s. | ||
Latest revision as of 12:30, 5 March 2026
Examples:
Parameters for predefined theme:
- theme (required): Theming, consisting of "Template:theme". Injects color, main link, and a theme class E.g. Water gets class "theme-water".
- 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.




