Template:Using: Difference between revisions

From Vintage Story Wiki
No edit summary
No edit summary
Line 10: Line 10:


===Example=== <!--T:9-->
===Example=== <!--T:9-->
<!--T:12-->
Hover the mouse on the underlined words to see the effect.


<!--T:5-->
<!--T:5-->
<code><nowiki>An armor stand {{Using|placed}} on the ground.</nowiki></code>
*<code><nowiki>An armor stand {{Using|placed}} on the ground.</nowiki></code>


<!--T:10-->
<!--T:10-->
''becomes:''
:''becomes:''


<!--T:11-->
<!--T:11-->
An armor stand {{Using|placed}} on the ground.
<ul>An armor stand {{Using|placed}} on the ground.</ul>
 
*<code><nowiki>You can create a scrap weapon by {{Using}} a scrap weapon kit.</nowiki></code>
 
:''becomes:''


<!--T:12-->
<ul>You can create a scrap weapon by {{Using}} a scrap weapon kit.</ul>
''(hover the mouse on the "placed" word to see the effect)''
 
'''Note:''' If you need to add an indentation before the sentence where {{Using}} is written, you will need to use <code><ul>text</ul><code> and not <code>:text</code>. Otherwise an unexpected line break will appear before the template resulting word. Same thing for <code>*text</code>, use <code><ul><li>text</li></ul></code> instead. See the page about the [[club]] as an example.
</translate>
</translate>
[[Category:ControlsTemplates]]
[[Category:ControlsTemplates]]
</noinclude>
</noinclude>

Revision as of 15:40, 30 July 2023

Documentation

Adds a small underlined word, optional unnamed parameter, defaults to "Using", that has a tool tip saying "Right mouse button".

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

Example

Hover the mouse on the underlined words to see the effect.

  • An armor stand {{Using|placed}} on the ground.
becomes:
    An armor stand placed on the ground.
  • You can create a scrap weapon by {{Using}} a scrap weapon kit.
becomes:
    You can create a scrap weapon by using a scrap weapon kit.

Note: If you need to add an indentation before the sentence where

using is written, you will need to use

    text

and not :text. Otherwise an unexpected line break will appear before the template resulting word. Same thing for *text, use

  • text

instead. See the page about the club as an example.