Difference between revisions of "Template:Time"

From Twilight Heroes Wiki
Jump to: navigation, search
m (Template:Caffeine moved to Template:Time: Occurred to me that time isn't only added from caffeine >.>)
m
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>[[Image:clock-white.gif|left]] '''Bedtime: +{{{1}}} minutes'''<br clear="all"></includeonly>
+
<includeonly>{|
 +
| [[Image:clock-white.gif]] || '''{{#ifeq:{{{type|}}}|current|Current time: {{{1}}}|Bedtime: +{{#if:{{{1|}}}|{{{1}}}|''some''}}}} {{#ifeq:{{{measure|}}}|si|seconds |minutes }}'''
 +
|}<br clear="all"></includeonly><noinclude>
 +
==Template==
 +
'''<nowiki>{{time|minutes added}}</nowiki>'''
  
<noinclude>
+
''or''
==Template==
 
'''<nowiki>{{caffeine|time}}</nowiki>'''
 
  
 +
'''<nowiki>{{time|minutes changed|type=current}}</nowiki>'''
 
==Usage==
 
==Usage==
'''<nowiki>{{caffeine|45}}</nowiki>'''
+
'''<nowiki>{{time}}</nowiki>'''
 +
 
 +
''Results in...''
 +
{{time}}
 +
 
 +
'''<nowiki>{{time|45}}</nowiki>'''
 +
 
 +
''Results in...''
 +
{{time|45}}
 +
 
 +
'''<nowiki>{{time|-1|type=current}}</nowiki>'''
 +
 
 +
''Results in...''
 +
{{time|-1|type=current}}
  
 +
'''<nowiki>{{time|-30|type=current|measure=si}}</nowiki>'''
  
 
''Results in...''
 
''Results in...''
 +
{{time|-30|type=current|measure=si}}
  
[[Image:clock-white.gif|left]] '''Bedtime: +45 minutes'''<br clear="all">
+
[[Category:Standardization Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 07:32, 4 October 2014

Template

{{time|minutes added}}

or

{{time|minutes changed|type=current}}

Usage

{{time}}

Results in...

Clock-white.gif Bedtime: +some minutes

{{time|45}}

Results in...

Clock-white.gif Bedtime: +45 minutes

{{time|-1|type=current}}

Results in...

Clock-white.gif Current time: -1 minutes

{{time|-30|type=current|measure=si}}

Results in...

Clock-white.gif Current time: -30 seconds