Permanently protected template
This user's status is unknown. There may be a problem with this user's status subpage. Click here to fix.

Template:Useronline

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

This is a template for indicating your online status with an image on your userpage. See the top right of this page for an example.

This template does not detect your status. Only use it if you are sure you will remember to change the setting every time you come online, and every time you go offline. Otherwise, it will give false indications.

There are multiple ways to change your status:

Usage

Place {{Useronline}} anywhere on your user page to produce the icon. This template & icon are based on {{Topicon}}. See that template's page for a more intricate syntax definition.

Syntax

{{Useronline
| status       = online / offline / huggle
}}

Note: If you omit the |status= parameter, the template will default to looking in a user subpage. This will be located at Special:Mypage/Status. This is useful for the User:Cj005257/scripts/useronline.js/Version2.js script.

Clicking the image

If you click the picture, you are automatically taken to the edit page so you may edit the |status= parameter.

Javascript editor

There is a JavaScript import available which adds links to edit a userspace sub-page underneath the "Donate to Wikipedia" link and to the left of the 'Your userpage' link at the top.

To add this, go to your common.js page and add the following:

importScript('User:Cj005257/scripts/useronline.js/Version2.js');

Clear your browser's cache, then "Online", "Offline" and "Huggle" links will appear underneath the "Donate to Wikipedia" link and to the left of the 'Your userpage' link at the top.

Example usage

  • {{Useronline|status = online}}
  • {{Useronline|status = offline}}
  • {{Useronline|status = huggle}}

See also