Module:Taxonbar/whitelist/doc
Appearance
![]() | This is a documentation subpage for Module:Taxonbar/whitelist. It may contain usage information, categories and other content that is not part of the original module page. |
![]() | This template is used on approximately 472,000 pages, or roughly 1% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
About
This module returns strict
, lax
, or all
acceptable instance of (P31)s, either as a Lua table for use in a module such as Module:Taxonbar, or as an ordered list for use in documentation.
Usage
For use inside a module,
local myWhitelist = require( 'Module:Taxonbar/whitelist' ).whitelist
local myVariable = myWhitelist{ args = { 'lax' } }
produces (values and/or order may not be up-to-date):
myVariable = {
'Q42621' = 1,
'Q235536' = 2,
'Q713623' = 3,
'Q848328' = 4,
'Q857968' = 5,
'Q17487588' = 6,
}
Otherwise:
Parameter | Wikitext | Output |
---|---|---|
strict
|
{{#invoke:Taxonbar/whitelist|whitelist|strict|doc}}
|
|
lax
|
{{#invoke:Taxonbar/whitelist|whitelist|lax|doc}}
|
|
all
|
{{#invoke:Taxonbar/whitelist|whitelist|all|doc}}
|
|
See also