Content deleted Content added
start docs |
add hatnote function |
||
Line 4:
The functions in this module cannot be used directly from #invoke, and must be used through templates instead. Please see [[Template:Hatnote]], [[Template:Rellink]] and [[Template:Format hatnote link]] for documentation.
== Use from other Lua modules ==
To load this module from another Lua module, use the following code.
<source lang="lua">
local mHatnote = require('Module:Hatnote')
</source>
You can then use the functions as documented below.
=== Hatnote ===
<source lang="lua">
mHatnote._hatnote(s)
</source>
Formats the string <var>s</var> as a hatnote. This encloses <var>s</var> in the tags {{tag|div|params=class="dablink"}}. The CSS of the dablink class is defined in [[MediaWiki:Common.css]].
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
|