Template:Tweakparamdef: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>;{{#if: {{{icon|}}} | [[File:{{{icon|}}}|22px|class={{#if:{{{noinvert|}}} | | invert }} {{{imgclass}}}]] | }}{{{title|{{{1|Parameter Name}}}}}}: {{{desc|{{{2|Description}}}}}}</includeonly><noinclude> {{Tweakparamdef|icon=Tweak_Speech_Voice_Temp.png}} Use this to provide descriptions for tweak parameters, e.g. what the different Input Action settings do. ==Usage== <code><nowiki>{{tweakparamdef|icon=|noinvert=y|title|desc}}</nowiki></code> * Use <tt>noinvert<...") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>;{{#if: {{{icon|}}} | [[File:{{{icon|}}}|22px|class={{#if:{{{ | <includeonly>;{{#if: {{{icon|}}} | [[File:{{{icon|}}}|22px|class={{#if:{{{imgclass|}}} | {{{imgclass}}} | invert }}]] | }}{{{title|{{{1|Parameter Name}}}}}}: {{{desc|{{{2|Description}}}}}}</includeonly><noinclude> | ||
{{Tweakparamdef|icon=Tweak_Speech_Voice_Temp.png}} | {{Tweakparamdef|icon=Tweak_Speech_Voice_Temp.png}} | ||
In cases where the functions of a tweak's diferent parameters isn't immediately clear (e.g. what the different Input Action settings do), use this to provide descriptions for tweak parameters. | |||
==Usage== | ==Usage== | ||
<code><nowiki>{{tweakparamdef|icon=| | <code><nowiki>{{tweakparamdef|icon=|imgclass=|title|desc}}</nowiki></code> | ||
* Use <tt> | * Use <tt>imgclass</tt> to apply one or more CSS classes to the image, separated by spaces. | ||
** If omitted or left empty, <tt>invert</tt> will be applied by default so that solid black icons appear white in dark mode. | |||
** If you don't want to apply any CSS class to your image, just type <tt>imgclass=n</tt> | |||
* Replace <tt>title</tt> and <tt>desc</tt> with the parameter's in-game title and a description of what it does respectively. | * Replace <tt>title</tt> and <tt>desc</tt> with the parameter's in-game title and a description of what it does respectively. | ||
[[Category: | [[Category:Content box templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 01:31, 12 July 2024
In cases where the functions of a tweak's diferent parameters isn't immediately clear (e.g. what the different Input Action settings do), use this to provide descriptions for tweak parameters.
Usage
{{tweakparamdef|icon=|imgclass=|title|desc}}
- Use imgclass to apply one or more CSS classes to the image, separated by spaces.
- If omitted or left empty, invert will be applied by default so that solid black icons appear white in dark mode.
- If you don't want to apply any CSS class to your image, just type imgclass=n
- Replace title and desc with the parameter's in-game title and a description of what it does respectively.