Mô đun:Taxonbar/confdoc
Giao diện
![](http://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Test_Template_Info-Icon_-_Version_%282%29.svg/50px-Test_Template_Info-Icon_-_Version_%282%29.svg.png)
require('strict')
local conf = require( "Module:Taxonbar/conf" ) -- configuration module
local p = {}
function p.confdoc( frame )
local wikitable = '{| class="wikitable sortable"\n' ..
'|-\n' ..
'! Tham số !! data-sort-type=number style="white-space: nowrap;"|ID Wikidata !! Tổ chức !! Mô tả'
for _, db in pairs( conf.databases ) do
local param = mw.ustring.lower(db[1])
local prop = db[3]
if type(prop) == 'number' and prop > 0 then
local TaxonbarProperty = frame:expandTemplate{ title = 'Taxonbar/Property', args = { prop } }
wikitable = wikitable .. '\n' ..
'|-\n' ..
'|' .. param .. '||' .. TaxonbarProperty
end
end
return wikitable .. '\n|}'
end
return p