From Dark and Darker Wiki

(Adjusted the look. It's better centered and more eye-catching.)
(Reworked UpdateStatus to display information differently.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#vardefine:status|{{#explode:{{:TODO|{{{1|}}}}}|$|0|2}} }}<!--
-->{{#vardefine:color|{{#explode:{{:TODO|{{{1|}}}}}|$|1|2}} }}<!--


--><div {{#ifeq:True|{{:TODO|Sticky}}|style="position:fixed; width:100%; top:50px; z-index:1"}}><!--
--><div {{#ifeq:True|{{:TODO|Sticky}}|style="position:fixed; width:100%; top:50px; z-index:1"}}><!--
--><p style="width:89%; text-align:center; font-weight:bold; font-size:30px; padding:10px; margin:5px; border:2px solid #DD952A; border-radius:10px; background-color:#000B"><!--
--><p style="width:{{#ifeq:True|{{:TODO|Sticky}}|89|98.5}}%; text-align:center; font-weight:bold; font-size:30px; padding:10px; margin:5px; border:2px solid #DD952A; border-radius:10px; background-color:#000B"><!--
-->{{{1|}}} is currently up to date for: {{:TODO|{{{2|}}}}}</p></div><!--
--><span class="tooltip" style="width:100%"><!--
-->{{#switch:{{lc:{{#var:color}} }}
|green
|yellowgreen=Information is up to date! Hover for more details.
|orange=Information is mostly up to date. Some minor things are outdated. Hover for more details.
|red=Information is out of date and needs to be updated! Hover for more details.
|grey=This page is a work in progress. Bugs in formatting and erroneous information are to be expected.
|#default=<span style="color:red">[[Template:UpdateStatus]] received an improper input. Please see the documentation for more information.</span>}}<!--
--><span class="tooltiptext-left" style="top:99%; left:50%; transform:translate(-50%); width:fit-content; white-space:nowrap; background-color:#000C; border:1px solid #DD952A; font-size:18px; padding:10px><!--
-->{{#if:{{{text|}}}|{{{text|}}}|{{{1|}}} }} last updated on: {{#var:status}}.<br><!--
-->Dark and Darker is currently on update: {{#explode:{{:TODO|currentpatch}}|$|0|2}}.</span></span></p></div><!--


--></includeonly><noinclude>
--></includeonly><noinclude>
<div style="height:3000px">
{{UpdateStatus|Weapon Data}}
<pre>{{{1|}}} is currently up to date for: {{:TODO|{{{2|}}}}}</pre>
 
The first parameter is to describe the Data or Object for which we are displaying the Update Satus for.<br>
The second parameter is the input to the TODO switch, which is the wiki's global update tracker.
==Example==
<pre>{{UpdateStatus|Weapon Data|Weapons}}</pre>
{{UpdateStatus|Weapon Data|Weapons}}
</div>
</noinclude>
</noinclude>

Revision as of 02:37, 19 June 2024

Information is up to date! Hover for more details.Weapon Data last updated on: Patch:6.6#Hotfix 69-2.
Dark and Darker is currently on update: Patch:6.6#Hotfix 70.