Templat: Iseventnowpastfuture: Perbedaan antara revisi

Dari GBI Danau Bogor Raya
Lompat ke: navigasi, cari
Leo (bicara | kontrib)
k upd
Leo (bicara | kontrib)
k fmt
Baris 1: Baris 1:
{{#ifexpr: ({{#time:Hi|+7hours}}>={{#time:Hi|{{{timefrom|{{{1|}}}}}}}}) and ({{#time:Hi|+7hours}}<={{#time:Hi|{{{timeupto|{{{2|{{{timefrom|{{{1|}}}}}}}}}}}}}})
{{#ifexpr: ({{#time:YmdHi|+7hours}}>={{#time:YmdHi|{{{timefrom|{{{1|}}}}}}}}) and ({{#time:YmdHi|+7hours}}<={{#time:YmdHi|{{{timeupto|{{{2|{{{timefrom|{{{1|}}}}}}}}}}}}}})
   | 0
   | 0
   | {{#ifexpr: ({{#time:Hi|{{{timeupto|{{{2|{{{timefrom|}}}}}}}}}}}<{{#time:Hi|+7hours}})  
   | {{#ifexpr: ({{#time:YmdHi|{{{timeupto|{{{2|{{{timefrom|}}}}}}}}}}}<{{#time:YmdHi|+7hours}})  
       | -1
       | -1
       | {{#ifexpr: ({{#time:Hi|{{{timefrom|{{{1|}}}}}}}}>{{#time:Hi|+7hours}})
       | {{#ifexpr: ({{#time:YmdHi|{{{timefrom|{{{1|}}}}}}}}>{{#time:YmdHi|+7hours}})
           | 1
           | 1
           | 99
           | 99

Revisi per 18 Juli 2021 13.10

-1

Dokumentasi templat


Pemakaian

{{isEventNowPastFuture | 1= | 2= }}
Result
  • 1: Future event
  • 0: Currently running
  • -1: Past event
  • 30: Segera dimulai (dalam 30 menit)
  • -30: Baru berakhir (dalam 30 menit)