Template:Using: Difference between revisions

From Vintage Story Wiki
No edit summary
mNo edit summary
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<noinclude><languages /></noinclude>
<noinclude><languages /></noinclude><includeonly>{{Hovertip|{{{1|<translate><!--T:2--> using</translate>}}}|<translate><!--T:3--> Right mouse button</translate>}}</includeonly><noinclude>{{Documentation}}[[Category:ControlsTemplates]]</noinclude>
<includeonly>{{Hovertip|{{{1|<translate><!--T:2--> using</translate>}}}|<translate><!--T:3--> Right mouse button</translate>}}</includeonly><noinclude><translate>
===Documentation=== <!--T:4-->
 
<!--T:7-->
Adds a small underlined word, optional unnamed parameter, defaults to "Using", that has a tool tip saying "Right mouse button".
 
<!--T:8-->
Call with <code><nowiki>{{Using|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.
 
===Example=== <!--T:9-->
 
<!--T:5-->
<code><nowiki>An armor stand {{Using|placed}} on the ground.</nowiki></code>
 
<!--T:10-->
''becomes:''
 
<!--T:11-->
An armor stand {{Using|placed}} on the ground.
 
<!--T:12-->
''(hover the mouse on the "placed" word to see the effect)''
</translate>
[[Category:ControlsTemplates]]
</noinclude>

Latest revision as of 20:18, 8 July 2024

[view | edit | history | purge this page]Documentation

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

Template parameters

ParameterDescriptionTypeStatus
11

Display text

Example
place
Stringoptional

Usage

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

Examples

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 <ul>text</ul> and not :text. Otherwise an unexpected line break will appear before the template resulting word. Same thing for *text, use <ul><li>text</li></ul> instead. See the page about the club as an example.

[view | edit | history | purge this page]The above documentation is transcluded from Template:Using/doc.