Munurin millum rættingarnar hjá "Module:Further/doc"
Content deleted Content added
EileenSanda (kjak | íkøst) 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] |
||
Linja 9:
Load the module:
<
local mFurther = require('Module:Further')
</syntaxhighlight>
You can then use the _further function like this:
<
mDetails._further(options, ...)
</syntaxhighlight>
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
<
mFurther._further(nil, 'A')
</syntaxhighlight>
Produces:
:<code><nowiki><div class="hatnote">Further information: [[A]]</div></nowiki></code>
Linja 33:
; Example 2
<
mFurther._further(nil, 'A', 'B', 'C')
</syntaxhighlight>
Produces:
:<code><nowiki><div class="hatnote">Further information: [[A]], [[B]] and [[C]]</div></nowiki></code>
Linja 42:
; Example 3
<
mFurther._further({selfref = true}, 'A#D', 'B#D', 'C#D')
</syntaxhighlight>
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>
|