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 any combination of strict/lax/all acceptable instance of (P31)'s, either as a table for use inside Module:Taxonbar or another module, 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,
{{#invoke:Taxonbar/whitelist|whitelist|lax|doc}}
produces:
- hybrid (Q42621)
- incertae sedis (Q235536)
- clade (Q713623)
- serotype (Q848328)
- Candidatus (Q857968)
- unavailable combination (Q17487588)
- taxon hypothesis (Q124477390)