Template:Theme: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
| 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: | ||
Line 12: | Line 15: | ||
* 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 | * 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