Template:Nav buttons/inner: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (18 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class='nav-button-container' style='color: {{ #if:{{{{{theme|}}}}} | | {{{{{theme|}}}|text-color}} }};'> | <div class='nav-button-container' style='color: {{#if:{{{{{theme|}}}}} | {{{text-color|}}} | {{{{{theme|}}}|text-color}} }};'> | ||
{{nav button |theme | {{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image={{{image|}}} |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} | text={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} }} | ||
{{nav button |theme | {{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=getting_started_button.png |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} getting started | text=Tutorials }} | ||
{{nav button |theme | {{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=Overview_button.png |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} overview | text=Overview }} | ||
{{nav button |theme | {{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=theory_button.png |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} theory | text=Theory }} | ||
{{nav button |theme | {{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=benchmarks_button.png |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} benchmarks | text=Benchmarks }} | ||
</div> | </div> | ||
</includeonly> | </includeonly><noinclude> | ||
<noinclude> | |||
Example with theme: | Example with theme: | ||
{{Nav buttons | {{Nav buttons/inner | ||
| image= | | image= waterwijzer100px.png | ||
| link= | | link= {{Water theme|mainlink}} | ||
| theme= | | color= {{Water theme|color}} | ||
| text-color= {{Water theme|text-color}} | |||
| theme= water theme | |||
}} | }} | ||
Example without theme: | Example without theme: | ||
{{Nav buttons | {{Nav buttons/inner | ||
| image= waterwijzer100px.png | | image= waterwijzer100px.png | ||
| link= | | link= Water Module | ||
| theme= | | theme= | ||
}} | }} | ||
| Line 24: | Line 25: | ||
Example in nav element: | Example in nav element: | ||
{{nav | {{nav | ||
| title=[[ | | title=[[Water Module]] | ||
| icon=Editor_ribbon_icon_current.png | | icon=Editor_ribbon_icon_current.png | ||
| buttons= | | buttons= | ||
{{Nav buttons | {{Nav buttons/inner | ||
| image= waterwijzer100px.png | | image= waterwijzer100px.png | ||
| link= | | link= Water Module | ||
| | | color= {{Heat theme|color}} | ||
}} | }} | ||
| 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 }} | ||
}} | }} | ||
Latest revision as of 13:01, 5 March 2026
Example with theme:
Example without theme:
Example in nav element:
Parameters:
- image: The image to use for the first button
- link: Main article of the subject matter
- size: Size of the images
- fontsize: Size of the text
Style here: MediaWiki:Common.css




