Διαφορά μεταξύ των αναθεωρήσεων του "Πρότυπο:Time ago"

Από Γνωσιακή Βάση Υπηρεσιών και Διαδικασιών του Δημοσίου Τομέα
Μετάβαση σε: πλοήγηση, αναζήτηση
μ (Εισήχθη 1 αναθεώρηση)
Γραμμή 1: Γραμμή 1:
{{#invoke:TimeAgo|main}}<noinclude>
+
{{#iferror: {{#time:U| {{{1|}}} }}
 +
|{{error|Σφάλμα: η πρώτη παράμετρος δεν μπορεί να αναλυθεί ως ημερομηνία ή ώρα.}}
 +
|{{Time ago/core
 +
  |ago = {{{ago|πριν}}}
 +
  |time = {{{1|}}}
 +
  |auto_magnitude_num = {{#if:{{{magnitude|}}}
 +
  |0<!-- Make sure the specified {{{magnitude}}} is used -->
 +
  |{{#expr:{{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 120      ) | 1 | 0 }}+
 +
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 7200    ) | 1 | 0 }}+
 +
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 172800  ) | 1 | 0 }}+
 +
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 5356800  ) | 2 | 0 }}+
 +
    {{#ifexpr: floor( abs( {{#time:U}} - {{#time:U| {{{1|}}} }} ) / 63115200 ) | 1 | 0 }}
 +
  }}
 +
  }}
 +
  |min_magnitude_num = {{#switch:{{#if:{{{magnitude|}}}
 +
    |{{{magnitude}}}
 +
    |{{{min_magnitude}}}
 +
  }}
 +
  |years  = 6
 +
  |months  = 5
 +
  |weeks  = 4
 +
  |days    = 3
 +
  |hours  = 2
 +
  |minutes = 1
 +
  |seconds
 +
  |#default= 0
 +
  }}
 +
}}
 +
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
<!-- Categories go in the /doc subpage and interwikis go in Wikidata. -->
 
 
</noinclude>
 
</noinclude>

Αναθεώρηση της 11:55, 27 Σεπτεμβρίου 2014

πριν 0 δευτερόλεπτα

50px Template documentation[create]