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

Content deleted Content added
Mahitgar (चर्चा | योगदान)
No edit summary
Mahitgar (चर्चा | योगदान)
No edit summary
ओळ ९:
साचा कागदपत्र should cover:
 
*साचाचे '''मुळ उद्देश''' : ते काय करते आणि if it लेगेच लक्षात आणून देणारे नसेल, why it करावयास हवे. If there are otherइतर साचे सारख्या नावाचे किंवा उद्दीष्ट्य, it's a good idea त्यांचा उल्लेख करणे, in order शक्यता कमी करण्याकरिता चुकीचे वापरले जाण्यापासून.
*साचाचे '''[[सहाय्य:साचे#प्रचल हेतुक|पॅरामीटर्स]]''' :प्रचल whetherहेतुक(पॅरामीटर्स) they are क्रमीत, नावे दिलीदिलेले किंवाकी ऐच्छिक, आहेत? आणि ifजर so,ऐच्छिक whatअसेल तर, the अविचल मुल्ये areकाय आहेत आणि त्यांचा काय परिणाम असेल. Ifजर aका एखादे प्रचल हेतुक(पॅरामीटर्स) can take only aकेवळ मुल्यांचा मर्यादीत संचसंचच किंवाघेऊ isशकत असेल किंवा constrained कोणत्याही प्रकारे बंधनात असेल,- उदाहरणार्थ, ifजर itते can onlyकेवळ use: “हो”, “नको” किंवा a numberसंख्या, thisउपयोग असेकरू असावेशकते,-तर ते स्पष्ट नमुद केलेले असे असावे .
* '''उपयोगाची उदाहरणे''': 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 साचे]]).
ओळ १७:
साचा कागदपत्र 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 anotherदुसरे पान. 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).
 
==कागदपत्र उपपान कसे तयार करावे==
ओळ ७४:
 
==बरेचसे साचे, एक कागदपत्र पान==
When several साचे work together or are very similar then it is often clearer आणि easier to maintain one single कागदपत्र पान that documents them together. The simplest way to do this is to make a full कागदपत्र पान at one चे साचे, आणि then make "soft redirects" from the otherइतर साचे. That is, to make very short documentation पानs at the otherइतर साचे that have onlyकेवळ one or two sentences that states where the full कागदपत्र can be found आणि दुवा to it. See for instance {{tl|wrap}}.
 
==तोकडे साचे==