ढाँचा:Useronline
This is a template for indicating your online status with a image on your userpage. See the top right of this page for an example. There are multiple ways to change your status:
- Edit your userpage.
- Click the icon.
- Import the User:Cj005257/scripts/useronline.js script
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 | icon_nr = the icon number determines the offset of the topicon (the rightmost one is zero) | extra_offset = an additional offset that you can use to force or adapt (in case you have non-20px wide elements in your topicon row) }}
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 a link to edit your userpage 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');
The old import still works though:
importScript('User:Cj005257/useronline.js');
Clear your browser's cache, then a "Edit your online status" link will appear underneath the "Donate to Wikipedia" link and to the left of the 'Your userpage' link at the top. Note that this will, by default, only work if your template is on your userpage, not a subpage. If you want to change this, drop the template author a call: CJ Drop me a line! • Contribs
Example Usage
[सम्पादन गर्नुहोस्]{{Useronline|status = online|icon_nr = 3| extra_offset = 10}}
{{Useronline|status = offline|icon_nr = 3| extra_offset = 10}}
{{Useronline|status = huggle|icon_nr = 3| extra_offset = 10}}
See Also
[सम्पादन गर्नुहोस्]{{top icon}}