Template:Nav buttons: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
(Rudolf@tygron.nl moved page Template:Nav buttons to Template:Nav buttons/inner: Allow rendering without providing theme reference to prevent template loops)
 
No edit summary
Line 1: Line 1:
#REDIRECT [[Template:Nav buttons/inner]]
<includeonly>{{nav buttons/inner
| image=      {{{image|}}}     
| link=      {{{link|}}}       
| color=      {{    #if:{{{{{theme|}}}}} | {{{color|}}} | {{{{{theme|}}}|color}}    }}
| text-color= {{    #if:{{{{{theme|}}}}} | {{{text-color|}}} | {{{{{theme|}}}|text-color}}    }}
}}</includeonly><noinclude>
Example with theme:
{{Nav buttons
| image=      Aerius button.png
| link=      Aerius Module
| color=      {{Aerius theme|color}}
| text-color= {{Aerius theme|text-color}}
| theme=      aerius theme
}}
Example without theme:
{{Nav buttons
| image=    waterwijzer100px.png
| link=    Waterwijzer Module
|
| theme=   
}}
 
Example in nav element:
{{nav
| title=[[Aerius Module]]
| icon=Editor_ribbon_icon_current.png
| buttons=
  {{Nav buttons
  | 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 }}
}}
 
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]]
</noinclude>

Revision as of 11:18, 14 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