Jump to content

Template:Duration/testcases

From Wikipedia, the free encyclopedia

Testing sandbox version

[edit]
  • {{Duration/sandbox|h=1|m=22|s=34}} renders as: 1:22:34
  • {{Duration/sandbox|m=74|s=32}} renders as: 1:14:32
  • {{Duration/sandbox|m=2|s=34}} renders as: 2:34
  • {{Duration/sandbox|h=1|s=34}} renders as: 1:00:34
  • {{Duration/sandbox|h=1}} renders as: 1:00:00
  • {{Duration/sandbox|h=0|m=22|s=34}} renders as: 0:22:34
  • {{Duration/sandbox|h=0|m=0|s=34}} renders as: 0:00:34
  • {{Duration/sandbox|h=1|m=22|s=34.5678}} renders as: 1:22:34.5678
  • {{Duration/sandbox|h=1|m=22|s=3}} renders as: 1:22:03
  • {{Duration/sandbox|h=1|m=2|s=34}} renders as: 1:02:34
  • {{Duration/sandbox|h=1|m=2|s=3}} renders as: 1:02:03
  • {{Duration/sandbox|h=1|m=2}} renders as: 1:02:00
  • {{Duration/sandbox|s=34}} renders as: 0:34
  • {{Duration/sandbox|m=0|s=34}} renders as: 0:34
  • {{Duration/sandbox|h=1|m=0|s=34}} renders as: 1:00:34
  • {{Duration/sandbox|h=1|m=22|s=0}} renders as: 1:22:00
  • {{Duration/sandbox|h=one|m=22|s=0}} renders as: Error in Module:Hms: Invalid values
  • {{Duration/sandbox|h=1|m=22|s=78}} renders as: Error in Module:Hms: Seconds value must be less than 60 (i.e. an error)
  • {{Duration/sandbox|h=1.1|m=2.2}} renders as: Error in Module:Hms: Hours and minutes values must be integers

Testing main template

[edit]
  • {{Duration|h=1|m=22|s=34}} renders as: 1:22:34
  • {{Duration|m=74|s=32}} renders as: 74:32
  • {{Duration|m=2|s=34}} renders as: 2:34
  • {{Duration|h=1|s=34}} renders as: 1:00:34
  • {{Duration|h=1}} renders as: 1:00:00
  • {{Duration|h=0|m=22|s=34}} renders as: 0:22:34
  • {{Duration|h=0|m=0|s=34}} renders as: 0:00:34
  • {{Duration|h=1|m=22|s=34.5678}} renders as: 1:22:34.5678
  • {{Duration|h=1|m=22|s=3}} renders as: 1:22:03
  • {{Duration|h=1|m=2|s=34}} renders as: 1:02:34
  • {{Duration|h=1|m=2|s=3}} renders as: 1:02:03
  • {{Duration|h=1|m=2}} renders as: 1:02:00
  • {{Duration|s=34}} renders as: 0:34
  • {{Duration|m=0|s=34}} renders as: 0:34
  • {{Duration|h=1|m=0|s=34}} renders as: 1:00:34
  • {{Duration|h=1|m=22|s=0}} renders as: 1:22:00
  • {{Duration|h=one|m=22|s=0}} renders as: Error in Module:Duration: Invalid values
  • {{Duration|h=1|m=22|s=78}} renders as: Error in Module:Duration: Seconds value must be less than 60 (i.e. an error)
  • {{Duration|h=1.1|m=2.2}} renders as: Error in Module:Duration: Hours and minutes values must be integers