|
|
Line 1: |
Line 1: |
| <noinclude> | | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly> |
| {{doc}}[[Category:Templates]] | |
| </noinclude><includeonly>{{#vardefine:match<!-- | |
| // Versions match
| |
| -->|{{#ifeq:{{{1}}}|{{Current_version}}|true<!--
| |
| // Major and minor numbers match, ignore hotfix
| |
| -->|{{#ifeq:{{#explode:{{{1}}}|.|0}}{{#explode:{{{1}}}|.|1}}{{#explode:{{{1}}}|.|2}}|{{#explode:{{Current_version}}|.|0}}{{#explode:{{Current_version}}|.|1}}{{#explode:{{Current_version}}|.|2}}|true|false}}}}}}<!--
| |
|
| |
|
| --><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%;">
| | 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. |
| <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;">'''{{#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
| |
| -->|{{#if:{{{1|}}}|Last updated for version: [[Version history/Alpha#{{{1}}}{{!}}{{{1}}}]]|Last updated for unknown version}}<br>}}<!--
| |
|
| |
| -->Current game version: [[Version history/Alpha#{{Current_version}}{{!}}{{Current_version}}]]
| |
| {{#if:{{{2|}}}|<br>NOTE: {{{2}}}|}}
| |
| </span></td>
| |
| </tr>
| |
| </table>{{#ifeq:{{NAMESPACE}}|Template||{{#ifeq:{{#var:match}}|true||[[Category:Potentially Outdated]]}}{{#if:{{{stub|}}}||[[Category:Stubs]][[Category:Problem articles]]}}{{#if:{{{cleanup|}}}||[[Category:Cleanup]][[Category:Problem articles]]}}}}
| |
| </includeonly> | | </includeonly> |