Templat: Iseventnowpastfuture: Perbedaan antara revisi

Dari GBI Danau Bogor Raya
Lompat ke: navigasi, cari
Leo (bicara | kontrib)
k fmt
Leo (bicara | kontrib)
k upd
 
(4 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 2: Baris 2:
   | 0
   | 0
   | {{#ifexpr: ({{#time:YmdHi|{{{timeupto|{{{2|{{{timefrom|}}}}}}}}}}}<{{#time:YmdHi|+7hours}})  
   | {{#ifexpr: ({{#time:YmdHi|{{{timeupto|{{{2|{{{timefrom|}}}}}}}}}}}<{{#time:YmdHi|+7hours}})  
       | -1
       | {{#ifexpr: ({{#time:YmdHi|{{{timeupto|{{{2|{{{timefrom|}}}}}}}}} +30minutes}}>={{#time:YmdHi|+7hours}})
          | -30
          | -1
        }}
       | {{#ifexpr: ({{#time:YmdHi|{{{timefrom|{{{1|}}}}}}}}>{{#time:YmdHi|+7hours}})
       | {{#ifexpr: ({{#time:YmdHi|{{{timefrom|{{{1|}}}}}}}}>{{#time:YmdHi|+7hours}})
           | 1
           | {{#ifexpr: ({{#time:YmdHi|{{{timefrom|{{{1|}}}}}}}}<={{#time:YmdHi|+7hours+30minutes}})
              | 30
              | 1
            }}
           | 99
           | 99
}}
}}
     }}
     }}
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Revisi terkini sejak 28 Juli 2021 18.07

-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)