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

36 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 displays a blue box containing documentation for templates, Lua modules, or other pages. The {{tl|documentation}} template invoke...")
 
s (Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html])
 
To use this module from another Lua module, first load it with <code>require</code>:
 
<sourcesyntaxhighlight lang="lua">
local documentation = require('Module:Documentation').main
</syntaxhighlight>
</source>
 
Then you can simply call it using a table of arguments.
<sourcesyntaxhighlight lang="lua">
documentation{content = 'Some documentation', ['link box'] = 'My custom link box'}
</syntaxhighlight>
</source>
 
Please refer to the [[Template:Documentation/doc|template documentation]] for usage instructions and a list of parameters.
14.816

rættingar