Template:Tweakparam: Difference between revisions

From Imagisphere
Jump to navigation Jump to search
(Created page with "<includeonly><div style="display:inline-block;"><!-- -->{{#if: {{{icon|}}} | [[File:{{{icon}}}|22px|class={{#if: {{{noinvert|}}} | | invert }} {{{imgclass}}}|{{#if: {{{link|}}} | link={{{link}}} | }} {{{text|{{{1|}}}}}}]] | }}<!-- -->{{#if: {{{link|}}} | [[{{{link}}}{{#if:{{{text|{{{1|}}}}}} | {{!}}{{{text|{{{1}}}}}} | }}]] <!-- -->| {{{text|{{{1}}}}}} }}<!-- --> {{#if: {{{last|}}} | | •‎ }}<!-- --></div></includeonly><noinclude> {{tweak |icon=Tweak_Speech...")
 
(Renamed "text" parameter to "title")
Line 1: Line 1:
<includeonly><div style="display:inline-block;"><!--
<includeonly><div style="display:inline-block;"><!--
-->{{#if: {{{icon|}}} | [[File:{{{icon}}}|22px|class={{#if: {{{noinvert|}}} | | invert }} {{{imgclass}}}|{{#if: {{{link|}}} | link={{{link}}} | }} {{{text|{{{1|}}}}}}]] | }}<!--
-->{{#if: {{{icon|}}} | [[File:{{{icon}}}|22px|class={{#if: {{{noinvert|}}} | | invert }} {{{imgclass}}}|{{#if: {{{link|}}} | link={{{link}}} | }} {{{title|{{{1|}}}}}}]] | }}<!--
-->{{#if: {{{link|}}} | [[{{{link}}}{{#if:{{{text|{{{1|}}}}}} | {{!}}{{{text|{{{1}}}}}} | }}]] <!--
-->{{#if: {{{link|}}} | [[{{{link}}}{{#if:{{{title|{{{1|}}}}}} | {{!}}{{{title|{{{1}}}}}} | }}]] <!--
-->| {{{text|{{{1}}}}}} }}<!--
-->| {{{title|{{{1}}}}}} }}<!--
--> {{#if: {{{last|}}} |  | •‎ }}<!--
--> {{#if: {{{last|}}} |  | •‎ }}<!--
--></div></includeonly><noinclude>
--></div></includeonly><noinclude>
Line 10: Line 10:
|params=
|params=
{{tweakparam|icon=Tweak_Speech_Voice_Temp.png|link=LittleBigPlanet}}
{{tweakparam|icon=Tweak_Speech_Voice_Temp.png|link=LittleBigPlanet}}
{{tweakparam|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}}
Line 17: Line 17:


==Usage==
==Usage==
<code><nowiki>{{tweakparam|noinvert=y|icon=|text|last=y}}</nowiki></code>
<code><nowiki>{{tweakparam|noinvert=y|icon=|title|last=y}}</nowiki></code>
* Use <tt>noinvert</tt> if your image isn't just a solid black colour.
* Use <tt>noinvert</tt> if your image isn't just a solid black colour.
* Replace <tt>text</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>.
* 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.

Revision as of 00:07, 19 June 2024

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

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=.
  • Use last=y if this is the last parameter on the tweak.