Extension:CreateWiki

From mediawiki.org
This page is a translated version of the page Extension:CreateWiki and the translation is 83% complete.
Outdated translations are marked like this.
MediaWiki 拡張機能マニュアル
CreateWiki
リリースの状態: 安定
説明 ウィキ作成者が他のウィキサイト内に新しいウィキサイトを作成する機能を提供する。 3つの特別ページ(RequestWiki、RequestWikiQueue、CreateWiki)を作成します。
メンテナー Miraheze system administrators
最新バージョン continuous updates
MediaWiki 1.37.0+
PHP 7.4+
データベースの変更 はい
Composer miraheze/create-wiki
テーブル cw_comments
cw_requests
cw_wikis
ライセンス GNU 一般公衆利用許諾書 3.0
ダウンロード
  • $wgCreateWikiUseExperimental
  • $wgCreateWikiCacheDirectory
  • $wgCreateWikiDatabase
  • $wgCreateWikiCollation
  • $wgCreateWikiContainers
  • $wgCreateWikiDatabaseClusters
  • $wgCreateWikiStateDays
  • $wgCreateWikiNotificationEmail
  • $wgCreateWikiAIThreshold
  • $wgCreateWikiUseJobQueue
  • $wgCreateWikiGlobalWiki
  • $wgCreateWikiUseInactiveWikis
  • $wgCreateWikiCategories
  • $wgCreateWikiAutoApprovalFilter
  • $wgCreateWikiUseCustomDomains
  • $wgCreateWikiUseEchoNotifications
  • $wgCreateWikiUseClosedWikis
  • $wgCreateWikiUseCategories
  • $wgCreateWikiPersistentModelFile
  • $wgCreateWikiSQLfiles
  • $wgCreateWikiDatabaseClustersInactive
  • $wgCreateWikiSubdomain
  • $wgCreateWikiDisallowedSubdomains
  • $wgCreateWikiShowBiographicalOption
  • $wgCreateWikiInactiveExemptReasonOptions
  • $wgCreateWikiUsePrivateWikis
  • $wgCreateWikiEmailNotifications
  • $wgCreateWikiPurposes
  • $wgCreateWikiCustomDomainPage
  • $wgCreateWikiEnableManageInactiveWikis
  • $wgCreateWikiDatabaseSuffix
  • $wgCreateWikiCannedResponses

  • createwiki
  • requestwiki
CreateWiki 拡張機能の翻訳にご協力ください

CreateWiki is an extension which allows registered users of one wiki site on a wiki farm to request new wiki sites or create new wiki sites on that wiki farm. 3つの特別ページが提供されます:

  • Special:RequestWiki — for requesting new wikis
  • Special:RequestWikiQueue — for viewing the new wiki request queue and handling new wiki requests
  • Special:CreateWiki — which allows some users to create new wiki sites

Tim Starling と Aaron Schulz による Checkuser 拡張機能と、Kudu による別の CreateWiki 拡張がベースになっています。

警告 警告: CreateWikiはMiraheze専用に設計されているため、異なるセットアップでは必ずしも動作しない可能性があります。Miraheze以外のWikiでも使えるようにする努力はしていますが、この拡張機能はまだMirahezeに主眼を置いた拡張機能であり、Mirahezeの設定に合わせたものになっています。

Issues and bug reporting

問題やバグを報告するには、Miraheze Phabricatorを使用してください。 ワークボードについてはこちらを参照してください。

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のCreateWikiという名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'CreateWiki' );
    
  • 更新スクリプトを実行します。このスクリプトは、この拡張機能が必要とするデータベーステーブルを自動的に作成します。
  • Yes 完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

使用法

All users (those in the User group by default) can request new wiki sites at Special:RequestWiki. Once they have requested a new wiki, they will be assigned a queue number and can check the status of their request at Special:RequestWikiQueue.

Those with the 'Wiki Creators' (createwiki) user right are able to check Special:RequestWikiQueue, and handle all wiki creation requests. At that page, they can either approve or decline wiki requests, and also change the visibility of a request. Everyone can check RequestWikiQueue at any time to see all requests ever submitted or filter by approved, declined, or in review tasks. Users can also filter by user.

Those with the 'Wiki Creators' (createwiki) user right can also bypass Special:RequestWiki, and manually create new wiki sites themselves at Special:CreateWiki.

設定

