सामग्री पर जाएँ

"साँचा:Documentation": अवतरणों में अंतर

भारतपीडिया से
कोई सम्पादन सारांश नहीं
विस्तृत संस्करण बनाया गया
टैग: मोबाइल संपादन मोबाइल वेब संपादन उन्नत मोबाइल संपादन
 
(इसी सदस्य द्वारा किया गया एक मध्यवर्ती अवतरण नहीं दिखाया गया है)
पंक्ति १: पंक्ति १:
{{Documentation subpage}}
<includeonly><div style="border:1px solid #a2a9b1; background:#f8f9fa; padding:8px 12px; margin:8px 0; clear:both;">
{{template shortcut|lua talk}}
<div style="font-weight:bold; font-size:110%; margin-bottom:6px;">{{{heading|प्रलेखन}}}</div>
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{#if:{{{content|{{{1|}}}}}}|{{{content|{{{1}}}}}}|{{#ifexist:{{FULLPAGENAME}}/doc|{{ {{FULLPAGENAME}}/doc }}|<p>इस साँचे का प्रलेखन अभी नहीं लिखा गया है। आप [{{fullurl:{{FULLPAGENAME}}/doc|action=edit}} प्रलेखन बना सकते हैं]।</p>}}}}
 
</div></includeonly><noinclude>{{#ifexist:{{FULLPAGENAME}}/doc|{{ {{FULLPAGENAME}}/doc }}|<p>यह साँचा प्रलेखन दिखाने के लिए है। प्रलेखन /doc उपपृष्ठ पर लिखें।</p>}}</noinclude>
This template is used to show that templates have been converted to [[Lua (programming language)|Lua]]. It can be placed on the template's /doc page or on its talk page. It automatically adds the template to [[:Category:Lua-based templates]].
 
== Usage ==
 
; Basic usage
{{tlx|lua|''module name''}}
 
; All parameters
{{tlx|lua|''module name''|''note''|4=category=''custom category''|5=nocat=''true''}}
 
== Examples ==
 
* {{tlx|lua}}
{{lua|nocat=true}}
 
* {{tlx|lua|Module:Bananas}}
{{lua|Module:Bananas|nocat=true}}
 
* {{tlx|lua|Module:Bananas|You can use this script as an example to help you get started.}}
{{lua|Module:Bananas|You can use this script as an example to help you get started.|nocat=true}}
 
== Categorisation ==
 
This template adds pages to [[:Category:Lua-based templates]] if the page is in the template namespace, and it is not on any of the subpages /doc, /sandbox, /sandbox2 or /testcases. You can specify a different category with the {{para|category}} parameter, e.g. {{para|category|Lua String-based templates}}. To suppress categorisation, use {{para|nocat|true}}.
 
== See also ==
* [[Wikipedia:Lua]]
* {{tl|module rating}}
 
<includeonly>
<!-- Categories go here, and interwikis go in Wikidata -->
[[Category:Wikipedia Lua templates]]
 
</includeonly>

१०:४९, २२ नवम्बर २०२६ के समय का अवतरण

उपयोग[स्रोत सम्पादित करें]

यह साँचा किसी साँचे के /doc उपपृष्ठ का प्रलेखन दिखाता है। साँचे के अंत में

<noinclude>{{Documentation}}</noinclude>

लिखें।

प्राचल[स्रोत सम्पादित करें]

  • heading — प्रलेखन के शीर्षक का पाठ; न हो तो "प्रलेखन" दिखता है। वैकल्पिक है।
  • content / 1 — /doc उपपृष्ठ के स्थान पर सीधे दिखाया जाने वाला पाठ। वैकल्पिक है।

उदाहरण[स्रोत सम्पादित करें]

{{Documentation}}

/doc उपपृष्ठ हो तो उसका प्रलेखन दिखता है, न हो तो यह संदेश दिखता है कि प्रलेखन अभी नहीं लिखा गया है और उसे बनाया जा सकता है।

{{Documentation|heading=उपयोग विधि}}

शीर्षक "उपयोग विधि" के साथ प्रलेखन दिखता है।

{{Documentation|content=यह सीधी सामग्री है।}}

/doc के स्थान पर सीधी सामग्री दिखती है।