Template:Tweakparamdef: Difference between revisions

From Imagisphere
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<...")
 
(Replaced "noinvert" with "imgclass")
Line 1: Line 1:
<includeonly>;{{#if: {{{icon|}}} | [[File:{{{icon|}}}|22px|class={{#if:{{{noinvert|}}} | | invert }} {{{imgclass}}}]] | }}{{{title|{{{1|Parameter Name}}}}}}: {{{desc|{{{2|Description}}}}}}</includeonly><noinclude>
<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}}
Use this to provide descriptions for tweak parameters, e.g. what the different Input Action settings do.
Use this to provide descriptions for tweak parameters, e.g. what the different Input Action settings do.
==Usage==
==Usage==
<code><nowiki>{{tweakparamdef|icon=|noinvert=y|title|desc}}</nowiki></code>
<code><nowiki>{{tweakparamdef|icon=|imgclass=|title|desc}}</nowiki></code>
* Use <tt>noinvert</tt> if the parameter's icon isn't just a solid black colour.
* 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:Templates]]
[[Category:Content box templates]]
</noinclude>
</noinclude>

Revision as of 01:18, 19 June 2024

Tweak Speech Voice Temp.pngParameter Name
Description

Use this to provide descriptions for tweak parameters, e.g. what the different Input Action settings do.

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.