Munurin millum rættingarnar hjá "Module:Further/doc"

90 bytes løgd afturat ,  7 mánaðir síðan
s
Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
(Stovnaði síðu við "This module produces a "Further information: a, b and c" link. It implements the {{tl|further}} template. == Usage from wikitext == This module cannot be used directly f...")
 
s (Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html])
 
Load the module:
 
<sourcesyntaxhighlight lang="lua">
local mFurther = require('Module:Further')
</syntaxhighlight>
</source>
 
You can then use the _further function like this:
 
<sourcesyntaxhighlight lang="lua">
mDetails._further(options, ...)
</syntaxhighlight>
</source>
 
The parameters following <var>options</var> are the page names that appear after the "Further information:" text. Page names can include a section link if desired. Pages with section links are automatically formatted as ''page § section'', rather than the MediaWiki default of ''page#section''.
 
; Example 1
<sourcesyntaxhighlight lang="lua">
mFurther._further(nil, 'A')
</syntaxhighlight>
</source>
Produces:
:<code><nowiki><div class="hatnote">Further information: [[A]]</div></nowiki></code>
 
; Example 2
<sourcesyntaxhighlight lang="lua">
mFurther._further(nil, 'A', 'B', 'C')
</syntaxhighlight>
</source>
Produces:
:<code><nowiki><div class="hatnote">Further information: [[A]], [[B]] and [[C]]</div></nowiki></code>
 
; Example 3
<sourcesyntaxhighlight lang="lua">
mFurther._further({selfref = true}, 'A#D', 'B#D', 'C#D')
</syntaxhighlight>
</source>
Produces:
:<code><nowiki><div class="hatnote selfref">Further information: [[A#D|A § D]], [[B#D|B § D]] and [[B#D|C § D]]</div></nowiki></code>
14.816

rættingar