Munurin millum rættingarnar hjá "Module:Subject bar/doc"
Content deleted Content added
EileenSanda (kjak | íkøst) Stovnaði síðu við "{{module rating|beta}} This module implements the {{tl|Subject bar}} template. Please don't use this module from an article or from another wiki page. You should use the..." |
s Bot: Erstatt forældet <source> -tag og parameteren "enclose" [https://lists.wikimedia.org/pipermail/wikitech-ambassadors/2020-April/002284.html] |
||
Linja 7: | Linja 7: | ||
Load the module like this: |
Load the module like this: |
||
< |
<syntaxhighlight lang="lua"> |
||
local subjectBar = require('Module:Subject bar')._main |
local subjectBar = require('Module:Subject bar')._main |
||
</syntaxhighlight> |
|||
</source> |
|||
Then you can use the <code>subjectBar</code> function like this: |
Then you can use the <code>subjectBar</code> function like this: |
||
< |
<syntaxhighlight lang="lua"> |
||
local myBar = subjectBar{ |
local myBar = subjectBar{ |
||
book = 'Book 1', |
book = 'Book 1', |
||
Linja 27: | Linja 27: | ||
-- ... |
-- ... |
||
} |
} |
||
</syntaxhighlight> |
|||
</source> |
|||
Please see [[Template:Subject bar/doc]] for a full list of possible parameters. |
Please see [[Template:Subject bar/doc]] for a full list of possible parameters. |
Seinasta endurskoðan sum var 22. apr 2020 kl. 16:39
This module is rated as beta, and is ready for widespread use. It is still new and should be used with some caution to ensure the results are as expected. |
This module implements the {{Subject bar}} template. Please don't use this module from an article or from another wiki page. You should use the {{Subject bar}} template instead. To use the module from another Lua module, read on.
Use from another Lua module[rætta wikitekst]
Load the module like this:
local subjectBar = require('Module:Subject bar')._main
Then you can use the subjectBar
function like this:
local myBar = subjectBar{
book = 'Book 1',
book2 = 'Book 2',
-- ...
portal = 'Portal 1',
portal2 = 'Portal 2',
-- ...
commons = true,
commons-search = 'Commons search string',
wikt = true,
wikt-search = 'Wiktionary search string'
-- ...
}
Please see Template:Subject bar/doc for a full list of possible parameters.