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

Content deleted Content added
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..."
 
Xqbot (kjak | íkøst)
s Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html]
 
Linja 9:
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''.
Linja 24:
 
; Example 1
<sourcesyntaxhighlight lang="lua">
mFurther._further(nil, 'A')
</syntaxhighlight>
</source>
Produces:
:<code><nowiki><div class="hatnote">Further information: [[A]]</div></nowiki></code>
Linja 33:
 
; 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>
Linja 42:
 
; 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>