Template:Sandbox: Difference between revisions

From Official Barotrauma Wiki
Jump to: navigation, search
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>{{doc}}[[Category:Templates]]
<noinclude>{{doc}}[[Category:Templates]]</noinclude>
{{Sandbox}}</noinclude>
<includeonly>{{#vardefine:match<!--
<includeonly>
// Versions match
{| class="resonsive-table sortable" style="text-align:center; width: 100%;"
-->|{{#ifeq:{{{1}}}|{{Current_version}}|true<!--
|-
// First two version numbers match, ignore last two
! style="width: 13%" | Affliction
-->|{{#ifeq:{{#explode:{{{1}}}|.|0}}{{#explode:{{{1}}}|.|1}}|{{#explode:{{Current_version}}|.|0}}{{#explode:{{Current_version}}|.|1}}|true|false}}}}}}<!--
! style="width: 5%" |<span class="explain" title="Is the affliction able to be applied on a specific limb?">Limb Specific?</span>
 
! style="width: 5%" |<span class="explain" title="Will vitality loss and/or afflictions gain be a percentage the victim's max vitality?">Scaled to Vitality?</span>
--><indicator name="version1"><table class="version-control" style="border-color:{{#ifeq:{{#var:match}}|true|{{#if:{{{cleanup|}}}|#ffa007|{{#if:{{{stub|}}}|#ffa007|#3CB886}}}}|#993838}};max-width:{{#if:{{{cleanup|}}}|{{#if:{{{stub|}}}|9|6}}|{{#if:{{{stub|}}}|6|3}}}}0%;">
! style="width: 7%" |If left alone
<tr>
! style="width: 7%" class="unsortable" |Strength Range
{{#if: {{{cleanup|}}}|
! style="width: 20%" class="unsortable" |<span class="explain" title="What happens in that strength range?">Effects</span>
<td style="width:{{#if:{{{stub|}}}|6|8}}%;">[[File:Cleanup.svg|60px]]</td>
! style="width: 16%" class="unsortable" |<span class="explain" title="Total affliction strength reduction, Success | Failure">Treatments</span>
<td style="width:{{#if:{{{stub|}}}|27|42}}%;padding-left:0;padding-right:0.5em;border-right: 1px solid #303436;"><div style="font-size:1.2em;">'''Cleanup Required'''</div><span style="font-size:89%;">This article requires '''cleanup''' to meet this wiki's [[Official Barotrauma Wiki:Guidelines|quality standards]].{{#if:{{{cleanupnote|}}}|<br>NOTE: {{{cleanupnote}}}|}}</span></td>
! style="width: 15%" class="unsortable" |<span class="explain" title="Total affliction strength increase, Success | Failure. Weapons and creature attacks not included.">Causes</span>
|}}
{{#cargo_query:
{{#if: {{{stub|}}}|
tables = Afflictions
<td style="width:{{#if:{{{cleanup|}}}|6|8}}%;">[[File:Icon-stub.png|60px]]</td>
| fields = Afflictions.identifier, Afflictions.name, Afflictions.icon, Afflictions.sort, Afflictions.description, Afflictions.limb, Afflictions.limbnote, Afflictions.scaled, Afflictions.evolution, Afflictions.treatments, Afflictions.causes, Afflictions.range1, Afflictions.effect1, Afflictions.range2, Afflictions.effect2, Afflictions.range3, Afflictions.effect3, Afflictions.range4, Afflictions.effect4, Afflictions.range5, Afflictions.effect5, Afflictions.range6, Afflictions.effect6, Afflictions.range7, Afflictions.effect7, Afflictions.range8, Afflictions.effect8
<td style="width:{{#if:{{{cleanup|}}}|27|42}}%;padding-left:0;padding-right:0.5em;border-right: 1px solid #303436;"><div style="font-size:1.2em;">'''Stub'''</div><span style="font-size:89%;">This article is a '''[[:Category:Stubs|stub]].''' Help the {{SITENAME}} by [{{fullurl:{{FULLPAGENAME}}|action=edit}} expanding it].{{#if:{{{stubnote|}}}|<br>NOTE: {{{stubnote}}}|}}</span></td>
| order by = Afflictions.sort ASC, _pageName ASC
|}}
| format = template
<td style="width:{{#if:{{{cleanup|}}}|{{#if:{{{stub|}}}|7|8}}|{{#if:{{{stub|}}}|8|10}}}}%;">[[File:Version Checkmark{{Space}}{{#ifeq:{{#var:match}}|true|True|False}}.png|60px]]</td>
| template = Sandbox/row
<td style="width:{{#if:{{{cleanup|}}}|{{#if:{{{stub|}}}|27|42}}|{{#if:{{{stub|}}}|42|90}}}}%;padding-left:0;padding-right:0;"><div style="font-size:1.2em; border-bottom: 1px solid #303436;">'''{{#ifeq:{{#var:match}}|true|Data is Up-to-date|Data is Potentially Outdated}}'''</div>
| named args = yes
<span style="font-size:89%;"><!--
| delimiter = \n
 
}}
-->{{#ifeq:{{#var:match}}|true|<!--
|}
// If version is missing write unknown
</includeonly>
-->|Last updated for {{#if:{{{1|}}}|version '''[[Version history/Alpha#{{{1}}}{{!}}v{{{1}}}]]'''|'''an unknown version'''}}<br>}}<!--
 
-->The current game version is '''[[Version history/Alpha#{{Current_version}}{{!}}v{{Current_version}}]]'''
{{#if:{{{2|}}}|<br>NOTE: {{{2}}}|}}
</span></td>
</tr>
</table></indicator>{{#ifeq:{{NAMESPACE}}|Template||{{#ifeq:{{#var:match}}|true||[[Category:Potentially Outdated]]}}{{#if:{{{stub|}}}|{{#if:{{{cleanup|}}}|{{clr}}[[Category:Stubs]][[Category:Cleanup]][[Category:Problem articles]]|[[Category:Stubs]][[Category:Problem articles]]}}|{{#if:{{{cleanup|}}}|[[Category:Cleanup]][[Category:Problem articles]]|}}}}}}</includeonly>

Revision as of 22:09, 11 June 2022

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.