Template:Nav buttons: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by one other user not shown)
Line 35: Line 35:
Example with theme:
Example with theme:
{{Nav buttons
{{Nav buttons
  | theme=      aerius theme
  | theme=      water theme
}}
}}
Example without theme/color:
Example without theme/color:
{{Nav buttons
{{Nav buttons
  | image=    waterwijzer100px.png
  | image=    waterwijzer100px.png
  | link=    Waterwijzer Module
  | link=    Water Module
  |
  |
  | theme=     
  | theme=     
Line 47: Line 47:
Example in nav element:
Example in nav element:
{{nav
{{nav
| title=[[Aerius Module]]
| title=[[Water Module]]
| icon=Editor_ribbon_icon_current.png
| icon=Editor_ribbon_icon_current.png
| buttons=
| buttons=
   {{Nav buttons
   {{Nav buttons
   | image=    waterwijzer100px.png
   | image=    waterwijzer100px.png
   | link=    Waterwijzer Module
   | link=    Water Module
   | color=    {{Aerius theme|color}}
   | color=    {{Water theme|color}}
   }}
   }}
| theme-color=lightgreen
| theme-color=lightgreen
|
|
{{nav-group|group=      [[Model attributes (Aerius Overlay)| Aerius Overlay Attributes]] }}
{{nav-group|group=      [[Model attributes (Water Overlay)| Water Overlay Attributes]] }}
{{nav-group|postappend =  (Aerius Overlay) | Attributes | Calculation year | Nox overlay attribute | Nh3 overlay attribute }}
{{nav-group|postappend =  (Water Overlay) | Attributes | Timeframes | Timeframe times }}
}}
}}


Line 78: Line 78:
** text: Main article of the subject matter
** text: Main article of the subject matter


Style here:
General style here (note that part of the style should be overwrite-able by parameters):
[[MediaWiki:Common.css]]
[[MediaWiki:Common.css]]
</noinclude>
</noinclude>

Latest revision as of 12:59, 5 March 2026

Example with theme:

Example without theme/color:


Example in nav element:


This template can either be used with a theme, or with manual configuration. The following buttons are created:

  • A main button, linking to "[link]"
  • A tutorials button, linking to "[link] getting started"
  • A overview button, linking to "[link] overview"
  • A theory button, linking to "[link] theory"
  • A benchmarks button, linking to "[link] benchmarks"

Parameters:

  • With a theme:
    • theme: the theme template to use
  • Without a theme:
    • image: The image to use for the first button
    • link: Main article of the subject matter
    • color: Main article of the subject matter
    • text: Main article of the subject matter

General style here (note that part of the style should be overwrite-able by parameters): MediaWiki:Common.css