Module:Taxonbar/whitelist/doc
This is the documentation page for Module:Taxonbar/whitelist
Related pages |
---|
This Lua module is used on a very large number of pages, so changes to it will be widely noticed. Please test any changes in the module's /sandbox or /testcases subpages. Please consider discussing changes on the talk page before implementing them. |
About
This module returns strict
, lax
, or all
acceptable (P31)s as a Lua table for use in a module such as Module:Taxonbar.
For use in documentation, see {{Taxonbar/whitelist}}.
Usage
<syntaxhighlight lang="lua"> local whitelists = require( 'Module:Taxonbar/whitelist' ).whitelist </syntaxhighlight>
Arg | Lua | Output |
---|---|---|
strict
|
<syntaxhighlight lang="lua">local myWhitelist = whitelists{ args = { 'strict' } }</syntaxhighlight> | <syntaxhighlight lang="lua">myWhitelist = {
'Q16521' = 1, 'Q310890' = 2, 'Q47487597' = 3, 'Q2568288' = 4, 'Q23038290' = 5, 'Q59278506' = 6, 'Q98961713' = 7, 'Q58051350' = 8, }</syntaxhighlight> |
lax
|
<syntaxhighlight lang="lua">local myWhitelist = whitelists{ args = { 'lax' } }</syntaxhighlight> | <syntaxhighlight lang="lua">myWhitelist = {
'Q42621' = 1, 'Q235536' = 2, 'Q713623' = 3, 'Q848328' = 4, 'Q857968' = 5, 'Q17487588' = 6, 'Q124477390' = 7, }</syntaxhighlight> |
all
|
<syntaxhighlight lang="lua">local myWhitelist = whitelists{ args = { 'all' } }</syntaxhighlight> | <syntaxhighlight lang="lua">myWhitelist = {
'Q16521' = 1, 'Q310890' = 2, 'Q47487597' = 3, 'Q2568288' = 4, 'Q23038290' = 5, 'Q59278506' = 6, 'Q98961713' = 7, 'Q58051350' = 8, 'Q42621' = 9, 'Q235536' = 10, 'Q713623' = 11, 'Q848328' = 12, 'Q857968' = 13, 'Q17487588' = 14, 'Q124477390' = 15, }</syntaxhighlight> |
See also
- Module:Taxonbar/blacklist
- Category:Taxobox articles missing a taxonbar (0)
- Category:Taxobox articles possibly missing a taxonbar (0)
- Category:Taxonbars on possible non-taxon pages (0)