Difference between revisions of "Mark online"
From cm2.liecourt.com
Line 10: | Line 10: | ||
-->}} | -->}} | ||
− | + | {{#ifeq: {{#var: @onlinerecently}} | Yes <!-- | |
− | {{# | + | -->| {{#vardefine:@buttontext | {{Fa|toggle-off}} Mark offline}}<!-- |
+ | -->| {{Fa|toggle-on}} Mark online<!-- | ||
+ | -->}} | ||
+ | {{#vardefine:@timestamp|<nowiki>{{subst:#time: r | now}}</nowiki>}} | ||
<wsform action="addToWiki"><!-- | <wsform action="addToWiki"><!-- | ||
--><wsedit target="{{PAGEID:User:{{CURRENTLOGGEDUSER}} }}" formfield="Online since" template="User" value="{{#var:@timestamp}}" /><!-- | --><wsedit target="{{PAGEID:User:{{CURRENTLOGGEDUSER}} }}" formfield="Online since" template="User" value="{{#var:@timestamp}}" /><!-- | ||
--><wsfield type="hidden" /><!-- | --><wsfield type="hidden" /><!-- | ||
− | -->< | + | --><wslabel onClick="alert(1)" >{{#var:@buttontext}}</wsfield> |
</wsform> | </wsform> | ||
+ | {{#widget: Link | ||
+ | |type=button | ||
+ | |class=btn-success | ||
+ | |style= | ||
+ | |text={{#var:@buttontext}} | ||
+ | |onclick=alert(1); | ||
+ | }} |
Revision as of 12:07, 9 June 2021
Expression error: Unexpected < operator.
Mark online
Please log in first.