Extension:PageAuthors/ja

Category:GPL licensed extensions/ja
MediaWiki 拡張機能マニュアル
PageAuthors
リリースの状態: 安定Category:Stable extensions/ja
実装 パーサー関数 Category:Parser function extensions/ja
説明 Get a sensible list of page authors
作者 Sophivorusトーク
最新バージョン 1.4 (2022-08-10)
MediaWiki 1.35+Category:Extensions with manual MediaWiki version/ja
PHP 7+
データベースの変更 いいえ
ライセンス GNU 一般公衆利用許諾書 3.0 以降
ダウンロード Category:Extensions in Wikimedia version control/ja
  • $wgPageAuthorsMinBytesPerEdit
  • $wgPageAuthorsDelimiter
  • $wgPageAuthorsIgnoreGroups
  • $wgPageAuthorsIgnoreBots
  • $wgPageAuthorsIgnoreUsers
  • $wgPageAuthorsIgnoreSystemUsers
  • $wgPageAuthorsIgnoreMinorEdits
  • $wgPageAuthorsLinkUserPages
  • $wgPageAuthorsIgnoreBlocked
  • $wgPageAuthorsMinBytesPerAuthor
  • $wgPageAuthorsUseRealNames
  • $wgPageAuthorsIgnoreSummaryPatterns
  • $wgPageAuthorsIgnoreAnons
translatewiki.net で翻訳を利用できる場合は、PageAuthors 拡張機能の翻訳にご協力ください
Category:All extensions/ja

The PageAuthors extension introduces a magic word {{PAGEAUTHORS}} that returns a list of the main page authors of a page, sorted by number of bytes added.

The extension is highly configurable so you can fine-tune what counts as an author.

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のPageAuthorsという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PageAuthors
    
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'PageAuthors' );
    
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

使用法

Simply add {{PAGEAUTHORS}} to any page and you will get a comma-separated list of the main authors of the current page, sorted by number of bytes added.

You can also do {{PAGEAUTHORS:Some page}} to get the list of authors for some page other than the current one.

See #Configuration to define your own criteria of what counts as an author and how the list of authors should be displayed.

設定

Option Default Description
$wgPageAuthorsMinBytesPerAuthor100 Minimum number of bytes that a user must add in order to be considered an author.
$wgPageAuthorsMinBytesPerEdit10 Minimum number of bytes that each edit must reach in order to be counted towards the author's total. Having a positive value here already means that edits that reduce content don't count, which is usually desirable because even though synthesizing and removing problematic content is often valuable, we wouldn't say that makes you an author of the existing content.
$wgPageAuthorsIgnoreMinorEditstrue Whether to ignore edits marked as minor.
$wgPageAuthorsIgnoreBlockedtrue Whether to ignore blocked users.
$wgPageAuthorsIgnoreAnonstrue Whether to ignore anonymous users.
$wgPageAuthorsIgnoreBotstrue Whether to ignore bots.
$wgPageAuthorsIgnoreSystemUserstrue Whether to ignore system users (such as in mass imports).
$wgPageAuthorsIgnoreSummaryPatterns[ '/Undo.*/', '/Revert.*/' ] Ignore edits with edit summaries that match these PHP regex patterns. By default, edits with edit summaries that start with Undo or Revert will be ignored (these match the default edit summaries when doing a revert or a rollback in an English wiki). So for example, if some vandal blanks a page and then a user reverts it, the revert won't count towards the byte count of the user.
$wgPageAuthorsIgnoreUsers[] Ignore edits by these users (without User: prefix).
$wgPageAuthorsIgnoreGroups[] Ignore edits by these groups.
$wgPageAuthorsUseRealNamesfalse Show the real names when available, rather than the user names.
$wgPageAuthorsLinkUserPagesfalse Link each author to its user page.
$wgPageAuthorsDelimiter', ' Delimiter between authors.

関連項目

  • Manual:$wgMaxCredits - A built-in option to list the latest author followed by others in order of most recent edit, in the wiki footer. This is not reliable because often the latest authors aren't the main ones.
  • Extension:Contributors - Lists authors by edit count. This is not reliable because some users tend to do few but big edits while others tend to do many small ones. Extreme but real cases include pages where the initial author creates the entire page in a single huge edit while other later editors make multiple edits fixing trivial issues.
  • Extension:SemanticExtraSpecialProperties - The _EUSER property lists authors by chronological order. This is not reliable either because while it's often the case that the first few editors are the main authors, it also happens that later editors contribute significantly and may even rewrite the entire page.
Category:All extensions/ja Category:Extensions in Wikimedia version control/ja Category:Extensions with manual MediaWiki version/ja Category:GPL licensed extensions/ja Category:GetMagicVariableIDs extensions/ja Category:ParserFirstCallInit extensions/ja Category:ParserGetVariableValueSwitch extensions/ja Category:Parser function extensions/ja Category:Stable extensions/ja