パラメーター 既定 コメント
$wgCreateWikiDisallowedSubdomains [] Regex to match for disallowed subdomains.
$wgCreateWikiCacheDirectory "" The path to store CreateWiki cache files at. This configuration variable is required.
$wgCreateWikiCannedResponses false Array of default responses to give. If this is enabled, free-text options are removed.
$wgCreateWikiCategories false ウィキのカテゴリ分類に使用されるカテゴリの配列。
$wgCreateWikiCollation "" Sets the collation to use when creating the wiki database. Example is 'DEFAULT SET utf8mb4 COLLATE utf8mb4_unicode_ci'
$wgCreateWikiCustomDomainPage false カスタムドメインの詳細について、リンク先のページ名。
$wgCreateWikiDatabase false cw_wikisが格納されているデータベース名。
$wgCreateWikiDatabaseClusters [] Array. LBFactory clusters which CreateWiki considers active.
$wgCreateWikiDatabaseClustersInactive [] Array. LBFactory clusters which are not considered active for use of automatic load-balancing.
$wgCreateWikiStateDays
 'inactive' => 45,
 'closed' => 15,
 'removed' => 120,
 'deleted' => 7,
Array. Integer values in days when a wiki is deemed inactive, closed, removed (hidden), and deleted. Number of days passed since last change - not from initial inactivity.
$wgCreateWikiEmailNotifications false 新しいウィキの作成に対してメールを送るかどうか。
$wgCreateWikiNotificationEmail root@localhost 内部で生成される通知メールの送信先メールアドレス。 $wgCreateWikiEmailNotificationsに依存しない!
$wgCreateWikiGlobalWiki false グローバルWikiのデータベース名。 (RequestWikiが有効でSpecial:CreateWikiが利用可能であるべき場所)。
$wgCreateWikiInactiveExemptReasonOptions [] Array of possible options for marking an individual wiki as exempt from inactivity.
$wgCreateWikiPurposes [] Array. List of identified purposes to show when requesting a new wiki.
$wgCreateWikiShowBiographicalOption false Boolean. Whether to show a biographical person option when requesting a new wiki.
$wgCreateWikiSQLfiles false ウィキ作成時に既定で作成されてほしいSQLファイル。 この構成変数は必須です。
$wgCreateWikiSubdomain false 下位ドメインのマスター部分、例えばwiki.miraheze.org, miraheze.orgはマスター部分です。
$wgCreateWikiUseCategories false ウィキを分類するためにカテゴリを使用するかどうか。
$wgCreateWikiUseClosedWikis false ウィキを閉じるためのフロントエンドのロジックを実装するかどうか。
$wgCreateWikiUseCustomDomains false RequestWikiでウィキのカスタム ドメインを要求する処理を行うフロントエンドのロジックを実装するかどうか。
$wgCreateWikiUseEchoNotifications false Whether to use Echo notifications (beta feature).
$wgCreateWikiUseExperimental false Whether to implement front-end logic for marking wikis as experimental.
$wgCreateWikiUseInactiveWikis false 非アクティブなウィキに対するフロントエンドのロジックを実装するかどうか。
$wgCreateWikiUseJobQueue false Whether to defer intensive tasks to the jobqueue.
$wgCreateWikiUsePrivateWikis false ウィキを非公開としてマークするためのフロントエンドのロジックを実装するかどうか。

REST API

wiki_request

This is an experimental API and is not production-ready!

Route: /createwiki/v0/wiki_request/{id}

Method: GET

Description

Request example

curl https://example.com/w/rest.php/createwiki/v0/wiki_request/1

Request parameters

parameter required example description
id Yes 1 The ID of the wiki request whose data you want to retrieve

Responses

200 Success
Response example
{
  "comment": "Purpose:  None of the above\ntest",
  "dbname": "testwiki",
  "language": "en",
  "sitename": "TestWiki",
  "status": "approved",
  "timestamp": "20230426042416",
  "url": "test.example.com",
  "requester": "Example",
  "category": "uncategorised",
  "bio": "0",
  "comments": [
    {
      "comment": "Request approved.",
      "timestamp": "20231129035014",
      "user": "Admin"
    }
  ]
}
400 Wiki request ID does not exist, or the request has been suppressed
Response example
{
  "message": "Invalid request ID",
  "httpCode": 400,
  "httpReason": "Bad Request"
}

Response schema

TODO

関連項目