Jump to content

Module:Taxonbar/whitelist/doc: Difference between revisions

From Humanipedia
Usage: Better vars
 
m 1 revision imported
 
(No difference)

Latest revision as of 01:51, 6 February 2025

Script error: No such module "Sidebar". Script error: No such module "High-use".

About[edit source]

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[edit source]

<syntaxhighlight lang="lua"> local whitelists = require( 'Module:Taxonbar/whitelist' ).whitelist </syntaxhighlight>

Arg Lua Output
strict <syntaxhighlight lang="lua">local myWhitelist = whitelists{ args = { 'strict' } }</syntaxhighlight> Lua error: expandTemplate: template "Syntaxhighlight" does not exist.
lax <syntaxhighlight lang="lua">local myWhitelist = whitelists{ args = { 'lax' } }</syntaxhighlight> Lua error: expandTemplate: template "Syntaxhighlight" does not exist.
all <syntaxhighlight lang="lua">local myWhitelist = whitelists{ args = { 'all' } }</syntaxhighlight> Lua error: expandTemplate: template "Syntaxhighlight" does not exist.

See also[edit source]