"विभाग:Main/doc" च्या विविध आवृत्यांमधील फरक

Content deleted Content added
छो Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
 
ओळ ९:
Load the module:
 
<sourcesyntaxhighlight lang="lua">
local mMain = require('Module:Main')
</syntaxhighlight>
</source>
 
You can then use the _main function like this:
 
<sourcesyntaxhighlight lang="lua">
mMain._main(args, options)
</syntaxhighlight>
</source>
 
The <var>args</var> parameter following <var>options</var> are a list of page link strings; if they use custom display values, each string should be preprocessed into a single piped string (e.g. <code><nowiki>page|display value</nowiki></code>). Category or file links are automatically escaped using the [[Help:Colon trick|colon trick]]. If a link includes a section name, and no display value is set, links are automatically formatted as ''page § section'', rather than the MediaWiki default of ''page#section''.
ओळ २४:
 
=== Example 1 ===
<sourcesyntaxhighlight lang="lua">
mMain._main({'A'})
</syntaxhighlight>
</source>
 
Produces:
ओळ ३७:
 
=== Example 2 ===
<sourcesyntaxhighlight lang="lua">
mMain._main({'Wikipedia:Categorization', 'Help:Category', 'वर्ग:विकिपीडिया वर्ग'})
</syntaxhighlight>
</source>
 
Produces:
ओळ ५०:
 
=== Example 3 ===
<sourcesyntaxhighlight lang="lua">
mMain._main({'A|the letter "A"', 'B|the letter "B"', 'C|the letter "C"'})
</syntaxhighlight>
</source>
 
Produces:
ओळ ६३:
 
=== Example 4 ===
<sourcesyntaxhighlight lang="lua">
mMain._main({'Wikipedia:Verifiability#Burden'}, {selfref = true})
</syntaxhighlight>
</source>
 
Produces:
ओळ ७६:
 
=== Example 5 (if used in the category namespace) ===
<sourcesyntaxhighlight lang="lua">
mMain._main({'A'})
</syntaxhighlight>
</source>
 
Produces:
"https://mr.wikipedia.org/wiki/विभाग:Main/doc" पासून हुडकले