Template:SneakClick/en: Difference between revisions

From Vintage Story Wiki
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 3: Line 3:
== Documentation ==
== Documentation ==


Similar to [[Special:MyLanguage/Template:Using|Template:Using]] but for <code><nowiki>{{SneakClick}}</nowiki></code>.  
Similar to [[Special:MyLanguage/Template:Using|Template:Using]] but for <code><nowiki>{{SneakClick}}</nowiki></code>.
 
Adds a small underlined word, optional unnamed parameter, defaults to "Shift+right click", that has a tool tip saying "Sneak, default is shift, and right click".


Call with <code><nowiki>{{SneakClick|optional param}}</nowiki></code>, optionally using [[Special:MyLanguage/Vintage_Story_Wiki:How_to_translate_the_wiki|translation variables]] to minimize chance of errors in translation.
Call with <code><nowiki>{{SneakClick|optional param}}</nowiki></code>, optionally using [[Special:MyLanguage/Vintage_Story_Wiki:How_to_translate_the_wiki|translation variables]] to minimize chance of errors in translation.
Line 9: Line 11:
=== Example ===
=== Example ===


Some text goes here and you need to {{SneakClick}} to do it. Or, you can {{SneakClick|write something else}}.
<code><nowiki>The player can {{SneakClick|place}} helmet, chest armor, leg armor, shield and weapon on the armor stand.</nowiki></code>
 
''becomes:''
 
The player can {{SneakClick|place}} helmet, chest armor, leg armor, shield and weapon on the armor stand.


''(hover the mouse on the "place" word to see the effect)''
[[Category:ControlsTemplates]]</noinclude>
[[Category:ControlsTemplates]]</noinclude>

Revision as of 05:34, 28 July 2023

Documentation

Similar to Template:Using but for {{SneakClick}}.

Adds a small underlined word, optional unnamed parameter, defaults to "Shift+right click", that has a tool tip saying "Sneak, default is shift, and right click".

Call with {{SneakClick|optional param}}, optionally using translation variables to minimize chance of errors in translation.

Example

The player can {{SneakClick|place}} helmet, chest armor, leg armor, shield and weapon on the armor stand.

becomes:

The player can place helmet, chest armor, leg armor, shield and weapon on the armor stand.

(hover the mouse on the "place" word to see the effect)