વિભાગ:Labelled list hatnote/doc: આવૃત્તિઓ વચ્ચેનો તફાવત

Content deleted Content added
નાનું en:Module:Labelled_list_hatnote/doc માંથી આયાત કરેલ ૪ પુનરાવર્તનો
નાનું Bot: Replace deprecated <source> tag and "enclose" parameter [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
 
લીટી ૨૦:
The <code>preprocessDisplays()</code> function takes a raw list of arguments and combines in any display arguments. For example, {{tlx|see also|1|<nowiki>l1=One</nowiki>}} initially has the arguments table <code><nowiki>{'1', ['l1'] = 'One'}</nowiki></code>; this table would combine those into the table <code><nowiki>{'1|One'}</nowiki></code>. It overrides manual piping (e.g. {{tlx|see also|<nowiki>1{{!}}2</nowiki>|<nowiki>l1=One</nowiki>}} → <code><nowiki>{'1|One'}</nowiki></code>) and compresses sparse arrays if a parameter is skipped or left empty.
 
Example: <sourcesyntaxhighlight lang="lua">
local mLabelledList = require('Module:Labelled list hatnote')
local pages = mLabelledList.preprocessDisplays(args)
</syntaxhighlight>
</source>
 
===_labelledList===
લીટી ૩૪:
#* a <code>selfref</code> string (or nil) as taken by <code>_hatnote</code> to enable the selfref option
 
Example: <sourcesyntaxhighlight lang="lua">
local mLabelledList = require('Module:Labelled list hatnote')
return mLabelledList._labelledList(pages, labels, options)
</syntaxhighlight>
</source>
 
==Errors==