Predloga:Time ago/testniprimeri

Iz Wikipedije, proste enciklopedije
Jump to navigation Jump to search

Examples[uredi kodo]

Slovenian:

  • {{Time ago| -83 minutes}}83 minutes ago
  • {{Time ago| -334 minutes}}5 hours ago
  • {{Time ago|{{REVISIONTIMESTAMP}}}}6 years ago
  • {{Time ago| Jan 21, 2001 3:45 PM}}18 years ago
  • {{Time ago| Maj 6 2008}}Error: first parameter cannot be parsed as a date or time.
  • {{Time ago| Maj 6 2008|magnitude=weeks}}Error: first parameter cannot be parsed as a date or time.
  • {{Time ago| Maj 6 2008|min_magnitude=days}}Error: first parameter cannot be parsed as a date or time.
  • {{Time ago| Maj 6 2008|min_magnitude=years}}Error: first parameter cannot be parsed as a date or time.
  • {{Time ago| Maj 6 2008|ago=in the past}}Error: first parameter cannot be parsed as a date or time.
  • {{Time ago| Maj 6 2008|purge=yes}}Error: first parameter cannot be parsed as a date or time.

English (we cannot use this here)

  • {{Time ago| -83 minutes}}83 minutes ago
  • {{Time ago| -334 minutes}}5 hours ago
  • {{Time ago|{{REVISIONTIMESTAMP}}}}6 years ago
  • {{Time ago| Jan 21, 2001 3:45 PM}}18 years ago
  • {{Time ago| May 6 2008}}10 years ago
  • {{Time ago| May 6 2008|magnitude=weeks}}554 weeks ago
  • {{Time ago| May 6 2008|min_magnitude=days}}10 years ago
  • {{Time ago| May 6 2008|min_magnitude=years}}10 years ago
  • {{Time ago| May 6 2008|ago=in the past}}10 years in the past
  • {{Time ago| May 6 2008|purge=yes}}10 years ago (purge)

Trailing space tests[uredi kodo]

Osveži

1 Jan 2012:

  • >pred 7 leti<
  • >7 years ago<sbx

current time:

  • >pred 0 sekundami<
  • >0 seconds ago<sbx

1 Jan 2012, with purge

current time with purge:

Line break test (no purge)

live>pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami pred 0 sekundami<<

sbx>0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge)<<

Line break test (purge can appear at start of line)

live>pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži) pred 0 sekundami (osveži)<<

sbx>0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge) 0 seconds ago (purge)<<

Sandbox tests[uredi kodo]

  • Normal: 9 years ago
  • Minutes: 5243717 minutes ago
  • Days: 3641 days ago
  • Weeks: 520 weeks ago
  • Months: 117 months ago
  • Future: 353 months' time

Errors[uredi kodo]

  • Bad date: Error: first parameter cannot be parsed as a date or time.
  • Unknown specified magnitude: 314623055 seconds ago
  • No parameters: 0 seconds ago
  • Capitalization: 314623055 seconds ago

min_magnitude[uredi kodo]

no seconds minutes hours days months years nonsense
-111 seconds 110 seconds ago 110 seconds ago 1 minute ago 0 hours ago 0 days ago 0 months ago 0 years ago 110 seconds ago
-30 minutes 29 minutes ago 29 minutes ago 29 minutes ago 0 hours ago 0 days ago 0 months ago 0 years ago 29 minutes ago
20. junij 2019 Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time. Error: first parameter cannot be parsed as a date or time.
-25 hours 24 hours ago 24 hours ago 24 hours ago 24 hours ago 1 day ago 0 months ago 0 years ago 24 hours ago
1 January 2010 9 years ago 9 years ago 9 years ago 9 years ago 9 years ago 9 years ago 9 years ago 9 years ago
17 November 2009 9 years ago 9 years ago 9 years ago 9 years ago 9 years ago 9 years ago 9 years ago 9 years ago
20 May 1988 31 years ago 31 years ago 31 years ago 31 years ago 31 years ago 31 years ago 31 years ago 31 years ago
5 months 4 months' time 4 months' time 4 months' time 4 months' time 4 months' time 4 months' time 0 years' time 4 months' time

Original version tests[uredi kodo]

Glavni članek: Template:Time_ago.
  • Normal: pred 9 leti
  • Minutes: pred 5243717 minutami
  • Days: pred 3641 dnevi
  • Weeks: pred 520 tedni
  • Months: pred 117 meseci
  • Future: čez 353 mesecev

Errors[uredi kodo]

  • Bad date: Napaka: prvi parameter ne ustreza obliki datuma ali ure.
  • Unknown specified magnitude: pred 314623055 sekundami
  • No parameters: pred 0 sekundami
  • Capitalization: pred 314623055 sekundami

min_magnitude[uredi kodo]

no seconds minutes hours days months years nonsense
-111 seconds pred 110 sekundami pred 110 sekundami pred 1 minuto pred 0 urami pred 0 dnevi pred 0 meseci pred 0 leti pred 110 sekundami
-30 minutes pred 29 minutami pred 29 minutami pred 29 minutami pred 0 urami pred 0 dnevi pred 0 meseci pred 0 leti pred 29 minutami
20. junij 2019 Napaka: prvi parameter ne ustreza obliki datuma ali ure. Napaka: prvi parameter ne ustreza obliki datuma ali ure. Napaka: prvi parameter ne ustreza obliki datuma ali ure. Napaka: prvi parameter ne ustreza obliki datuma ali ure. Napaka: prvi parameter ne ustreza obliki datuma ali ure. Napaka: prvi parameter ne ustreza obliki datuma ali ure. Napaka: prvi parameter ne ustreza obliki datuma ali ure. Napaka: prvi parameter ne ustreza obliki datuma ali ure.
-25 hours pred 24 urami pred 24 urami pred 24 urami pred 24 urami pred 1 dnem pred 0 meseci pred 0 leti pred 24 urami
1 January 2010 pred 9 leti pred 9 leti pred 9 leti pred 9 leti pred 9 leti pred 9 leti pred 9 leti pred 9 leti
17 November 2009 pred 9 leti pred 9 leti pred 9 leti pred 9 leti pred 9 leti pred 9 leti pred 9 leti pred 9 leti
20 May 1988 pred 31 leti pred 31 leti pred 31 leti pred 31 leti pred 31 leti pred 31 leti pred 31 leti pred 31 leti
5 months čez 4 mesece čez 4 mesece čez 4 mesece čez 4 mesece čez 4 mesece čez 4 mesece čez 0 let čez 4 mesece

Now works in the future[uredi kodo]

  • Original: čez 38 let
  • Peskovnik: 38 years' time