Difference between revisions of "Mark online"

From cm2.liecourt.com
Line 1: Line 1:
{{#vardefineecho:@timestamp|<nowiki>{{subst:#time: r | now}}</nowiki>}}
+
{{#vardefineecho:@useronlinesince|{{#show:User:{{CURRENTLOGGEDUSER}}|?Online since}} }}<!--
 +
-->{{#if:{{#var:@useronlinesince}}|<!--
 +
  // User has an online status
 +
  -->{{#vardefine:@useronlinesince-unixtimestamp|{{#time: U | {{#var:@onlinesince}} }} }}<!--
 +
  -->{{#vardefine:@onehourago-unixtimestamp|{{#time: U | now - 1 hour }} }}<!--
 +
  -->{{#ifexpr: {{#var:@useronlinesince-unixtimestamp}} > {{#var:@onehourago-unixtimestamp}}|<!--
 +
  -->Online since less than an hour ago<!--
 +
  -->}}<!--
 +
-->}}
 +
 
 +
 
 +
{{#vardefineecho:@timestamp|<nowiki>{{subst:#time: r | now - 2 hours }}</nowiki>}}
  
 
<wsform action="addToWiki"><!--   
 
<wsform action="addToWiki"><!--   

Revision as of 11:40, 9 June 2021

The page type input value "User:" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.Online since less than an hour ago


{{subst:#time: r | now - 2 hours }}