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 12:15, 14 November 2023 (Usage: +Wikitable with all possible ordered list outputs for documentation; +syntaxhighlight). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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:

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)