Difference between revisions of "Template:Time"

From Twilight Heroes Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<includeonly>{|
 
<includeonly>{|
| [[Image:clock-white.gif]] || '''{{#ifeq:{{{type|}}}|current|Current time: {{{1}}}|Bedtime: +{{{1}}}}} minutes'''
+
| [[Image:clock-white.gif]] || '''{{#ifeq:{{{type|}}}|current|Current time: {{{1}}}|Bedtime: +{{#if:{{{1|}}}|{{{1}}}|''some''}}}} minutes'''
 
|}<br clear="all"></includeonly><noinclude>
 
|}<br clear="all"></includeonly><noinclude>
 
==Template==
 
==Template==
Line 9: Line 9:
 
'''<nowiki>{{time|minutes changed|type=current}}</nowiki>'''
 
'''<nowiki>{{time|minutes changed|type=current}}</nowiki>'''
 
==Usage==
 
==Usage==
 +
'''<nowiki>{{time}}</nowiki>'''
 +
 +
''Results in...''
 +
{{time}}
 +
 
'''<nowiki>{{time|45}}</nowiki>'''
 
'''<nowiki>{{time|45}}</nowiki>'''
  

Revision as of 22:29, 20 September 2009

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