Template:Tweakparam: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(Renamed "text" parameter to "title")
(Added "notext" parameter)
Line 2: Line 2:
-->{{#if: {{{icon|}}} | [[File:{{{icon}}}|22px|class={{#if: {{{noinvert|}}} | | invert }} {{{imgclass}}}|{{#if: {{{link|}}} | link={{{link}}} | }} {{{title|{{{1|}}}}}}]] | }}<!--
-->{{#if: {{{icon|}}} | [[File:{{{icon}}}|22px|class={{#if: {{{noinvert|}}} | | invert }} {{{imgclass}}}|{{#if: {{{link|}}} | link={{{link}}} | }} {{{title|{{{1|}}}}}}]] | }}<!--
-->{{#if: {{{link|}}} | [[{{{link}}}{{#if:{{{title|{{{1|}}}}}} | {{!}}{{{title|{{{1}}}}}} | }}]] <!--
-->{{#if: {{{link|}}} | [[{{{link}}}{{#if:{{{title|{{{1|}}}}}} | {{!}}{{{title|{{{1}}}}}} | }}]] <!--
-->| {{{title|{{{1}}}}}} }}<!--
-->|{{#if:{{{notext|}}} | | {{{title|{{{1}}}}}} }} }}<!--
--> {{#if: {{{last|}}} |  | •‎ }}<!--
--> {{#if: {{{last|}}} |  | •‎ }}<!--
--></div></includeonly><noinclude>
--></div></includeonly><noinclude>
Line 12: Line 12:
{{tweakparam|title=Parameter}}
{{tweakparam|title=Parameter}}
{{tweakparam|link=LittleBigPlanet|Parameter with link}}
{{tweakparam|link=LittleBigPlanet|Parameter with link}}
{{tweakparam|icon=Tweak_Speech_Voice_Temp.png|Parameter|last=y}}
{{tweakparam|icon=Tweak_Speech_Voice_Temp.png|Parameter|last=y|notext=y}}
|desc=This is a test of the Tweakparam template.
|desc=This is a test of the Tweakparam template.
}}
}}
Line 21: Line 21:
* Replace <tt>title</tt> with whatever text you want to display.
* Replace <tt>title</tt> with whatever text you want to display.
* If for whatever reason you want a parameter to link to another page, use <tt>link=</tt>.
* If for whatever reason you want a parameter to link to another page, use <tt>link=</tt>.
* If you don't want the text label to be visible, use <tt>notext=y</tt>. The label can still be viewed by hovering the mouse over the icon. Not recommended in most cases.
* Use <tt>last=y</tt> if this is the last parameter on the tweak.
* Use <tt>last=y</tt> if this is the last parameter on the tweak.
*  
*  
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 00:27, 19 June 2024

Tweak Speech Voice Temp.png
Test: (
Parameter •‎
Parameter
)

This is a test of the Tweakparam template.

Usage

{{tweakparam|noinvert=y|icon=|title|last=y}}

  • Use noinvert if your image isn't just a solid black colour.
  • Replace title with whatever text you want to display.
  • If for whatever reason you want a parameter to link to another page, use link=.
  • If you don't want the text label to be visible, use notext=y. The label can still be viewed by hovering the mouse over the icon. Not recommended in most cases.
  • Use last=y if this is the last parameter on the tweak.