Toggle menu
15
236
81
27.8K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Subject bar/doc: Difference between revisions

From Kenshi Wiki
Prd (talk | contribs)
No edit summary
Prd (talk | contribs)
No edit summary
 
Line 34: Line 34:
<noinclude>
<noinclude>
[[Category:Module documents]]
[[Category:Module documents]]
[[Category:Module documentation pages]]
</noinclude>
</noinclude>

Latest revision as of 01:12, 10 March 2025

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.

For test cases, see {{Subject bar/testcases}}.

Use from another Lua module

Load the module like this:

local subjectBar = require('Module:Subject bar')._main

Then you can use the subjectBar function like this:

local myBar = subjectBar{
    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.