Extension:CreateWiki

This page is a translated version of the page Extension:CreateWiki and the translation is 36% complete.
Outdated translations are marked like this.
MediaWiki manüel uzantıları
CreateWiki
Sürüm durumu: kararlı
Açıklama Viki oluşturucuların başka bir viki sitesi içinde siteler oluşturmasına izin veren bir işlev sağlar. Üç özel sayfa (RequestWiki, RequestWikiQueue ve CreateWiki) sağlar.
Yazar(lar) Southparkfan, John Lewis, Paladox, Universal Omega
Sürdürücü(ler) Miraheze system administrators
En son sürüm continuous updates
MediaWiki 1.37.0+
PHP 7.4+
Veritabanı değişiklikleri Evet
Composer miraheze/create-wiki
Tablolar cw_comments
cw_requests
cw_wikis
Lisans GNU Genel Kamu Lisansı 3.0
İndir
  • $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 uzantısını çevirin

CreateWiki, kullanıcıların viki istemesine veya wiki oluşturmasına izin veren bir uzantıdır. It provides three additional special pages:

  • 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 ve Aaron Schulz'un CheckUser uzantısına ve Kudu'nun başka bir CreateWiki uzantısına dayanmaktadır.

Uyarı Uyarı: CreateWiki was designed and created specifically for the Miraheze wiki farm, and as such, may not always work on different sites or configurations. While efforts have been made to make it more usable by non-Miraheze wiki sites, this extension is still a primarily Miraheze-focused extension and aligns to Miraheze's configuration and style.

Issues and bug reporting

Bir sorunu veya hatayı bildirmek için lütfen Miraheze Phabricator kullanın. Çalışma panosu için buraya bakın.

Kurulum

  • Dosyaları İndir ve extensions/ klasörünüzdeki CreateWiki adlı dizine yerleştirin.
  • LocalSettings.php dosyanızın altına aşağıdaki kodu ekleyin:
    wfLoadExtension( 'CreateWiki' );
    
  • Bu uzantının ihtiyaç duyduğu gerekli veritabanı tablolarını otomatik olarak oluşturacak betik güncelleme komutunu çalıştırın.
  •   Yapıldı – Uzantının başarıyla yüklendiğini doğrulamak için vikinizde Special:Version seçeneğine gidin.

Kullanım

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.

Yapılandırma

parametre varsayılan yorum
$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 Viki sınıflandırması için kullanılan bir dizi kategori.
$wgCreateWikiCollation "" Sets the collation to use when creating the wiki database. Example is 'DEFAULT SET utf8mb4 COLLATE utf8mb4_unicode_ci'
$wgCreateWikiCustomDomainPage false Özel alanlar hakkında daha fazla bilgi için bağlantı kurulacak sayfa adı.
$wgCreateWikiDatabase false cw_wikis depolandığı veritabanın adı.
$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 Yeni viki oluşturmaları için e-posta gönderilip gönderilmeyeceği.
$wgCreateWikiNotificationEmail root@localhost Dahili olarak oluşturulan bildirim e-postalarının gönderileceği e-posta adresi. $wgCreateWikiEmailNotifications üzerinde bağlı değildir!
$wgCreateWikiGlobalWiki false Küresel vikinin veritabanı adı. (Burada RequestWiki etkinleştirilmeli ve Special:CreateWiki kullanılabilir olmalıdır.)
$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 Bir viki oluşturulduğunda varsayılan olarak oluşturulmasını istediğiniz SQL dosyaları. This configuration variable is required.
$wgCreateWikiSubdomain false Alt alan adlarının ana kısmı, ör. wiki.miraheze.org, miraheze.org ana bölümdür.
$wgCreateWikiUseCategories false Vikileri kategorize etmek için kategorilerin kullanılıp kullanılmayacağı.
$wgCreateWikiUseClosedWikis false Vikileri kapatmak için ön uç mantığının uygulanıp uygulanmayacağı.
$wgCreateWikiUseCustomDomains false RequestWiki'de vikiler için özel etki alanları talep etmeyi işlemek için ön uç mantığının uygulanıp uygulanmayacağı.
$wgCreateWikiUseEchoNotifications false Whether to use Echo notifications (beta feature).
$wgCreateWikiUseExperimental false Whether to implement front-end logic for marking wikis as experimental.
$wgCreateWikiUseInactiveWikis false Etkin olmayan vikiler için ön uç mantığının uygulanıp uygulanmayacağı.
$wgCreateWikiUseJobQueue false Whether to defer intensive tasks to the jobqueue.
$wgCreateWikiUsePrivateWikis false Vikileri özel olarak işaretlemek için ön uç mantığının uygulanıp uygulanmayacağı.

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

Ayrıca bakınız