Extension:WhoIsWatching/ko
출시 상태: 안정 |
|
|---|---|
| 구현 | 특수 문서, 데이터베이스, 파서 함수 |
| 설명 | Find out who is watching a particular page, and add others to watchlist for that page. |
| 만든 이 | |
| 최신 버전 | 0.13.0 (2019-08-04) |
| 호환성 정책 | Master maintains backward compatibility. |
| MediaWiki | 1.43+ |
| Composer | mediawiki/who-is-watching |
|
|
|
|
| Licence | GNU General Public License 2.0 only |
| 다운로드 | README.mediawiki |
| 예시 | http://ec.europa.eu/eurostat/ |
| WhoIsWatching 확장 기능 번역 (translatewiki.net에서 가능한 경우) | |
| 이슈 | 미해결 작업 · 버그 보고 |
The WhoIsWatching extension allows to find out who is watching a particular page, and add others to watchlist for that page.
Rationale
Even though this notion goes against Wikipedia and Wikimedia privacy policy, some wikis may actually like to see which of its users are watching particular pages. This extension provides just such an interface at the bottom of every page. Additionally, this extension has an option to allow any user to add any page to any other user's watch list.
설치
Make sure that 확장기능:Echo is installed as it is a prerequisite for this extension to work.
- 파일을 다운로드하고
WhoIsWatching폴더를extensions/디렉토리에 넣어 주세요.
개발자와 코딩 기여자는 Git을 이용해 확장기능을 다운받는 것이 좋습니다.cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WhoIsWatching
- 아래의 코드를 LocalSettings.php 코드의 마지막에 추가합니다.
wfLoadExtension( 'WhoIsWatching' ); # $whoiswatching_nametype = "RealName"; # $whoiswatching_allowaddingpeople = false; # $whoiswatching_showifzero = true; # $whoiswatching_showwatchingusers = false; # $whoiswatching_maxPicklistUsers = 10; # $wgGroupPermissions['sysop']['addpagetoanywatchlist'] = true; # $wgGroupPermissions['sysop']['seepagewatchers'] = true;
완료 – 위키의 ‘Special:Version’에 이동해서, 확장기능이 올바르게 설치된 것을 확인합니다.
Configuration
You can simply start using the extension without changing anything else.
The only additional configuration that is currently possible for the extension defines how to display the names of the users watching the pages.
In SpecialWhoIsWatching.php, there is
# Set the following to either 'UserName' or 'RealName' to change how watching users are displayed.
$whoiswatching_nametype = 'RealName';
As the comment implies, depending on the value of this variable, you can display either the real names of the watching users or their wiki usernames. The reason some wiki's may want to switch over to the 'UserName' mode is if they do not require their members to have a valid real name.
Another configurable option in the extension is the ability to switch on/off the option to allow any user to add any page to any other user's watch list.
This is done in SpecialWhoIsWatching.php, where there is
# Set true if you don't want to use permissions and users are allowed to add to other user's watchlists.
$whoiswatching_allowaddingpeople = true;
It is also possible to only display the count of watching people if the count is greater than zero.
This is done in SpecialWhoIsWatching.php, where there is
# Set to true if you want people with permission to see 0 if no one is watching the page.
$whoiswatching_showifzero = true;
Finally, newer versions of this extension, while we attempt to be backward compatible, allow you to use permissions instead of global variables.
# Set to true if you don't want to use permissions.
$whoiswatching_showwatchingusers = true;
By default, users in the sysop group have permission to see page watchers and add pages to anyone's watchlist. You can grant these permissions to logged in users, too, or any group you think needs it.
# Give all logged in users full access.
$wgGroupPermissions['user']['addpagetoanywatchlist'] = true;
$wgGroupPermissions['user']['seepagewatchers'] = true;
Usage
This extension also provides the {{#whoiswatching:Some Page}} parser function showing the number of watching users of Some Page plus providing a link to Special:WhoIsWatching/Some Page.
This can be used with skins not supporting footer links or to create the WhoIsWatching link somewhere in a wiki page.
Known issues
The first time after a you submit a request to remove a page from the users watchlist, the user is still shown on the form. To get around this it is disabled and displayed with a red strikethrough.
| This extension is included in the following wiki farms/hosts and/or packages: |
- Stable extensions/ko
- Special page extensions/ko
- Database extensions/ko
- Parser function extensions/ko
- Extensions supporting Composer/ko
- Extensions which add rights/ko
- BeforeCreateEchoEvent extensions/ko
- EchoGetBundleRules extensions/ko
- ParserFirstCallInit extensions/ko
- SkinAddFooterLinks extensions/ko
- GPL licensed extensions/ko
- Extensions in Wikimedia version control/ko
- All extensions/ko
- Extensions included in Canasta/ko
- Extensions included in semantic::core/ko
- Notification extensions/ko
- WatchArticle extensions/ko
- Watchlist extensions/ko
