Jump to content

Module:Subject bar/doc

From Humanipedia
Revision as of 06:07, 22 July 2023 by wikipedia>Hike395 (typo)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Subject bar

Script error: No such module "High-use". Lua error in package.lua at line 80: module 'Module:Yesno' not found. 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:

<syntaxhighlight lang="lua"> local subjectBar = require('Module:Subject bar')._main </syntaxhighlight>

Then you can use the subjectBar function like this:

<syntaxhighlight lang="lua"> local myBar = subjectBar{

   portal = 'Portal 1',
   portal2 = 'Portal 2',
   -- ...
   commons = true,
   commons-search = 'Commons search string',
   wikt = true,
   wikt-search = 'Wiktionary search string'
   -- ...

} </syntaxhighlight>

Please see Template:Subject bar/doc for a full list of possible parameters.