"विकिपीडिया:साच्यांचे दस्तऐवज" च्या विविध आवृत्यांमधील फरक

Content deleted Content added
Mahitgar (चर्चा | योगदान)
No edit summary
Mahitgar (चर्चा | योगदान)
No edit summary
ओळ ९:
साचा कागदपत्र should cover:
 
*साचाचे '''मुळ उद्देश''' : ते काय करते आणि ifजर itते लेगेच लक्षात आणून देणारे नसेल, why it करावयास हवे. Ifजर का there are इतर साचे सारख्या नावाचे किंवा उद्दीष्ट्य, it's a good idea त्यांचा उल्लेख करणे, in order शक्यता कमी करण्याकरिता चुकीचे वापरले जाण्यापासून.
*साचाचे '''[[सहाय्य:साचे#प्रचल हेतुक|पॅरामीटर्स]]''' :प्रचल हेतुक(पॅरामीटर्स) क्रमीत, नावे दिलेले की ऐच्छिक आहेत? आणि जर ऐच्छिक असेल तर, अविचल मुल्ये काय आहेत आणि त्यांचा काय परिणाम असेल. जर का एखादे प्रचल हेतुक(पॅरामीटर्स) केवळ मुल्यांचा मर्यादीत संचच घेऊ शकत असेल किंवा कोणत्याही प्रकारे बंधनात असेल,- उदाहरणार्थ, जर ते केवळ : “हो”, “नको” किंवा संख्या, उपयोग करू शकते,-तर ते स्पष्ट नमुद केलेले असे असावे .
* '''उपयोगाची उदाहरणे''': specifyनेमका theविकिमजकुर exactनमुद wikitextकरावा that असेजेणे असावेकरून usedत्याचा आणिtheउपयोग resultअसा thatअसावा itआणि produces.त्याचा Theपरिणाम wikitextअसा canअसेल beहे enclosedलक्षात inयेईल. विकिमजकुर त्याला स्पष्ट करण्याकरिता a {{nowrap|<code><nowiki><code>…</code></nowiki></code>}} container, to make it clear आणि<code>easyया to copyप्रमाणे, likeनक्कलण्यास thisसोप्या</code> अशा धारकात घेरलेला असु शकतो . Ifजर का the साचा can be used in several different ways, with किंवा without वैकल्पिक प्रचल हेतुक(पॅरामीटर्स), उदाहरणार्थ, provide a range of examples. A good way to do so is to transclude the साचा itself into the documentation a few times (i.e., use live examples), with different प्रचल हेतुक(पॅरामीटर्स)s each time आणि list the प्रचल हेतुक(पॅरामीटर्स)s used in each case.
* '''संबधीत साचे''': ifजर का the साचा is one of a series of साचे, अंतर्भूत दुवाs to these – in particular, ensure thatजेणे करून every साचा in the series is दुवाed from each इतरांचे, as this makes navigation easier. (A separate navigation साचा may be useful for this purpose, see: [[साचा:Protection साचे]]).
* '''[[विकिपीडिया:वर्गीकरणे|वर्गीकरणे]]''' आणि '''[[विकिपीडिया:आंतरविकिमीडिया दुवे|आंतरविकिमीडिया दुवे]]''', where applicable. Like the कागदपत्र, these must be within a {{nowrap|<code><nowiki>&lt;noinclude>…&lt;/noinclude></nowiki></code>}} धारकातच असावेत. Many साचा वर्गिकरणे are available, see: [[:वर्ग:विकिपीडिया साचे]] to browse through them.
 
साचा कागदपत्र is often placed in a [[विकिपीडिया:उपपाने|उपपान]] साचाचे itself, which is then [[विकिपीडिया:Transclusion|transcluded]] at the end साचाचे पान. This separates the often complex साचा code from the documentation, making the documentation easier to edit. It also allows साचे to be [[विकिपीडिया:पानसुरक्षा निती|सुरक्षीत]] where necessary, while allowing anyone to edit the documentation. This method is sometimes referred to as the “साचा कागदपत्र पान pattern”.
 
