This page, or parts of it, are still untranslated. Please translate it to the appropriate language (हिन्दी).
ऐडरेलमोडल (AddRailModule) आपके विकि के साइड-रेल पर एक कस्टम मॉडल जोड़ देता है। डिफ़ॉल्ट से, यह Template:RailModule का कंटेंट साइड रेल के नीचे (पुनःपरिसंचरण मॉडल के बस ऊपर)। कॉन्फ़िगरेशन के साथ, कई मॉडलों को जोड़ा जा सकता है, और ज़्यादा-से-ज़्यादा दो मॉडलों को साइड रेल के ऊपर (ऊपर के ऐड मॉडल के ऊपर) जोड़ा जा सकता है। हर मॉडल
section.railModule.rail-module में लपेटा हुआ होता है।
स्वीकार्य मॉडलों की संख्या और ऊचाई का एक सीमा है। रेल मॉडलों का कुल आकार आम रेल मॉडलों से ऊंचा नहीं होना चाहिए। और सिर्फ एक मॉडल को Recent Wiki Activity मॉडल के ऊपर होने की (प्रेपेंड होने की) इजाज़त है।
Installation
Configuration
Template:RailModule के कंटेंट को साइड रेल के ऊपर की तरफ पर जोड़ने के लिए:
window.AddRailModule = [{prepend: true}];
To add multiple modules (e.g., the contents of Template:Foo, Template:Bar, and Template:Baz) towards the bottom of the side rail:
window.AddRailModule = ['Template:Foo', 'Template:Bar', 'Template:Baz'];
नोट: अगर आप प्रेपेंड करने के लिए दो से ज़्यादा मॉडल चुनते हैं, सिर्फ पहले दोनों को इज़्ज़त मिलेगी।
window.AddRailModule = [
{page: 'Template:Foo', prepend: true},
'Template:Bar',
'Template:Baz',
];
Note: If you specify more than two modules for prepending, only the first two will be honored.
window.AddRailModule = [
{page: 'Template:Foo', prepend: true}, // ठीक है
{page: 'Template:Bar', prepend: true}, // ठीक है
{page: 'Template:Baz', prepend: true}, // ठीक नहीं है; इसके बजाय साइड रेल के नीचे की तरफ जोड़ा जाएगा
];
हर मॉडल का कंटेंट maxAge सेकंड के लिए कैच्ड हो सकता है। डिफ़ॉल्ट से यह ३०० सेकंड है (पाँच मिनट)। अगर आपका मॉडल स्थायी नहीं है- यानि वह अक्सर अपडेट होता है (जैसे कि पॉल), यह बेतरतीब स्वभाव का है, या यह पृष्ठ-नाम वेरिएबलों जैसे {{PAGENAME}} पर निर्भर है, maxAge को ० सेकंड पर सेट करे। अगर आपका मॉडल स्थायी है, maxAge को ८६,४०० सेकंड (एक दिन) तक सेट किया जा सकता है।
Using configuration options with Fandom Developers Wiki scripts
The instructions on this page describe how to use configuration options with a script. Here on the Fandom Developers Wiki, many scripts provide optional configuration settings as a mean to alter or enhance the default behavior of the script. When installing configuration options in your JavaScript file, please note that they need to go above the import statement in order to work — unless the directions say otherwise. In case MediaWiki:ImportJS is used to load the scripts, it will be executed last.
// 1. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
// 2. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 1. AjaxRC configuration option
window.ajaxRefresh = 30000;
// 2. AjaxRC import statement
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:AjaxRC.js'
]
});
स्टाइल करना
सारे कस्टम मॉडलों को टारगेट करने के लिए, .railModule सिलेक्टर का इस्तेमाल करे। ख़ास कस्टम मॉडलों को टारगेट करने के लिए अपने टेम्पलेट पर हर मॉडल को अपने ख़ास कंटेनर एलिमेंट से रैप करे और उसे सेलेक्ट करे।
Forks
NewPagesModule
After you've installed the script, copy the following contents to the Template:NewPagesModule page on your wiki:
<h2>{{int:newpages}}</h2>
<div class="new-pages-rail-module">
{{Special:NewPages/4}}
<div class="more">'''[[Special:NewPages|{{int:oasis-more}}]]'''</div>
</div>
Also import the script's stylesheet to customize the module:
And add your template to following parameters (in addition to those already connected; if there are none, then only one template):window.AddRailModule = ['Template:Foo', 'Template:Bar', 'Template:Baz', 'Template:NewPagesModule'];