<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.coigame.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ATime%2Fsandbox</id>
	<title>Template:Time/sandbox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.coigame.com/index.php?action=history&amp;feed=atom&amp;title=Template%3ATime%2Fsandbox"/>
	<link rel="alternate" type="text/html" href="http://wiki.coigame.com/index.php?title=Template:Time/sandbox&amp;action=history"/>
	<updated>2026-06-04T12:32:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.0</generator>
	<entry>
		<id>http://wiki.coigame.com/index.php?title=Template:Time/sandbox&amp;diff=8456&amp;oldid=prev</id>
		<title>NaK: Created page with &quot;&lt;includeonly&gt;&lt;templatestyles src=&quot;Template:Time/styles.css&quot; /&gt;&lt;!--  ** Calculate how many unnamed parameters we we&#039;re missing. ** --&gt;{{#vardefine: param_count | &lt;!--   --&gt;{{#expr: {{#if: {{{1|}}} | 1 | 0}} + {{#if: {{{2|}}} | 1 | 0}} }}&lt;!-- --&gt;}}&lt;!--  ** Unset var `isitblue` in case there were any previous calls on the same article ** --&gt;{{#vardefine: isitblue}}&lt;!--  ** We received nothing so we&#039;re going to print the &quot;/ 60 s&quot; or only &quot;s&quot; in plain white and quit. ** --&gt;{{...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.coigame.com/index.php?title=Template:Time/sandbox&amp;diff=8456&amp;oldid=prev"/>
		<updated>2022-11-16T18:07:35Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;includeonly&amp;gt;&amp;lt;templatestyles src=&amp;quot;Template:Time/styles.css&amp;quot; /&amp;gt;&amp;lt;!--  ** Calculate how many unnamed parameters we we&amp;#039;re missing. ** --&amp;gt;{{#vardefine: param_count | &amp;lt;!--   --&amp;gt;{{#expr: {{#if: {{{1|}}} | 1 | 0}} + {{#if: {{{2|}}} | 1 | 0}} }}&amp;lt;!-- --&amp;gt;}}&amp;lt;!--  ** Unset var `isitblue` in case there were any previous calls on the same article ** --&amp;gt;{{#vardefine: isitblue}}&amp;lt;!--  ** We received nothing so we&amp;#039;re going to print the &amp;quot;/ 60 s&amp;quot; or only &amp;quot;s&amp;quot; in plain white and quit. ** --&amp;gt;{{...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;templatestyles src=&amp;quot;Template:Time/styles.css&amp;quot; /&amp;gt;&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
** Calculate how many unnamed parameters we we&amp;#039;re missing. **&lt;br /&gt;
--&amp;gt;{{#vardefine: param_count | &amp;lt;!--&lt;br /&gt;
  --&amp;gt;{{#expr: {{#if: {{{1|}}} | 1 | 0}} + {{#if: {{{2|}}} | 1 | 0}} }}&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
** Unset var `isitblue` in case there were any previous calls on the same article **&lt;br /&gt;
--&amp;gt;{{#vardefine: isitblue}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
** We received nothing so we&amp;#039;re going to print the &amp;quot;/ 60 s&amp;quot; or only &amp;quot;s&amp;quot; in plain white and quit. **&lt;br /&gt;
--&amp;gt;{{#ifeq: {{#var: param_count}} | 0 |&amp;lt;!--&lt;br /&gt;
  --&amp;gt;&amp;lt;span class=&amp;quot;nowrap inline_time&amp;quot;&amp;gt; &amp;lt;!--&lt;br /&gt;
    --&amp;gt;{{#if: {{{icononly|}}} || / 60 }}&amp;lt;!--&lt;br /&gt;
    --&amp;gt;[[File:Clock.png|link=Time|16x16px]] &amp;lt;!--&lt;br /&gt;
  --&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
** We only received {{{1}}} or {{{2}}} so we&amp;#039;ll assume that&amp;#039;s a time and not a quantity. **&lt;br /&gt;
&lt;br /&gt;
  ** Check if the time is already 60 seconds and set variable `isitblue` to `_60s` if true. **&lt;br /&gt;
  ** Note: Bit of a trick here: `_60s` is both the name of the CSS class to make text blue, **&lt;br /&gt;
  ** as the well as the additional bit of the filename between the regular and blue clocks. **&lt;br /&gt;
--&amp;gt;{{#ifeq: {{#var: param_count}} | 1 |&amp;lt;!--&lt;br /&gt;
  --&amp;gt;{{#ifeq: {{{1|}}} | 60 | {{#vardefine: isitblue | _60s}} }}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;&amp;lt;span class=&amp;quot;nowrap inline_time {{#var: isitblue}}&amp;quot;&amp;gt;/ {{{1|}}}{{{2|}}} [[File:Clock{{#var: isitblue}}.png|link=Time|16x16px]]&amp;lt;/span&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
** We received {{{1}}} and {{{2}}} so we&amp;#039;ll assume they&amp;#039;re a qty and a time, in that order. **&lt;br /&gt;
--&amp;gt;{{#ifeq: {{#var: param_count}} | 2 |&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
  --&amp;gt;{{#ifeq: {{{2}}} | 60 | {{#vardefine: isitblue | _60s}} }}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;&amp;lt;span class=&amp;quot;nowrap inline_time {{#var: isitblue}}&amp;quot;&amp;gt;{{{1}}} / {{{2}}} [[File:Clock{{#var: isitblue}}.png|link=Time|16x16px]]&amp;lt;/span&amp;gt;&amp;lt;!--&lt;br /&gt;
  --&amp;gt;{{#ifeq: {{{2}}} | 60 ||&amp;lt;!--&lt;br /&gt;
    --&amp;gt;{{#if: {{{per60|}}} |&amp;lt;!--&lt;br /&gt;
      --&amp;gt;&amp;lt;span class=&amp;quot;nowrap inline_time _60s&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
      --&amp;gt; ({{#expr: 60/{{{2}}}*{{{1}}} round 2 }} / 60 [[File:Clock_60s.png|link=Time|16x16px]])&amp;lt;!--&lt;br /&gt;
      --&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;!--&lt;br /&gt;
    --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
  --&amp;gt;}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Time}} --- {{Time/sandbox}}  &amp;lt;br/&amp;gt;&lt;br /&gt;
{{Time|40}} --- {{Time/sandbox|40}}  &amp;lt;br/&amp;gt;&lt;br /&gt;
{{Time|40|20}} --- {{Time/sandbox|40|20}}  &amp;lt;br/&amp;gt;&lt;br /&gt;
{{Time|60}} --- {{Time/sandbox|60}}  &amp;lt;br/&amp;gt;&lt;br /&gt;
{{Time|40|60}} --- {{Time/sandbox|40|60}}  &amp;lt;br/&amp;gt;&lt;br /&gt;
{{Time|40|20|per60=yes}} --- {{Time/sandbox|40|20|per60=yes}}  &amp;lt;br/&amp;gt;&lt;br /&gt;
{{Time|30|60|per60=yes}} --- {{Time/sandbox|30|60|per60=yes}}  &amp;lt;br/&amp;gt;&lt;br /&gt;
{{Time|icononly=yes}} --- {{Time/sandbox|icononly=yes}}  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>NaK</name></author>
	</entry>
</feed>