एक्सटेंशन:CreateWiki

This page is a translated version of the page Extension:CreateWiki and the translation is 89% complete.
Outdated translations are marked like this.
मीडियाविकि एक्सटेंशन मैन्युअल
CreateWiki
प्रकाशन की स्थिति: स्थिर
विवरण एक फ़ंक्शन प्रदान करता है जिससे विकि सृष्टिकार किसी दूसरे विकि साइट के अंदर नई विकि साइट्स बना सकते हैं। तीन अतिरिक्त 'विशेष पृष्ठ' (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 एक एक्सटेंशन है जिसकी मदद से किसी विकि फ़ार्म पर एक विकि साइट पर पंजीकृत सदस्य नई विकि साइटों का अनुरोध कर सकते हैं या फिर उस विकि फ़ार्म पर नई विकि साइट्स बना सकते हैं। यह तीन अतिरिक्त विशेष पृष्ठ प्रदान करता है, RequestWiki (नए विकियों का अनुरोध करने के लिए), RequestWikiQueue (नए विकियों के अनुरोधों का कतार देखने और नए विकियों के अनुरोधों को हैंडल करने के लिए), और CreateWiki (जिससे कुछ सदस्य नए विकियाँ बना सकते हैं)।

  • 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

CreateWiki का यह संस्करण Tim Starling और Aaron Schulz के पूर्व Checkuser एक्सटेंशन पर, और Kudu के एक और CreateWiki एक्सटेंशन पर आधारित है।

चेतावनी चेतावनी: CreateWiki को विशिष्ट रूप से Miraheze विकि फ़ार्म के लिए डिज़ाइन किया और बनाया गया था, और इसलिए यह अलग-अलग साइटों और कॉन्फ़िगरेशनों पर काम न भी कर सकता है। जहाँ इसे गैर-Miraheze विकि साइटों के लिए उपयोगी बनाने का प्रयास किया गया है, यह एक्सटेंशन अब भी Miraheze पर ही केंद्रित है, और Miraheze के कॉन्फ़िगरेशन और स्टाइल का पालन करता है।

Issues and bug reporting

किसी बग या समस्या को रिपोर्ट करने के लिए कृपया Miraheze Phabricator का इस्तेमाल करें। कार्यपटल के लिए यहाँ देखें।

स्थापना

  • फ़ाइलों को डाउनलोड करें और अपने extensions/ फ़ोल्डर के CreateWiki नामक डिरेक्ट्री में डालें।
  • अपने LocalSettings.php फ़ाइल के अंत में निम्न कोड जोड़ें:
    wfLoadExtension( 'CreateWiki' );
    
  • अपडेट स्क्रिप्ट चलाएँ जो स्वचालित रूप से आवश्यक डेटाबेस टेबल्स का निर्माण करेगा जिसकी इस एक्सटेंशन को आवश्यकता है।
  •   पूर्ण – अपने विकि पर 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 ग्लोबल विकि के डेटाबेस का नाम। (जहाँ 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

ये भी देखें