Extension:Babel/hi

Category:GPL licensed extensions/hi
मीडियाविकि एक्सटेंशन मैन्युअल
Babel
प्रकाशन की स्थिति: स्थिरCategory:Stable extensions/hi
कार्यान्वयन पार्सर फंक्शन Category:Parser function extensions/hi
विवरण दूसरे सदस्यों को किसी भाषा में दक्षता के बारे में सूचित करने और समान स्तरों और भाषाओं के सदस्यों को वर्गीकृत करने के लिए एक पार्सर फंक्शन जोड़ता है।
लेखक Robert Leverington (RobertLवार्ता)
नवीनतम संस्करण Continuous updates
संगतता नीति Master में पीछे की तरफ से संगतता है।
MediaWiki >= 1.43.0
डेटाबेस बदलता है हाँ
Composer mediawiki/babelCategory:Extensions supporting Composer/hi
टेबल babel
लाइसेंस GNU साधारण सार्वजनिक लाइसेंस 2.0 या अधिक
डाउनलोड करें भाषा एक्सटेंशन बंडल में शामिल Category:Extensions in Wikimedia version control/hi
उदाहरण Translatewiki.net
  • $wgBabelMainCategory
  • $wgBabelAutoCreate
  • $wgBabelAllowOverride
  • $wgBabelCategorizeNamespaces
  • $wgBabelUseUserLanguage
  • $wgBabelCentralDb
  • $wgBabelCategoryNames
  • $wgBabelUseCommunityConfiguration
  • $wgBabelDefaultLevel
Babel एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है
मुद्दे अधूरे कार्य · बग की रिपोर्ट करें
Category:All extensions/hi

बेबल एक्सटेंशन एक पार्सर फंक्शन जोड़ता है जो साँचों पर निर्भर पुराने बेबल प्रणाली को बदल देगा। अगर किसी अज्ञात भाषा पैरामीटर का पता लगता है, यह जाँचेगा कि उस नाम से कोई साँचा है या नहीं, और अगर मौजूद हुआ तो उसे जोड़ दिया जाएगा। This information can then additionally be stored via categories, allowing others to find users who speak any particular language.

विकिमीडिया परियोजनाओं पर शब्द बेबल का इस्तेमाल (बाबल केे मीनार के सन्दर्भ में) विशिष्ट भाषाओं को बोलने वाले सदस्यों के बीच बहुभाषी संचार को आसान बनाने के लिए सदस्य पृष्ठों पर टेक्स्ट के लिए किया जाता था। विचार की शुरुआत हुई थी विकिमीडिया कॉमन्स से, और इसका इस्तेमाल अब कई दूसरे विकियों पर भी किया जाता है।

The Babel extension still makes use of templates: if an unrecognized language parameter is specified, the extension will see if there is an existing template with that name and include that if so.

स्थापित करें

  • फ़ाइलों को डाउनलोड करें और अपने extensions/ फ़ोल्डर के Babel नामक डिरेक्ट्री में डालें।
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Babel
    
  • अपने LocalSettings.php फ़ाइल के अंत में निम्न कोड जोड़ें:
    wfLoadExtension( 'Babel' );
    
  • अपडेट स्क्रिप्ट चलाएँ जो स्वचालित रूप से आवश्यक डेटाबेस टेबल्स का निर्माण करेगा जिसकी इस एक्सटेंशन को आवश्यकता है।
  • आवश्यकतानुसार कॉन्फ़िगर करें।
  • Yes पूर्ण – अपने विकि पर Special:Version पर जाकर देखें कि एक्सटेंशन को सफलतापूर्वक स्थापित किया गया है कि नहीं।
  • CSS को resources/ext.babel.less फ़ाइल में रखा जाता है। आप MediaWiki:Common.css पृष्ठ पर स्टाइल्स को ओवर्राइड करके उन्हें बदल सकते हैं।
  • अगर CLDR एक्सटेंशन मिलता है, भाषाओं के नाम वहाँ से लिए जाते हैं (अगर अनुवाद उपलब्ध न हो तो), वरना मीडियाविकि में मौजूद नाम और अंग्रेज़ी के डिफ़ॉल्ट नामों का इस्तेमाल किया जाएगा।

