Template:Nav buttons/inner: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<div class='nav-button-container' style='color: {{ #if:{{{text-color|}}} | {{{text-color | <div class='nav-button-container' style='color: {{#if:{{{{{theme|}}}}} | {{{text-color|}}} | {{{{{theme|}}}|text-color}} }};'> | ||
{{nav button |color={{{color|}}} |image={{{image|}}} | | {{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image={{{image|}}} |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} | text={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} }} | ||
{{nav button |color={{{color|}}} |image=getting_started_button.png | | {{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 |color={{{color|}}} |image=Overview_button.png | | {{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=Overview_button.png |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} overview | text=Overview }} | ||
{{nav button |color={{{color|}}} |image=theory_button.png | | {{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=theory_button.png |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} theory | text=Theory }} | ||
{{nav button |color={{{color|}}} |image=benchmarks_button.png | | {{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/inner | {{Nav buttons/inner | ||
Line 19: | Line 18: | ||
Example without theme: | Example without theme: | ||
{{Nav buttons/inner | {{Nav buttons/inner | ||
| image= | | image= Waterwijzer100px.png | ||
| link= Waterwijzer Module | | link= Waterwijzer Module | ||
| theme= | | theme= | ||
}} | }} |
Latest revision as of 14:36, 15 December 2020
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