Mòideal:Taxonbar databases
Coltas
(deasbaireachd⧼tpt-languages-separator⧽ ⧼tpt-languages-separator⧽eachdraidh⧼tpt-languages-separator⧽ceanglaichean⧼tpt-languages-separator⧽doc⧼tpt-languages-separator⧽bogsa-gainmhich⧼tpt-languages-separator⧽cùisean deuchainn)
This module is currently protected from editing. See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected. |
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing. |
Uses Lua: |
Related pages |
---|
Tuairisgeul - Description
This template is used to display wikilinks to all currently supported taxon identifier databases, automatically loaded from Mòideal:Taxonbar/conf's p.databases
table.
Ùsaid - Usage
Paramadairean - Parameters
|state=
usage is identical to that of {{Navbox}}, and defaults to collapsed
due to navbox size.
Faic cuideachd - Also see
local p = {}
function p.list(frame)
local nav = require( 'Mòideal:Navbox' )
local conf = require( 'Mòideal:Taxonbar/conf' ).databases
local exclude = {
['Wikidata'] = 'not citable',
['Wikispecies'] = 'not citable',
['emonocotfamily'] = 'redundant [[eMonocot]] link',
['WSC genus'] = 'redundant [[World Spider Catalog]] link',
['WSC family'] = 'redundant [[World Spider Catalog]] link',
}
local args = frame:getParent().args
local elements = {}
for _, c in pairs( conf ) do
if exclude[c[1]] == nil then
local c3 = tonumber(c[3])
if (c3 and c3 > 0) or (c3 == nil) then
table.insert( elements, c[2] )
end
end
end
return nav._navbox( {
name = 'Taxonbar databases',
title = '[[:en:w:Help:Taxon identifiers|Taxonbar databases]]',
bodyclass = 'hlist',
state = args.state or 'collapsed',
list1 = table.concat( elements, ' • ' )
} )
end
return p