उपयोग

#babel पार्सर फंक्शन के लिए सिनटैक्स है:

{{#babel: babelcode1 | babelcode2 | ... }}

उस हर भाषा के लिए निम्न में से एक कोड जोड़ें जो आपको समझ आती हो, और उन्हें | से अलग करें, जहाँ पर xx भाषा के लिए मीडियाविकि पर भाषा कोड, ISO 639-1 कोड होगा। आम तौर पर हर स्तर का इस्तेमाल ऐसे किया जाता है:

xx-0
अगर आपको भाषा बिलकुल भी समझ न आती हो।
xx-1
साधारण दक्षता — आपको इस भाषा में लिखित सामग्री या साधारण प्रश्न समझ आते हैं।
xx-2
मध्यम दक्षता — संपादन या चर्चा के लिए काफ़ी है।
xx-3
उन्नत दक्षता — हालाँकि आप इस भाषा में बिना किसी झंझट के लिए सकते हैं, छोटी गलतियाँ हो सकती हैं।
xx-4
"मातृभाषा के करीब" का स्तर — हालाँकि यह आपकी मातृभाषा नहीं है, आप किसी ऐसे व्यक्ति की तरह ही भाषा को बोल सकते हैं जिसकी मातृभाषा वह हो।
xx-5
पेशेवर दक्षता।
xx या xx-N
यह आपकी मातृभाषा है और आपको मुहावरे सहित इस भाषा की पूर्ण जानकारी है।

कोई और साँचा जोड़ने के लिए बस साँचे का नाम जोड़ दें, जैसे अगर आप Template:User CSS को जोड़ना चाहते हैं, User CSS जोड़ें। साँचों के नामों पर उपसर्ग या प्रत्यय जोड़े जा सकते हैं, जो लोकल कॉन्फ़िगरेशन पर निर्भर होगा। इससे चयन को प्रतिबंधित किया जा सकता है और अक्षरों की संख्या को घटाया जा सकता है; उदाहरणस्वरूप, अगर कॉन्फ़िगर किया जाए तो CSS लिखने पर भी Template:User CSS को जोड़ दिया जाएगा। A prefix or suffix may be added to template names (e.g., User at the beginning) depending on the local configuration. This can be used to restrict the selection and reduce the length of parameters; for example, CSS could include Template:User CSS if configured in such a way.

For example in the mentioned case of CSS (Cascading Style Sheets), it might collide with the ISO code for Southern Ohlone language. In such case, to enforce the usage of a local template, simply prefix the parameter with an underscore (_), e.g. … html-3|_css-2|js-1 ….

Parameters

हैडर और फ़ुटर हटाने के लिए पहला पैरामीटर plain=1 बनाएँ, जैसे $plain। इससे दूसरे यूज़रबॉक्सों के साथ बेबल का इस्तेमाल करना आसान हो जाता है।

To hide categories, use the nocat=1 parameter as the first parameter, e.g., {{#babel: nocat=1 | babelcode1 | babelcode2 | ... }}.

Please note that only one of the parameters above is allowed. At the moment, it is not possible to use both parameters; for example, {{#babel: nocat=1 | plain=1 | babelcode1 | babelcode2 | ... }} will not work.

Categorization

If categorization is enabled, the extension creates categories using the Babel AutoCreate bot with the text specified in MediaWiki:babel-autocreate-text-levels and MediaWiki:babel-autocreate-text-main. With basic settings, the categories that the bot creates are not categorized, and to fix this, it is recommended to do the following:

  1. Create a template {{Babel category }} that will generate categories.
  2. Replacing text on MediaWiki:babel-autocreate-text-levels with
    {{Babel category|level=$1|language=$2|ISO=$3}}
    
  3. Replacing text on MediaWiki:babel-autocreate-text-main with
    {{Babel category|language=$1|ISO=$2}}
    

This will allow you to categorize categories automatically, and if something happens, you can simultaneously replace the categorization and text in all categories.

कॉन्फ़िगरेशन

कॉन्फ़िगरेशन के पैरामीटर्स

बेबल में कॉन्फ़िगरेशन के छः पैरामीटर्स हैं जिन्हें LocalSettings.php में बदला जा सकता है।

$wgBabelLanguageCodesCdb
(स्ट्रिंग) भाषा कोड के डेटाबेस फ़ाइल का पथ। डिफ़ॉल्ट काम कर जाएगा।
$wgBabelLanguageNamesCdb
(स्ट्रिंग) भाषा के नाम के डेटाबेस फ़ाइल का पथ। डिफ़ॉल्ट काम कर जाएगा।
$wgBabelCategoryNames
(स्ट्रिंग या बूलियन का ऐरे, जिसे स्ट्रिंग्स "1", "2", … "5", "N" से इनडेक्स किया जाता है) जहाँ हर एंट्री एक श्रेणी का नाम है जो उस इनडेक्स के कौशल स्तर से जुड़ा होगा। संभावित वेरिएबल तत्व हैं: %code% (भाषा कोड), %wikiname% (विकि की सामग्री की भाषा में भाषा का नाम), और %nativename% (भाषा में भाषा का नाम)। किसी विशिष्ट स्तर के लिए श्रेणी जोड़ना अक्षम करने के लिए उसके वैल्यू को false पर सेट करें।
उदाहरण:
$wgBabelCategoryNames = [
	'0' => 'User %code%-0',
	'1' => 'User %code%-1',
	'2' => 'User %code%-2',
	'3' => 'User %code%-3',
	'4' => 'User %code%-4',
	'5' => 'User %code%-5',
	'N' => 'User %code%-N',
];
"Category:User en-0" और "Category:User fr-N" जैसी श्रेणियों का इस्तेमाल करेगा। डिफ़ॉल्ट है "Category:Fr-N" आदि।
$wgBabelMainCategory
(स्ट्रिंग) हर भाषा के लिए मुख्य (गैर-स्तर) श्रेणी का नाम, जिसमें उस भाषा के सभी सदस्यों को जोड़ा जाएगा। अक्षम करने के लिए false पर सेट करें; इसका डिफ़ॉल्ट है प्रारूप "Category:Fr"। इसमें ऊपर के $wgBabelCategoryNames जैसा प्रारूप स्वीकृत है।
$wgBabelMainCategory = 'User %code%';
$wgBabelDefaultLevel
(स्ट्रिंग) जब कोई क्षमता स्तर नहीं दी जाती है तो डिफ़ॉल्ट क्षमता स्तर जिसका इस्तेमाल किया जाएगा। इसे $wgBabelCategoryNames से एक इनडेक्स होना होगा, ताकि "1", "2", … "5", "N" में से कोई एक स्ट्रिंग। डिफ़ॉल्ट है "N"।
$wgBabelUseUserLanguage
(बूलियन) हैडर और फ़ुटर संदेशों के लिए सदस्य के इंटरफ़ेस की भाषा का इस्तेमाल करना है या नहीं। अगर false होता है (डिफ़ॉल्ट), यह पृष्ठ की सामग्री की भाषा में होगा। ऐसा इसलिए है क्योंकि सदस्य इंटरफ़ेस की भाषा पार्सर कैश को टुकड़ों में बाँट सकती है।
$wgBabelCategorizeNamespaces
नामस्थानों का ऐरे जिनमें स्वचालित वर्गीकरण जोड़ना है। For example, if $wgBabelCategorizeNamespaces = [ NS_USER ];, then Babel will only add categories to pages in the user namespace. डिफ़ॉल्ट है null, जिसका मतलब है सभी नामस्थानों को वर्गीकृत करना है।
$wgBabelCategoryOverride
Whether to allow Babel categories to be overridden on the wiki using MediaWiki:Babel-category-override
$wgBabelAutoCreate
Whether to auto-create categories.

सिस्टम संदेश

मीडियाविकि नामस्थान संदेशों की मदद से भी कई अनुकूलन किए जा सकते हैं।

MediaWiki:babel-template "Template:सदस्य $1"
साँचे को जोड़ते समय उसके नाम का प्रारूप।
MediaWiki:babel-portal ""
भाषा कोड पर कड़ी के लक्ष्य का प्रारूप। Set to the empty string to not link the language code.
MediaWiki:Babel-autocreate-user "बबल स्वतःनिर्मित"
बेबल संबंधित श्रेणियों को अपने आप बनाने के लिए प्रयोग करने के लिए सदस्यनाम
MediaWiki:babel-autocreate-text-levels "इस श्रेणी में श्रेणीबद्ध सदस्यों ने यह बताया है कि $2 भाषा में उनकी कुशलता का स्तर $1 है।"
अलग-अलग भाषा स्तरों के लिए स्वतः निर्मित श्रेणियों में जोड़ने के लिए टेक्स्ट। अगर आप चाहते हैं कि उन्हें अपनी-अपनी भाषाओं में अपनी मुख्य श्रेणियों में जोड़ दिया जाए, आपको इसे बदलना होगा ($wgBabelMainCategory)।
MediaWiki:babel-autocreate-text-main "इस श्रेणी में श्रेणीबद्ध सदस्यों ने यह बताया है कि उन्हें $1 भाषा का ज्ञान है।"
गैर-स्तरिय स्वतः निर्मित श्रेणियों में जोड़ने के लिए टेक्स्ट। अगर आप चाहते हैं कि उन्हें सभी भाषाओं की जनक श्रेणी में जोड़ दिया जाए, आपको इसे बदलना होगा।
MediaWiki:babel "बेबल सदस्य जानकारी"
बेबल बॉक्स का हैडर Set to - to not display a header.
MediaWiki:babel-url "Project:बेबल"
पृष्ठ का नाम जहाँ बेबल एक्सटेंशन की जानकारी पाई जा सकती है Set to - to display no link in the header.
MediaWiki:Babel-footer "भाषा अनुसार सदस्य"
बेबल बॉक्स का फ़ुटर Set to - to not display a footer.
MediaWiki:babel-footer-url " :श्रेणी:भाषा अनुसार सदस्य"
बेबल के बॉक्स पर जोड़ने के लिए के लिए पृष्ठ की कड़ी
MediaWiki:Babel-category-override "$1"
Overrides any automatically-generated Babel categories. पैरामीटर्स:
$1 = the category that would be generated normally.
$2 = the language code
$3 = the babel level.
Any categories overridden using this method will not be auto-created to reduce the risk of vandalism or mistaken edits to that page.

API

meta=babel (bab)

(main | query | babel)

Get information about what languages the user knows

Specific parameter:
Other general parameters are available.
babuser

User to get information about

This parameter is required.
Type: user, by any of username, IP, Temporary user, IP range and interwiki name (e.g. "prefix>ExampleName")
Example:
Get the Babel information for user Example
api.php?action=query&meta=babel&babuser=Example [open in sandbox]
Category:Extensions used on Wikimedia/hi#Babel/hi Category:Localisation extensions/hi
Category:All extensions/hi Category:CommunityConfigurationProvider initList extensions/hi Category:Extensions in Wikimedia version control/hi Category:Extensions included in Canasta/hi Category:Extensions included in Miraheze/hi Category:Extensions included in ShoutWiki/hi Category:Extensions included in WikiForge/hi Category:Extensions included in wiki.gg/hi Category:Extensions supporting Composer/hi Category:Extensions used on Wikimedia/hi Category:GPL licensed extensions/hi Category:LinksUpdate extensions/hi Category:LoadExtensionSchemaUpdates extensions/hi Category:Localisation extensions/hi Category:ParserFirstCallInit extensions/hi Category:Parser function extensions/hi Category:Stable extensions/hi Category:UserGetReservedNames extensions/hi