Template:Sandbox/doc: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
mNo edit summary
No edit summary
 
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
==Syntax==
This template can be used to test templates. This is useful when making significant changes to a broadly used template, so as to not impact the wiki during tests. User pages cannot be used for that purpose.
<code>
<nowiki>
{{ Version | <version> | <note> | stub = yes | cleanup = yes | stubnote = blabla | cleanupnote = blablabla }}
</nowiki>
</code>
==Examples==
----
<code><nowiki>{{Version}}</nowiki></code> gives: {{Sandbox}}
{{clear}}
----
<code><nowiki>{{Version|</nowiki>{{Current_version}}<nowiki>}}</nowiki></code> gives: {{Sandbox|{{Current_version}}}}
{{clear}}
----
<code><nowiki>{{Version|0.9.10.0|Outdated images}}</nowiki></code> gives: {{Sandbox|0.9.10.0|Outdated images}}
{{clear}}
----
<code><nowiki>{{Version|</nowiki>{{Current_version}}<nowiki>|stub=yes|stubnote=Missing damage table}}</nowiki></code> gives: {{Sandbox|{{Current_version}}|stub=yes|stubnote=Missing damage table}}
{{clear}}
----
<code><nowiki>{{Version</nowiki><br>
|{{Current_version}}<br>
|Outdated images<br>
|stub = yes<br>
|stubnote = Missing damage table<br>
|cleanup = yes<br>
|cleanupnote = Usage of second person needs to be replaced<br>
}}</code><br> gives:
 
{{Sandbox|{{Current_version}}|Outdated images|stub=yes|stubnote=Missing damage table|cleanup=yes|cleanupnote=Usage of second person needs to be replaced}}
{{clear}}
{{doc/end}}
{{doc/end}}

Latest revision as of 21:41, 7 November 2021

Documentation

This template can be used to test templates. This is useful when making significant changes to a broadly used template, so as to not impact the wiki during tests. User pages cannot be used for that purpose.

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