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 17:02, 27 August 2023 (Create). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

About

This module returns any combination of strict/lax/all acceptable instance-of'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 = whitelist{ 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:

  1. hybrid (Q42621)
  2. incertae sedis (Q235536)
  3. clade (Q713623)
  4. serotype (Q848328)
  5. Candidatus (Q857968)
  6. unavailable combination (Q17487588)
  7. taxon hypothesis (Q124477390)