Template:Nav buttons/inner: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<ul>
<div class='nav-button-container' style='color: {{#if:{{{{{theme|}}}}} | {{{text-color|}}} | {{{{{theme|}}}|text-color}} }};'>
{{nav button |image={{{image|}}}              |size={{{size|}}} |text={{{link|}}} |link={{{link|}}}                       }}
{{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image={{{image|}}}              |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }}                | text={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} }}
{{nav button |image=getting_started_button.png |size={{{size|}}} |text=Tutorials   |link=Waterwijzer Module getting started }}
{{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 |image=Overview_button.png        |size={{{size|}}} |text=Overview   |link=Waterwijzer Module overview        }}
{{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=Overview_button.png        |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} overview        | text=Overview                                                           }}
{{nav button |image=theory_button.png          |size={{{size|}}} |text=Theory     |link=Waterwijzer Module theory          }}
{{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=theory_button.png          |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} theory          | text=Theory                                                             }}
{{nav button |image=benchmarks_button.png      |size={{{size|}}} |text=Benchmarks |link=Waterwijzer Module benchmarks      }}
{{nav button |color={{#if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}} }} |image=benchmarks_button.png      |link={{#if:{{{{{theme|}}}}} | {{{link|}}} | {{{{{theme|}}}|mainlink}} }} benchmarks      | text=Benchmarks                                                         }}
</ul>
</div>
</includeonly>
</includeonly><noinclude>
<noinclude>
Example with theme:
Example:
{{Nav buttons/inner
{{Nav buttons
  | image=     Aerius button.png
  | image= waterwijzer100px.png
| link=      {{Aerius theme|mainlink}}
  | link=  Waterwijzer Module
| color=      {{Aerius theme|color}}
| text-color= {{Aerius theme|text-color}}
| theme=      aerius theme
}}
Example without theme:
{{Nav buttons/inner
| image=    Waterwijzer100px.png
  | link=     Waterwijzer Module
  | theme=   
}}
 
Example in nav element:
{{nav
| title=[[Aerius Module]]
| icon=Editor_ribbon_icon_current.png
| buttons=
  {{Nav buttons/inner
  | image=    waterwijzer100px.png
  | link=    Waterwijzer Module
  | color=    {{Aerius theme|color}}
  }}
| theme-color=lightgreen
|
{{nav-group|group=      [[Model attributes (Aerius Overlay)| Aerius Overlay Attributes]] }}
{{nav-group|postappend = &nbsp;(Aerius Overlay) | Attributes | Calculation year | Nox overlay attribute | Nh3 overlay attribute }}
}}
}}


Line 20: Line 44:


* size: Size of the images
* size: Size of the images
* fontsize: Size of the text


Style here:
Style here:
[[MediaWiki:Common.css]]
[[MediaWiki:Common.css]]
</noinclude>
</noinclude>

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