Extension:PageAssessments
PageAssessments リリースの状態: 安定 |
|
---|---|
実装 | パーサー関数 , データベース |
説明 | An extension for storing article assessments (e.g. for WikiProjects) in a new database table |
作者 | Niharika Kohli Frances Hocutt Ryan Kaldari |
最新バージョン | 1.1.0 (2016-01-11) |
MediaWiki | >= 1.43 |
データベースの変更 | はい |
テーブル | page_assessments page_assessments_projects |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | |
|
|
四半期ごとのダウンロード数 | 5 (Ranked 131st) |
translatewiki.net で翻訳を利用できる場合は、PageAssessments 拡張機能の翻訳にご協力ください | |
問題点 | 未解決のタスク · バグを報告 |
This extension is for storing article assessments (e.g. for WikiProjects) in a structured and query-able way. For an example of how article assessments are done, see the guidelines on Wikipedia.
インストール
- ダウンロードして、ファイルを
extensions/
フォルダー内のPageAssessments
という名前のディレクトリ内に配置します。
開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageAssessments - 以下のコードを LocalSettings.php ファイルの末尾に追加します:
wfLoadExtension( 'PageAssessments' );
- 更新スクリプトを実行します。このスクリプトは、この拡張機能が必要とするデータベーステーブルを自動的に作成します。
- 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。
You can also use these configuration options in your LocalSettings.php
:
$wgPageAssessmentsOnTalkPages
— If assessments are normally recorded on the pages themselves rather than on talk pages, set this tofalse
(default:true
).$wgPageAssessmentsSubprojects
— If projects on your wiki have subprojects or task forces that you would like to record separate assessments for, set this totrue
(default:false
).
使用法
The parser function for creating a new assessment is:
{{#assessment: <name of the wikiproject> | <class> | <importance>}}
name of the wikiproject
— a short name for the project assessing the article, for example, "Medicine" or "Hungarian culture". Can be up to 128 characters long.class
— a quality ranking, for example, "B" or "FA". See the class grades on Wikipedia for a more comprehensive example. Can be up to 20 characters long.importance
— a ranking of how important the article is to the project, for example, "Low" or "High". Can be up to 20 characters long.
The assessment
parser function is expected to be on the talk page of the page under review, however it may be included on the page itself if $wgPageAssessmentsOnTalkPages
is set to false
.
A page may have more than one assessment function for different projects.
Example usage
The importance/priority of an article might be different depending on the WikiProject:
{{#assessment:Medicine|A|Low}} {{#assessment:Biology|B|High}}
Explanation:
Using this example in a talk page, declares the current page inside the Medicine project, with A quality, and with Low importance.
It also declares the current page in the Biology project, with B quality, and with High importance.
Search
For wikis with CirrusSearch installed, PageAssessments adds a inproject
keyword to allow filtering of search results to pages in given WikiProjects.
For example, inproject:Cricket|Football
will find pages related to either Cricket or Football.
Search rankings are influenced by the importance assigned to the article by the projects.
API
The PageAssessments extension includes three API query modules: pageassessments
, projectpages
, and projects
.
Pageassessments
pageassessments
is a new property query for the MediaWiki Action API.
It is used to retrieve assessment metadata for one or more pages.
例
Get project and assessment data for page "Apple".
api.php?action=query&prop=pageassessments&titles=Apple
Get project and assessment data for pages "Apple" and Pear, using the newer API result format.
api.php?action=query&prop=pageassessments&titles=Apple|Pear&formatversion=2
Get project and assessment data for page "Apple", including subprojects and task forces (only available if $wgPageAssessmentsSubprojects
is true
).
api.php?action=query&prop=pageassessments&titles=Apple&pasubprojects=true
Projectpages
projectpages
is a new list query.
It is used to retrieve all the pages assessed by a particular WikiProject.
This query can be used as a generator.
By adding wppassessments=true
, you can also get the assessment metadata for each of the pages.
例
Get first 10 pages associated with any WikiProject:
Get first 10 pages associated with WikiProject Medicine, including assessment data:
Get page info for first 10 pages associated with WikiProject Textile Arts:
Projects
projects
is a new list query.
It is used to retrieve a list of all the WikiProjects on a wiki.
The results are returned as an array of project names.
例
Get a list of all the WikiProjects.
api.php?action=query&list=projects
Get a list of all the WikiProjects, including subprojects and task forces (only available if $wgPageAssessmentsSubprojects
is true
).
api.php?action=query&list=projects&pjsubprojects=true
特別ページ
PageAssessments also provides an on-wiki interface for retrieving assessment data at Special:PageAssessments.
データベースのテーブル
PageAssessments creates two new database tables:
page_assessments
stores the assessment metadata, while page_assessments_projects
stores the names of WikiProjects (so that they don't have to be recorded in full as part of each assessment record in the page_assessments
table).
Both tables are required for proper functioning of the parser function and APIs.
The tables should exist on any wiki that has the PageAssessments extension installed.
If PageAssessments is uninstalled, both tables can be dropped safely.
The purgeUnusedProjects.php
maintenance script can be run to remove projects from the page_assessments_projects
table that are no longer used by any assessments.
関連項目
- Community Tech/PageAssessments at Meta-Wiki
- Create new extension implementing article importance and quality
この拡張機能は 1 つ以上のウィキメディアのプロジェクトで使用されています。 これはおそらく、この拡張機能が安定していて高いトラフィックのウェブサイトでも十分に動作することを意味します。 この拡張機能がインストールされている場所を確認するには、ウィキメディアの設定ファイル CommonSettings.php および InitialiseSettings.php 内で、この拡張機能の名前を探してください。 特定のウィキにインストールされている拡張機能の完全な一覧は、そのウィキの Special:Version ページにあります。 |
この拡張機能は以下のウィキ ファーム/ウィキ ホスト/パッケージに含まれています: これは正式な一覧ではありません。 一部のウィキ ファーム/ウィキ ホスト/パッケージは、ここに記載されていなくてもこの拡張機能を含んでいる場合があります。 必ずご利用のウィキ ファーム、ウィキ ホスト、バンドルで確認してください。 |
このページまたはプロジェクト は several people as noted in the infobox によって保守されています。
ヘルプを得る:
|
- Stable extensions/ja
- Parser function extensions/ja
- Database extensions/ja
- GPL licensed extensions/ja
- Extensions in Wikimedia version control/ja
- ArticleDeleteComplete extensions/ja
- CirrusSearchAddQueryFeatures extensions/ja
- LinksUpdateComplete extensions/ja
- LoadExtensionSchemaUpdates extensions/ja
- ParserFirstCallInit extensions/ja
- All extensions/ja
- Extensions used on Wikimedia/ja
- Extensions included in Miraheze/ja
- Extensions included in WikiForge/ja