Template:Theme: Difference between revisions

From Tygron Support wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{</includeonly>{#switch: {{lc:{{{1|}}}}}
{{#switch: {{lc:{{{1|}}}}}
| mainlink={{{mainlink|}}}
| mainlink={{{mainlink|}}}
| name={{{name|}}}
| name={{{name|}}}
| buttons={{{buttons|}}}
| image={{{image|}}}
| buttons={{{{{{1|}}}|}}}
| color={{{color|}}}
| color={{{color|}}}
| textcolor={{{textcolor|}}}
| textcolor={{{textcolor|}}}
}}<noinclude>
}}<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:
Parameters:
* name The name of the theme
* name The name of the theme
* mainlink: The link to the main article 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
* color: The main color of the theme
* textcolor: The text color of the theme
* textcolor: The text color of the theme


</noinclude>
</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