Provides functions similar to Extension:UserFunctions based on JavaScript.
* <span class="user-functions" data-username></span>
* <span class="user-functions" data-if-logged-in="{true | false}"></span>
* <span class="user-functions" data-if-username="{string | string[]}"></span>
* <span class="user-functions" data-if-usergroup="{string | string[]}"></span>
- false:
false
no
0
will givefalse
- true: any other value will give
true
examples
<!-- true -->
<span class="user-functions" data-if-logged-in>logged in</span>
<span class="user-functions" data-if-logged-in="">logged in</span>
<span class="user-functions" data-if-logged-in="whatever">logged in</span>
<!-- false -->
<span class="user-functions" data-if-logged-in="false">logged in</span>
<span class="user-functions" data-if-logged-in="no">logged in</span>
<span class="user-functions" data-if-logged-in="0">logged in</span>
- String will be split by
|
. - String starts with
!
meansfalse
example: foo|!bar
→ {foo: true, bar: false}