Template:Controls/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
Line 3: Line 3:
==Syntax==
==Syntax==
<pre>
<pre>
{{Weapon Controls|number of hands to hold|ammunition}}
{{Controls|number of hands to hold|ammunition}}
</pre>
</pre>
==Examples==
==Examples==
*<code><nowiki>{{PAGENAME}}</nowiki></code> will be replaced with the current page name.
*<code><nowiki>{{PAGENAME}}</nowiki></code> will be replaced with the current page name.
<pre>{{Weapon Controls|one}}</pre> gives: {{Weapon Controls|one}}
<pre>{{Controls|one}}</pre> gives: {{Controls|one}}
<pre>{{Weapon Controls|two|{{Hyperlink|Shotgun Shell}}s}}</pre> gives: {{Weapon Controls|two|{{Hyperlink|Shotgun Shell}}s}}
<pre>{{Controls|two|{{Hyperlink|Shotgun Shell}}s}}</pre> gives: {{Controls|two|{{Hyperlink|Shotgun Shell}}s}}
{{doc/end}}
{{doc/end}}

Revision as of 19:46, 30 November 2020

Documentation

This template is used for recurring controls description on weapons and tools articles.

Syntax

{{Controls|number of hands to hold|ammunition}}

Examples

  • {{PAGENAME}} will be replaced with the current page name.
{{Controls|one}}
gives: The Controls/doc is held with one hand. As with all weapons and tools, using it is done by holding the Right Mouse Right-click to take aim, then by Left Mouse Left-clicking to shoot/use.
{{Controls|two|{{Hyperlink|Shotgun Shell}}s}}
gives: The Controls/doc is held with both hands and must be loaded with Shotgun Shells to be used. As with all weapons and tools, using it is done by holding the Right Mouse Right-click to take aim, then by Left Mouse Left-clicking to shoot/use.

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.