This article or section contains information that is out-of-date.
Please replace any old information with up-to-date information (this may include rewriting code for compatibility changes).
翻訳が必要です
このページ(の一部)は、翻訳が必要です。 (日本語への)翻訳にご協力ください。
RailWAMは右列にWiki Activity Monitor(WAM)の日替わり得点を提供するモジュールを追加します。どのウィキも活動状況に応じた0から100までのWAMスコアをもっており、上位のウィキは公式WAMページに表示されます。
特徴
- Graphing tool
- Log old data tool
- Streamlined database interface
- Ability to search for score, rank, and vertical rank ranges
- Date pickers in all tools
- Dashboard
- New configuration options:
doubleCheckDelay
andshowChange
- もろもろのバグ修正
- 最新のWAMスコアとランクデータに応じた右列コラムの自動更新
- 最新のWAMスコア/ランクの表示
- 最新のスコア/ランクの変化を表示
- Logging WAM data daily with the click of a link (or by simply visiting the wiki with the
autoLogForUsers
option) - 検索可能なWAMデータベース
- Graphing tool
- Log old data tool
- FAQ opened with one click on a link at the bottom of the module
- Link to the official WAM page with the top 5,000 wikis' scores
- Configuration options
- フィードバック
インストール
If you are installing RailWAM for sitewide use, first add the following code to MediaWiki:Common.js. Submit it for security review in the "Custom JavaScript status" rail module.
window.railWAM = { logPage:"Project:WAM Log" };
その後は個人/Wiki全体共に以下に記述されている通りにして下さい。
構成
オプションの一覧と初期設定
以下の表は設定可能なオプションすべてを列記しています。各項目の説明, their accepted values, and their default values.
オプション | 説明 | Accepted Values | 初期設定 |
---|---|---|---|
appendAfter
| Rail modules to append RailWAM after
Modules do not have to exist on all pages. RailWAM is appended to the module specified in this option that is furthest down the page, or below ads if no specified modules are found. This can not be changed to place RailWAM before ads. | The ID or class of a rail module as a string (e.g. "#wikia-recent-activity" ),
IDs or classes of rail modules in an array (e.g., | ['.content-review-module']
|
autoLogForUsers
| Users for whom the WAM will be automatically logged, if it is not already, when they visit the wiki.
権限がないのにユーザーを追加することのないようお願いします。 | The name of one user as a string (e.g. "Example" ),
the names of multiple users as an array (e.g. | No users |
botUsers
| Users for whom the edit to log WAM data will be marked as a bot edit.
The user must have a bot flag on their account in order for the edit to be marked. | The name of one user as a string (e.g. "Example" ),
the names of multiple users as an array (e.g. | No users |
logPage
| railWAmがスコアを記録すべきページの名前 | Page name as a string (i.e. surrounded in quotes) | "User:(ユーザー名)/WAM Log"
|
load
| Whether or not to load RailWAM | true , false
| true
|
loadOnPage
| The name(s) of the page(s) RailWAM should load on | The name of one page as a string (e.g. "Example" ),
the names of multiple pages as an array (e.g. | All pages |
loadOnNamespace
| The ID(s) of the namespace(s) RailWAM should load on
名前空間,IDについてはNamespace IDsのセクションをご覧ください。 | 名前空間ID (e.g. 1 ),
the IDs of multiple namespaces as an array (e.g. | 全名前空間 |
lang
| Defines which language RailWAM should use | Two letter language codes as a string (i.e. surrounded in quotes) | ユーザー個人設定で指定された言語,その言語が対応していない場合は"en"
|
showLogAlert
| Whether or not to display the alert asking you to log WAM scores | true , false
| true
|
showToAnons
| Whether the rail module should be shown to anonymous users | true , false
| true
|
top5000Mode
| If the side module for your wiki does not consistently display a rank (i.e., your wiki is not in the top 5000 WAM ranks), you should set this to false . This tells RailWAM to skip an extra data request and may improve loading time.
| true , false
| true
|
設定方法
RailWAM can be configured with code placed in MediaWiki:Common.js (site-wide use), your common JavaScript on a particular wiki (personal use), or your global JavaScript (personal use).
If you are using RailWAM site-wide, please see this important note.
If you are using RailWAM personally, please see this important note.
You can use window.railWAM
to configure RailWAM.その意味や使い方がわからないという際は,expand and read the detailed guidwlow.
詳細設定ガイド
詳細設定ガイドを見る方は右上の[展開]を押して下さい
Adding one option
RailWAM stores configuration options in window.railWAM
. Thus, you must first add this to to the code page with the same spelling and capitalization, unless a window.railWAM
is already present:
// RailWAM configuration window.railWAM = { };
Next, you need to add configuration options to window.railWAM
as properties. Move your cursor to the left (first) brace after the equal sign. Press enter/return. Then, type in the name of an option exactly as it appears in the list of configuration options above (同じ綴り,同じ大文字化, etc.). logPage
はこの例で使われます。
// RailWAM configuration window.railWAM = { logPage };
次に、プロパティー名の後ろにコンマとコロンを追加します。
// RailWAM configuration window.railWAM = { logPage: };
Now you can add the value for the option. The list of configuration options above shows what values are accepted for a particular option. For logPage
, a string (word(s) surrounded in single or double quotes) with the name of a page on the wiki will work.
Remember that you must surround any words you enter for values besides true and false in single or double quotes. Otherwise, what you have entered will be interpreted as a variable, which is something entirely different and will produce errors. Refer to the list above if special values need to be entered.
// RailWAM configuration window.railWAM = { logPage: 'My log page' };
複数のオプションを追加するのであれば、各オプションの後にコンマをうつ必要があります。 (If it is a string, it must be after the end quote.) Even if you are only using one option, it is still best practice to add a comma so that you do not have to remember in case you add more options later:
// RailWAM configuration window.railWAM = { logPage: 'My log page', };
他のオプションも追加
More options should be added to the same window.railWAM
.
After placing a comma after the first option, press enter/return to start on a new line. Then follow the steps you used to add the first option: enter the option name exactly, enter a colon and a space, enter the value, and end with a comma. For example:
// RailWAM configuration window.railWAM = { logPage: 'My log page', loadOnPage: 'Special:WikiActivity', lang: 'pl', };
サイト全体での使用に際しての注意点
To keep users safe, all site-wide code changes must be submitted to the code review team for a security check. After you press "Publish" to save your changes, click on the "Submit for review" button in the "Custom JavaScript status" module in the right rail on the code page. The code typically takes no longer than a few days to review. Once the revision has been approved, your changes will go into effect automatically.
個人利用に際しての注意点
If you are installing the script for personal use, make sure you place the configuration options before the import statement:
// This is an example configuration window.railWAM = { logPage: 'My log page', loadOnPage: 'Special:WikiActivity', lang: 'pl' }; // importArticles call importArticles({ type: 'script', articles: [ // ... 'u:dev:MediaWiki:RailWAM/code.js' ] });
Namespace IDs 名前空間の数値
Namespace | ID |
---|---|
Archive | |
Article (none) | 0 |
Blog | 502 |
Blog Talk | 503 |
Board | 2000 |
Board Thread | 2001 |
Category | 14 |
Category Talk | 15 |
Extension | 112 |
Extension Talk | 113 |
File | 6 |
File Talk | 7 |
Forum (Portal) | 110 |
Forum (Portal) Talk | 111 |
Help | 12 |
Help Talk | 13 |
Media | -2 |
MediaWiki | 8 |
MediaWiki Talk | 9 |
Message Wall | 1200 |
Message Wall Greeting | 1202 |
Module | 828 |
Module Talk モデュールトーク | 829 |
Project (Site Name) プロジェクト(SITENAME) | 4 |
Project (Site Name) Talk | 5 |
Special | -1 |
Talk | 1 |
Template | 10 |
Template Talk | 11 |
Thread 掲示板 | 1201 |
Topic トピックス | 2002 |
User | 2 |
User Blog | 500 |
User Blog Comment ユーザーブログコメント | 501 |
User Talk | 3 |
よくある質問
動作していません!
Please ensure that you have read the documentation clearly. If it is still not working, submit a bug report. If there is a section of the documentation that is unclear or confusing, please include that in your report too.
RailWAMの設定方法?
See the detailed configuration guide.
Why is my wiki's WAM rank showing?
Wikia only assigns WAM ranks to the top 5000 wikis. Most likely, your wiki is not one of these wikis. RailWAM automatically hides the rank section of the module if there is no rank data to be found.
If you are sure that your wiki's WAM rank should be showing, please バグのご報告を行ってください.
Why aren't any database entries being returned? / Why are there gaps in database data?
RailWAM gathers data from different places for wikis in the top 5000 WAM ranks (the WAM index) and wikis that are not in the WAM index. Unfortunately, historical data can not be retrieved for wikis not in the WAM index; it can only be retrieved if the data is logged by the user.
It is also possible that Wikia has not updated the WAM for that day. This occurs from time to time, but it is not a problem caused by or solvable by RailWAM. You can see when Wikia last updated the WAM data by looking at "The WAM rankings were last updated on:" directly above the database search box.
Full data for my wiki displays without it being logged. Why should I log WAM data?
Logging data for such a wiki is important because it can significantly reduce the amount of data requests RailWAM has to make, meaning faster load times. Logging data particularly speeds up the database where each request for every day takes 10 seconds. For example, simply logging data every day only could reduce a database search's waiting time from 2 minutes to less than a second.
My question wasn't listed here.
RailWAM has its own FAQ with a "FAQ" link located in the bottom left of the module with more information about WAM and RailWAM in general and how to use RailWAM's database. If you are looking for this type of information, please see that FAQ.
If you have looked at the FAQ in the module, ご質問を残してください、RailWAM's talk page.
バグレポート/提案の提出
Please submit all bug reports and suggestions on RailWAM's talk page. For bug reports, include a link to your wiki and specific description of the problem. Images may also be helpful to illustrate visual issues.
上記talk pageでのメッセージへの返信はその同じtalk pageに残っています, typically during weekends. However, bugs will most likely take longer to solve and fixes may take a few days to be approved. Please continue to check on the message you left on the talk page until the bug is fixed in case additional clarification or notification is necessary.
If your message has been left unanswered for more than a week, leave a note on Blaster Niceshot's (author's) talk page. Your message will be answered during the upcoming weekend, if not sooner.
Thank you for contributing to RailWAM!
翻訳/訂正
翻訳エディタを使用して、RailWAMの翻訳を提出/編集することができます。
RailWAMにご協力いただきありがとうございます!
計画された機能
全般的な機能:
- Monobookスキン対応
- 古いデータの記録
- 記事に自然とでるWAMモジュール
- WAMダッシュボード
データ盤機能:
- 日付検索種類に向け
- WAMグラフ
- Option to search logged data only
開発者向け:
- on-load hooks
Opting Out of RailWAM
To opt out of RailWAM, add this to your personal JavaScript (on the wiki you want to hide it) or global JavaScript:
window.railWAM = { load: false, };
For Developers
RailWAM Library関連文書は調整の最中です。後ほど再確認してください。