सामग्रीमा जानुहोस्

ढाँचा: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:

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.

{{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)
}}

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

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

  • {{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}}

{{top icon}}