[go: nahoru, domu]

Jump to content

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

Frá Wikipedia, hin frælsa alfrøðin
Content deleted Content added
Stovnaði síðu við "This module implements the {{tl|side box}} template. == Usage from wikitext == This module cannot be used directly from wikitext. It can only be used through the {{tl|si..."
 
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: Linja 9:
To use this module from other Lua modules, first load the module.
To use this module from other Lua modules, first load the module.


<source lang="lua">
<syntaxhighlight lang="lua">
local mSideBox = require('Module:Side box')
local mSideBox = require('Module:Side box')
</syntaxhighlight>
</source>


You can then generate a side box using the _main function.
You can then generate a side box using the _main function.


<source lang="lua">
<syntaxhighlight lang="lua">
mSideBox._main(args)
mSideBox._main(args)
</syntaxhighlight>
</source>


The <var>args</var> variable should be a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the {{tl|side box}} template documentation.
The <var>args</var> variable should be a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the {{tl|side box}} template documentation.

Seinasta endurskoðan sum var 22. apr 2020 kl. 16:39

This module implements the {{side box}} template.

Usage from wikitext

[rætta wikitekst]

This module cannot be used directly from wikitext. It can only be used through the {{side box}} template. Please see the template page for documentation.

Usage from Lua modules

[rætta wikitekst]

To use this module from other Lua modules, first load the module.

local mSideBox = require('Module:Side box')

You can then generate a side box using the _main function.

mSideBox._main(args)

The args variable should be a table containing the arguments to pass to the module. To see the different arguments that can be specified and how they affect the module output, please refer to the {{side box}} template documentation.