"विकिपीडिया:साच्यांचे दस्तऐवज" च्या विविध आवृत्यांमधील फरक
Content deleted Content added
No edit summary |
No edit summary |
||
ओळ ९:
साचा कागदपत्र should cover:
*साचाचे '''मुळ उद्देश''' : ते काय करते आणि
*साचाचे '''[[सहाय्य:साचे#प्रचल हेतुक|पॅरामीटर्स]]''' :प्रचल हेतुक(पॅरामीटर्स) क्रमीत, नावे दिलेले की ऐच्छिक आहेत? आणि जर ऐच्छिक असेल तर, अविचल मुल्ये काय आहेत आणि त्यांचा काय परिणाम असेल. जर का एखादे प्रचल हेतुक(पॅरामीटर्स) केवळ मुल्यांचा मर्यादीत संचच घेऊ शकत असेल किंवा कोणत्याही प्रकारे बंधनात असेल,- उदाहरणार्थ, जर ते केवळ : “हो”, “नको” किंवा संख्या, उपयोग करू शकते,-तर ते स्पष्ट नमुद केलेले असे असावे .
* '''उपयोगाची उदाहरणे''':
* '''संबधीत साचे''':
* '''[[विकिपीडिया:वर्गीकरणे|वर्गीकरणे]]''' आणि '''[[विकिपीडिया:आंतरविकिमीडिया दुवे|आंतरविकिमीडिया दुवे]]''', where applicable. Like the कागदपत्र, these must be within a {{nowrap|<code><nowiki><noinclude>…</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
==कागदपत्र उपपान कसे तयार करावे==
साचा कागदपत्र उपपाने असे असावे नावे आणि 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
<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,
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><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.
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.
==बरेचसे साचे, एक कागदपत्र पान==
ओळ ७७:
==तोकडे साचे==
तोकडे साचे 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 साचे
==हे सुद्धा पहा==
|