|
|
(17 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | {{#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"><!--
| |
− | --><wsedit target="{{PAGEID:User:{{CURRENTLOGGEDUSER}} }}" formfield="Online since" template="User" value="{{#var:@timestamp}}" /><!--
| |
− | --><wsfield type="hidden" /><!--
| |
− | --><wsfield type="submit" />
| |
− | </wsform>
| |