الگو:نشان وضعیت کاربر - ویکیپدیا، دانشنامهٔ آزاد
![]() | This article's accessibility is in question. For specifics, please see the relevant discussion on the talk page. Information on making articles more accessible can be found at Wikiproject Accessibility. |
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:
- Edit your userpage, the template's
|status=
can be edited directly. - Click the icon and edit
|status=
. - Import the User:Cj005257/scripts/useronline.js/Version2.js script
Usage
[ویرایش]Place {{نشان وضعیت کاربر}} anywhere on your user page to produce the icon. This template & icon are based on {{نشان بالا}}. See that template's page for a more intricate syntax definition.
Syntax
[ویرایش]{{نشان وضعیت کاربر | 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 جاوااسکریپت 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
[ویرایش]{{نشان وضعیت کاربر|status = online}}
{{نشان وضعیت کاربر|status = offline}}
{{نشان وضعیت کاربر|status = huggle}}