Template:Theme: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
(Created page with "{{#switch: {{lc:{{{1|}}}}} | mainlink={{{mainlink|}}} | name={{{name|}}} | buttons={{{buttons|}}} | color={{{color|}}} | textcolor={{{textcolor|}}} }}")
 
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
| mainlink={{{mainlink|}}}
| mainlink={{{mainlink|}}}
| name={{{name|}}}
| name={{{name|}}}
| buttons={{{buttons|}}}
| image={{{image|}}}
| buttons={{{{{{1|}}}|}}}
| color={{{color|}}}
| color={{{color|}}}
| textcolor={{{textcolor|}}}
| textcolor={{{textcolor|}}}
}}
}}<noinclude>
Standardized parameters for a specific theme (part of the software, a specific module, etc). This allows multiple navigation blocks, button templates, and other templates with styling to be consistent in their display.
 
The output of a theme template without a parameter must be empty, because templates which can be provided with a theme will check whether the provided theme is valid by checking whether it results in an empty output (if the page does not exist, default mediawiki behavior is to print a link to the template.)
 
Parameters:
* name The name of the theme
* mainlink: The link to the main article of the theme
* image: The main image/logo of the theme
* buttons: The name of the template which has this module's nav buttons. Note that it must be the name of the template, not a transclusion of the template. ("this", not "<nowiki>{{this}}</nowiki>").
* color: The main color of the theme
* textcolor: The text color of the theme
 
</noinclude>

Latest revision as of 15:22, 15 December 2020

Standardized parameters for a specific theme (part of the software, a specific module, etc). This allows multiple navigation blocks, button templates, and other templates with styling to be consistent in their display.

The output of a theme template without a parameter must be empty, because templates which can be provided with a theme will check whether the provided theme is valid by checking whether it results in an empty output (if the page does not exist, default mediawiki behavior is to print a link to the template.)

Parameters:

  • name The name of the theme
  • mainlink: The link to the main article of the theme
  • image: The main image/logo of the theme
  • buttons: The name of the template which has this module's nav buttons. Note that it must be the name of the template, not a transclusion of the template. ("this", not "{{this}}").
  • color: The main color of the theme
  • textcolor: The text color of the theme