Template:Selectionfunction

ifregistered
The  function checks whether a viewing user is registered and displays a string based on the outcome. There is no "test" parameter as it automatically takes the value held by the wiki in the current session.



For example, if you are logged-in:

Or if you are not:

Empty parameters default to no value. Logged-in:

Logged-out:

This can be used in conjunction with to output different results: Logged-in:

Logged-out:

Unlike most other selection functions, the value returned by  cannot be printed to the page with. This would both defeat the purpose of the function in appearing differently for each user, and is also not possible since this function is processed post-page load. can print based on the inserted username or IP address, however the username or IP address will have to be inserted manually.