Jump to content

Module:Taxonbar/whitelist/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Tom.Reding (talk | contribs) at 15:35, 14 November 2023 (top: +{{Lua sidebar}}). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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 in 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, in documentation:

Parameter Wikitext Output
strict
{{#invoke:Taxonbar/whitelist|whitelist|strict|doc}}
  1. taxon (Q16521)
  2. monotypic taxon (Q310890)
  3. monotypic fossil taxon (Q47487597)
  4. ichnotaxon (Q2568288)
  5. fossil taxon (Q23038290)
  6. ootaxon (Q59278506)
  7. extinct taxon (Q98961713)
  8. paraphyletic group (Q58051350)
lax
{{#invoke:Taxonbar/whitelist|whitelist|lax|doc}}
  1. hybrid (Q42621)
  2. incertae sedis (Q235536)
  3. clade (Q713623)
  4. serotype (Q848328)
  5. Candidatus (Q857968)
  6. unavailable combination (Q17487588)
  7. taxon hypothesis (Q124477390)
all
{{#invoke:Taxonbar/whitelist|whitelist|all|doc}}
  1. taxon (Q16521)
  2. monotypic taxon (Q310890)
  3. monotypic fossil taxon (Q47487597)
  4. ichnotaxon (Q2568288)
  5. fossil taxon (Q23038290)
  6. ootaxon (Q59278506)
  7. extinct taxon (Q98961713)
  8. paraphyletic group (Q58051350)
  9. hybrid (Q42621)
  10. incertae sedis (Q235536)
  11. clade (Q713623)
  12. serotype (Q848328)
  13. Candidatus (Q857968)
  14. unavailable combination (Q17487588)
  15. taxon hypothesis (Q124477390)

See also