Module:Taxonbar/confdoc
Appearance
![]() | This module depends on the following other modules: |
Related pages |
---|
About
This module allows Module:Taxonbar/conf to automatically update its own documentation table of Wikidata taxon ID properties on Template:Taxonbar/doc.
Usage
{{#invoke:Taxonbar/confdoc|confdoc}}
Output
{{#invoke:Taxonbar/confdoc|confdoc}}
Lua error in package.lua at line 80: module 'Module:No globals' not found.
Wikidata link information
{{#invoke:Taxonbar/confdoc|wikidataInfo
Lua error in package.lua at line 80: module 'Module:No globals' not found.
require('Module:No globals')
local conf = require( "Module:Taxonbar/conf" ) -- configuration module
local p = {}
function p.confdoc( frame )
local doctable = '{| class="wikitable sortable"\n' ..
'|-\n' ..
'! Parameter !! data-sort-type=number style="white-space: nowrap;"|Wikidata ID!! Authority !! Description'
for _, db in pairs( conf.databases ) do
local param = mw.ustring.lower(db[1])
local prop = db[3]
if 0 < prop then
doctable = doctable .. '\n' ..
'|-\n' ..
'|' .. type(prop) .. param .. '||{{Taxonbar/Property|' .. prop .. '}}'
end
end
doctable = doctable .. '\n|}'
return doctable
end
return p