कागदपत्र of any sort on a साचा पान should नेहमी असावे be enclosedघेरलेला by a {{nowrap|<code><nowiki>&lt;noinclude>…&lt;/noinclude></nowiki></code>}} container, so thatजेणे करून तो काय करतो not show up when the साचा is used on दुसरे पान. Text on the साचा पान itself adds to the amount of text which must be processed when displaying the साचा, which is [[विकिपीडिया:साचा मर्यादा|मर्यादाed]] for performance reasons. Placing the कागदपत्र in a उपपान avoids this (MediaWiki developers have <span class="plainlinks">[http://en.wikipedia.org/w/index.php?title=Wikipedia:Village_pump_(technical)&diff=prev&oldid=69888944 recommended]</span> it for this reason).
 
==कागदपत्र उपपान कसे तयार करावे==
साचा कागदपत्र उपपाने असे असावे नावे आणि formatted using the following general pattern, for consistency.
 
Suppose your साचा is नावे <code>साचा:X</code>. Create a उपपान with the नाव<code>साचा:X/कागदपत्र</code>. See the details at {{tl|कागदपत्र उपपान}} किंवा copy-paste the following wikitextविकिमजकुर as a start for your कागदपत्र:
 
<pre>
ओळ ३७:
The top line will display a message explaining the current पान आणि a दुवा to the साचा पान.
 
Insert the कागदपत्र after the top line आणि वर्गिकरणे आणि interwikis under the appropriate comment line – leaving the comment in place, soजेणे thatकरून the layout is preserved when the पान is edited in future. The उपपान साचा sets a <NOWIKI>{{DEFAULTSORT:{{PAGENAME}}}}</NOWIKI>, ensuring that a <CODE>साचा:X</CODE> will be properly sorted at "X" आणि not "T", it is thus not useful किंवा desirable to add a <NOWIKI>{{PAGENAME}}</NOWIKI> sortkey to the वर्गिकरणे.
 
Save the उपपान आणि return to the साचा itself, <code>साचा:X</code>, in this example. Edit the साचा आणि append the following at the end साचाचे code:
ओळ ५१:
'''Important''': Make sure the opening <code><nowiki>&lt;noinclude></nowiki></code> begins on the same line as the last character साचाचे code किंवा text आणि ''not'' on a new line. Otherwise, extra space will be inserted below the साचा when it is used, which is usually not wanted.
 
Ifजर का the साचा is alreadyआधीच सुरक्षीत, ask an [[विकिपीडिया:Administrators|administrator]] to do this किंवा request an edit by using an {{tl2|संपादनसुरक्षीत}} on the साचा's चर्चा पान. Ifजर का कागदपत्र, वर्गिकरणे आणि आंतरविकि दुवाs alreadyआधीच exist in a विभाग, enclosedघेरलेला within a {{nowrap|<code><nowiki>&lt;noinclude>…&lt;/noinclude></nowiki></code>}} container, move them into the कागदपत्र उपपान, as it is best not to have कागदपत्र split across two separate पानs.
 
Ifजर का the code is put on the साचा पान first, one can benefit from the [[mw:Extension:Inputbox#Preload|preload]] feature to get a pre-filled कागदपत्र पान skeleton; ifजर theकाthe कागदपत्र पान काय करते not exist yet, clicking the edit दुवा on the साचा पान will preload the contents of [[साचा:कागदपत्र/preload]] into the editbox चे /कागदपत्र उपपान creation.
 
You may wish to redirect the चर्चा पान चे /कागदपत्र उपपान to the चर्चा पान चे साचा itself. Then all चर्चा relating to the साचा आणिits कागदपत्र will end up on the same चर्चापान. उदाहरणार्थ, redirect <code>साचा चर्चा:X/कागदपत्र</code> to <code>साचा चर्चा:X</code>.
ओळ ७१:
==/धूळपाटी आणि /टेस्टकेसेस==
टेस्टकेसेस{{मराठी शब्द सुचवा}}
Before doing changes to a साचा it can be good to first copy the साचा code to a sandbox आणि run some testcases, since the साचा might be visible on thousands of पानs. Ifजर का you create उपपाने नावे exactly "'''/sandbox'''" आणि "'''/testcases'''" to a साचा then the green {{tlc|कागदपत्र}} box on the साचा auto-detects this आणि will show दुवाs to those पानs in its header. See [[विकिपीडिया:साचा test cases]] for more information.
 
==बरेचसे साचे, एक कागदपत्र पान==
ओळ ७७:
 
==तोकडे साचे==
तोकडे साचे are one चे very rare forms of साचा which do not generally have documentation. As all तोकडे साचे operate in identical ways, they could theoretically be दुवाed to one documentation पान giving instruction for their use. This is, however, regarded as superfluous, since all stub साचे alreadyआधीच contain a दुवा to [[WP:STUB]], which more thoroughly covers all the information that would normally be covered एखाद्या दस्त एवज पानाने.
 
==हे सुद्धा पहा==