|
|
Line 1: |
Line 1: |
| <noinclude>{{doc}}[[Category:Templates]]</noinclude>
| | <indicator name="version1">{{Sandbox/nest}}</indicator> |
| <includeonly>{{#vardefine:match<!--
| |
| // Versions match
| |
| -->|{{#ifeq:{{{1}}}|{{Current_version}}|true<!--
| |
| // First two version numbers match, ignore last two
| |
| -->|{{#ifeq:{{#explode:{{{1}}}|.|0}}{{#explode:{{{1}}}|.|1}}|{{#explode:{{Current_version}}|.|0}}{{#explode:{{Current_version}}|.|1}}|true|false}}}}}}<!--
| |
| | |
| --><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%;">
| |
| <tr>
| |
| {{#if: {{{cleanup|}}}|
| |
| <td style="width:{{#if:{{{stub|}}}|6|8}}%;">[[File:Cleanup.svg|60px]]</td>
| |
| <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>
| |
| |}}
| |
| {{#if: {{{stub|}}}|
| |
| <td style="width:{{#if:{{{cleanup|}}}|6|8}}%;">[[File:Icon-stub.png|60px]]</td>
| |
| <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>
| |
| |}}
| |
| <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>
| |
| <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>
| |
| <span style="font-size:89%;"><!--
| |
| | |
| -->{{#ifeq:{{#var:match}}|true|<!--
| |
| // If version is missing write unknown
| |
| -->|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>
| |