User:N0one/Sandbox/template: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
(22 intermediate revisions by the same user not shown)
Line 2: Line 2:


== Template test page ==
== Template test page ==
 
<onlyinclude>
<noinclude>
<div style="background-color:#222; color:#ccc; border:1px solid #555; padding:6px; margin-top:4px; border-radius: 4px;">
{{#ifexpr: {{#if:{{{1|}}}|{{REVISIONTIMESTAMP:{{{1}}}}}|0}} > {{#if:{{{2|}}}|{{REVISIONTIMESTAMP:{{{2}}}}}|0}}
<div class="mw-customtoggle-Spoilers" style="cursor:pointer; font-weight:bold; color:#e66;">This section contains spoilers, click to reveal</div>
| <span style="color:yellow">{{{1}}}</span> '''>''' <span style="color:yellow">{{{2}}}</span>; <span style="color:green">NOTIFY "{{{2}}}"</span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Spoilers">
| <span style="color:yellow">{{{1}}}</span> '''<''' <span style="color:yellow">{{{2}}}</span>; <span style="color:red">DONT NOTIFY "{{{2}}}"</span>
}}
</noinclude>
----
 
America/Los_Angeles = Seattle which is also belleuve time
<noinclude>
{{#ifexpr: {{#time: YmdHis | {{{month|1}}}/{{{day|1}}}/{{{year|{{CURRENTYEAR}}}}} {{{time|23:59:59}}} | America/Los_Angeles }} <= {{#time: YmdHis| {{REVISIONTIMESTAMP}} | America/Los_Angeles }}
| <span style="color:green">NOTIFY; Deadline was at: {{#time: F j, Y; H:i:s | {{{month|1}}}/{{{day|1}}}/{{{year|{{CURRENTYEAR}}}}} {{{time|23:59:59}}} }}</span>
| <span style="color:yellow">DONT NOTIFY; Deadline at: {{#time: F j, Y; H:i:s | {{{month|1}}}/{{{day|1}}}/{{{year|{{CURRENTYEAR}}}}} {{{time|23:59:59}}} }}</span>
}}
</noinclude>
----
{{Delete|nocat=1|{{{1|If the {{{namespace|page}}} isn't corrected until {{#time:F j, Y, H:i | {{{month|1}}}/{{{day|1}}}/{{{year|{{CURRENTYEAR}}}}} {{{time|23:59:59}}}|America/Los_Angeles}}. It will be deleted.}}} }}
 
<!-- if it works it works -->
<onlyinclude><includeonly>
{{Metanotice
| rgb = 178, 34, 34
| id = [[File:Warning_icon.png|32px|link=]]
| text = <strong>This article will be marked as a [[Help:Deletion|candidate for speedy deletion]] on <span style="color:yellow">{{#time:F j, Y, H:i | {{{month|1}}}/{{{day|1}}}/{{{year|{{CURRENTYEAR}}}}} {{{time|23:59:59}}}|America/Los_Angeles}}</span></strong><br>If the article isn't corrected until the deadline, it will be marked as a candidate for speedy deletion.<br>Time left until the page will be deleted: <span style="color:yellow">{{#switch: {{#expr:{{#time:YmdHis|{{{month|1}}}/{{{day|1}}}/{{{year|{{CURRENTYEAR}}}}} {{{time|23:59:59}}}|America/Los_Angeles}} <= {{#time:YmdHis|{{REVISIONTIMESTAMP}}|America/Los_Angeles}}
| 1
| 0
}}
| 0 = {{#expr: ({{#time:U|{{{month|1}}}/{{{day|1}}}/{{{year|2025}}}|America/Los_Angeles}} - {{#time:U|{{REVISIONTIMESTAMP}}|America/Los_Angeles}}) / 86400 round 0 }} <!--
-->{{PLURAL: {{#expr: ({{#time:U|{{{month|1}}}/{{{day|1}}}/{{{year|2025}}}|America/Los_Angeles}} - {{#time:U|{{REVISIONTIMESTAMP}}|America/Los_Angeles}}) / 86400 round 0 }} |Day|Days}}.
| 1 = None.
 
[[Category:Test]]
}}
</span>
}}
</includeonly></onlyinclude>
----
----
{{{1}}}
</div>
</div>
</onlyinclude>

Latest revision as of 11:10, 20 June 2025

Back to User:N0one/Sandbox

Template test page

This section contains spoilers, click to reveal

{{{1}}}