Extension:PerPageLicense/hi
This extension is currently not actively maintained! Although it may still work, any bug reports or feature requests will more than likely be ignored. If you are interested in taking on the task of developing and maintaining this extension, you can request repository ownership. As a courtesy, you may want to contact the author. You should also remove this template and list yourself as maintaining the extension in the page's {{extension}} infobox. |
A request to archive this extension has been made on Phabricator. See टास्क T346010 for the archival request and the rationale for the request, and to leave comments about the request. |
![]() प्रकाशन की स्थिति: अनानुरक्षित |
|
---|---|
कार्यान्वयन | पर्सर एक्सटेंशन |
विवरण | Enables licenses to be set on a per-namespace or per-page basis |
लेखक | (Leucosticteवार्ता) |
नवीनतम संस्करण | 1.1.0 (2017-10-30) |
संगतता नीति | मीडियाविकि के साथ प्रकाशित स्नैपशॉट्स। Master में पीछे की तरफ से संगतता नहीं है। |
MediaWiki | 1.23+ |
डेटाबेस बदलता है | नहीं |
लाइसेंस | GNU साधारण सार्वजनिक लाइसेंस 3.0 या अधिक |
डाउनलोड करें | |
उदाहरण | http://wiki.mises.org |
|
|
Quarterly downloads | 2 (Ranked 160th) |
PerPageLicense एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है | |
The PerPageLicense extension enables license footer variables (viz. $wgRightsIcon , $wgRightsUrl , and $wgRightsText ) to be set on a per-namespace or per-page basis.
Download
इस एक्सटेंशन को सीधे गिट से प्राप्त किया जा सकता है [?]:
- कोड देखें
- कुछ एक्सटेंशनों पर स्थिर प्रकाशनों के टैग्स हैं।
- टैग्स देखें
- टैग चुनें
- "स्नैपशॉट" पर क्लिक करें
- हर शाखा को एक पिछले मीडियाविकि प्रकाशन से जोड़ा जाता है। एक "master" शाखा भी है जिसमें नवीनतम आल्फ़ा संस्करण होगा (मीडियाविकि के एक आल्फ़ा संस्करण की ज़रूरत पड़ सकती है)।
- शाखाएँ देखें
- एक शाखा का नाम चुनें
- "जारी रखें" पर क्लिक करें
स्नैपशॉट को एक्सट्रैक्ट करें और अपने मीडियाविकि स्थापना के extensions/PerPageLicense/ डिरेक्ट्री में डाल दें।
अगर आपने गिट का इस्तेमाल किया हुआ है और आप अपने सर्वर तक शेल से पहुँच सकते हैं, आप एक्सटेंशन को इस तरह से भी प्राप्त कर सकते हैं:
cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PerPageLicense.git
Installation
- फाइलों को डाउनलोड करें और अपने
extensions/
फोल्डर केPerPageLicense
नामक डिरेक्ट्री में डालें। - अपने LocalSettings.php फ़ाइल के अंत में निम्न कोड जोड़ें:
require_once "$IP/extensions/PerPageLicense/PerPageLicense.php";
पूर्ण – अपने विकि पर Special:Version पर जाकर देखें कि एक्सटेंशन को सफलतापूर्वक स्थापित किया गया है कि नहीं।
Configuration
Change these settings to your liking, making sure that you include them in LocalSettings.php
after the require_once
line installing the extension.
// Page from which to obtain templates and associated licenses.
$wgPerPageLicenseTemplatePage = 'MediaWiki:License-templates';
// Array of licenses.
$wgPerPageLicenseLicenses = array (
'cc-0' => array(
'url' => 'http://creativecommons.org/publicdomain/zero/1.0/',
'src' => "{$wgStylePath}/common/images/cc-by-sa.png",
'alt' => 'Creative Commons 0',
),
'cc-by-nc-sa' => array(
'url' => 'http://creativecommons.org/licenses/by-nc/3.0/',
'src' => "{$wgStylePath}/common/images/cc-by-nc-sa.png",
'alt' => 'Creative Commons Attribution-NonCommercial 3.0 Unported',
),
'cc-by' => array(
'url' => 'http://creativecommons.org/licenses/by/3.0/',
'src' => "{$wgStylePath}/common/images/cc-by.png",
'alt' => 'Creative Commons Attribution 3.0 Unported',
),
'cc-by-sa' => array(
'url' => 'http://creativecommons.org/licenses/by-sa/3.0/',
'src' => "{$wgStylePath}/common/images/cc-by-sa.png",
'alt' => 'Creative Commons Attribution Share-Alike 3.0 Unported',
),
'gnu-fdl' => array(
'url' => 'http://www.gnu.org/copyleft/fdl.html',
'src' => "{$wgStylePath}/common/images/gnu-fdl.png",
'alt' => 'GNU Free Documentation License',
),
'public-domain' => array(
'url' => 'http://creativecommons.org/licenses/publicdomain/',
'src' => "{$wgStylePath}/common/images/public-domain.png",
'alt' => 'public domain'
),
);
// Array of namespaces and their licenses.
$wgPerPageLicenseNamespaces = array();
As an example, you might put:
$wgPerPageLicenseNamespaces = array (
0 => 'cc-0',
);
This would license everything in mainspace as Creative Commons Zero.
उपयोग
Edit MediaWiki:License-templates on your wiki. Add templates and their associated licenses. Put each on a separate line. E.g.:
|Wikipedia text || cc-by-sa
Now any page with the {{Wikipedia text}} template will show the license footers for CC BY-SA. Note that in the event of a conflict between per-namespace and per-page licensing, the per-page licensing prevails.