Module:TScope/doc

विकिपुस्तक से

यह Module:TScope हेतु प्रलेख पृष्ठ है

This module provides several functions to facilitate programming with wiki templates. The common theme is that they deal with template scope, the rules of what information is available where in templates.

All of these functions must be invoked directly by the template they are providing their service to: they cannot serve their purpose from inside a wrapper template. This is because they exploit a feature of Scribunto allowing a module to access the template parameters to (and name of) the immediate template in which the module is invoked.

यह मॉड्यूल जिन प्रकार्यों (फंक्शन) को लागू कर सकता है, वो Call functions, override, prepend, append, drop, shiftLeft, map, static और echo हैं।

हिंदी विकिपुस्तक पर इस मॉड्यूल का प्रयोग सूचीकरण साँचों के द्वारा किया जाता है। सभी साँचे इसे आतंरिक रूप से सीधे काल करते हैं। चूँकि, आदर्श रूप से प्रत्येक पुस्तक पृष्ठ पर सूचीकरण साँचे प्रयोग किये जाते और संबंधित श्रेणियों में भी इस तरह के साँचे प्रयोग किये जाते हैं, यह मॉड्यूल बहुत सारे पृष्ठों पर प्रयोग में आ रहा है, इसमें किये जाने बदलावों का व्यापक प्रभाव परिलक्षित होगा। अतः कोई भी बदलाव करने से पहले उसे प्रयोगस्थल पर जाँच लें अथवा चर्चा पृष्ठ पर इस बारे में चर्चा में सुझायें।

अधिक विस्तृत विवरण अंग्रेजी विकिपुस्तक के Module:TScope के पृष्ठ पर देखें।