Module:Autotaxobox: திருத்தங்களுக்கு இடையிலான வேறுபாடு

உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
imported>Sukanthi
"--[[************************************************************************* This module provides support to the automated taxobox system – the templates Automatic taxobox, Speciesbox, Subspeciesbox, Infraspeciesbox, etc. In particular it provides a way of traversing the taxonomic hierarchy encoded in taxonomy templates (templates with names of the form "Templ..."-இப்பெயரில் புதிய பக்கம் உருவாக்கப்பட்டுள்ளது
 
imported>Info-farmer
en:Module:Autotaxobox இலிருந்து திருத்தங்கள் இறக்குமதி செய்யப்பட்டன
 
வரிசை 54:
foundICTaxon = true
else
local possibleColour = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxobox colour', args = { plainCurrTaxon } }
if string.sub(possibleColour,1,3) == 'rgb' then
colour = possibleColour
வரிசை 72:
if colour == '' then
if foundICTaxon then
colour = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxobox colour', args = { 'incertae sedis' } }
elseif searching then
-- hierarchy exceeds MaxSearchLevels levels
colour = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxobox/Error colour', args = { } }
else
colour = 'transparent'
வரிசை 154:
if l.topLevelTaxon(taxon) then
return '' -- don't display a top level taxon
elseif (mw.title.new('Taxonomy/'..taxon, 'வார்ப்புருTemplate') or {}).exists then
-- taxonomy template for this taxon has no parent specified
return frame:expandTemplate{ title = 'வார்ப்புருTemplate:Create taxonomy', args = {taxon, msg='Taxonomy template does not specify a parent'} } .. '\n' .. TableRow
else
-- no taxonomy template for this taxon
return frame:expandTemplate{ title = 'வார்ப்புருTemplate:Create taxonomy', args = {taxon, msg='Missing taxonomy template'} } .. '\n' .. TableRow
end
else
-- if showing is not already forced, force if it's a principal rank or an authority is specified
force = force or frame:expandTemplate{ title = 'வார்ப்புருTemplate:Principal rank', args = {rank} } == 'yes' or
auth ~= ''
if not force then
வரிசை 171:
end
if force then
local res = l.tableCell(frame:expandTemplate{ title = 'வார்ப்புருTemplate:Anglicise rank', args = {rank} } .. ':')
local bold = 'no'
if boldFirst == 'bold' then bold = 'yes' end
வரிசை 204:
if taxoColour == '' then
if taxonTable[taxonTable.n] == 'Ichnos' or taxonTable[taxonTable.n] == 'Veterovata' then
taxoColour = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxobox colour', args = { taxonTable[taxonTable.n] } }
else
taxoColour = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxobox colour', args = { taxonTable[taxonTable.n - 1] } }
end
end
if taxoColour == frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxobox colour', args = { 'virus' } } then
virus = 'yes'
end
வரிசை 216:
 
-- start table
res = res .. '{| class="infobox biota" style="text-align: left; font-size:100%"\n' .. TableRow .. '! colspan=4 style="text-align: center; color:inherit; background-color: '
.. taxoColour .. '"|Ancestral taxa\n'
-- deal first with the top level taxon; if there are no errors, it should be Life/Veterovata/Ichnos, which are
வரிசை 223:
if not l.topLevelTaxon(taxon) then
local msg = 'Taxonomy template missing'
if mw.title.new('Taxonomy/'..taxon, 'வார்ப்புருTemplate').exists then
msg = 'Parent taxon needed'
end
res = res .. TableRow .. l.tableCell('colspan=2', frame:expandTemplate{title = 'வார்ப்புருTemplate:Create taxonomy', args = {taxon, msg = msg}})
end
-- now output the rest of the table
வரிசை 247:
boldRank = true
else
boldRank = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Principal rank', args = {rank} } == 'yes'
end
-- now return a row of the taxonomy table with anomalous ranks marked
வரிசை 261:
local errCat1 = ''
if not orderOk then
errCat1 = '[[பகுப்புCategory:Taxonomy templates showing anomalous ranks]]\n'
end
-- if the last row has a taxon name in the page name that does not match the link text,
வரிசை 269:
local errCat2 = ''
if not match then
errCat2 = '[[பகுப்புCategory:Taxonomy templates with name and link text not matching|' .. taxon .. ']]\n'
end
if errCat1..errCat2 ~= '' then
வரிசை 292:
res = res .. TableRow
local cellContent = ''
local anglicizedRank = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Anglicise rank', args = { rank } }
if boldRank then
cellContent = cellContent .. '<b>' .. anglicizedRank .. '</b>:'
வரிசை 303:
res = res .. l.tableCell(cellContent)
.. l.tableCell('<span style="white-space:nowrap;">' .. link .. '</span>')
.. l.tableCell('<span style="font-size:smaller;white-space:nowrap;">' .. qualifier .. '</span>')
.. l.tableCell('<span style="white-space:nowrap;">' .. frame:expandTemplate{ title = 'வார்ப்புருTemplate:Edit a taxon', args = { taxon } } .. '</span>')
return res
end
வரிசை 344:
if sameAsTaxon ~= '' then
-- try using the 'same as' taxon; it's an error if it doesn't exist
local ok, sameAsInfoStr = pcall(frame.expandTemplate, frame, { title = 'வார்ப்புருTemplate:Taxonomy/' .. sameAsTaxon, args = {['machine code'] = 'all' } })
if ok then
local sameAsInfo = mw.text.split(sameAsInfoStr, '$', true)
வரிசை 360:
end
else
return frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxonomy key/missing template', args = {taxon=sameAsTaxon, msg='given as the value of <code>same as</code>'} }
end
end
வரிசை 371:
if ok and (parentExtinct == 'yes' or parentExtinct == 'true') then extinctError = 'yes' end
end
return frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxonomy key',
args = {taxon=taxon, parent=parent, rank=rank, extinct=extinct, always_display=alwaysDisplay, link_target=linkTarget, link=link, refs=refs, same_as=sameAsTaxon, extinct_error = extinctError} }
end
வரிசை 433:
-- item ~= 'dagger'
else
ok, info = pcall(frame.expandTemplate, frame, { title = 'வார்ப்புருTemplate:Taxonomy/' .. taxon, args = {['machine code'] = item } })
if ok then
if info == '' then
-- try 'same as'
local sameAsTaxon = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Taxonomy/' .. taxon, args = {['machine code'] = 'same as' } }
if sameAsTaxon ~= '' then
ok, info = pcall(frame.expandTemplate, frame, { title = 'வார்ப்புருTemplate:Taxonomy/' .. sameAsTaxon, args = {['machine code'] = item } })
end
end
வரிசை 454:
end
else
info = '[[வார்ப்புருTemplate:Taxonomy/' .. taxon .. ']]' --error indicator in code before conversion to Lua
end
return ok, info
வரிசை 538:
local res = '{| class="wikitable sortable"\n|+ Ranks checked in taxonomy templates\n! Rank !! Shown as !! Value\n'
for k, v in pairs(rankTable) do
local rankShown = frame:expandTemplate{ title = 'வார்ப்புருTemplate:Anglicise rank', args = { k } }
res = res .. TableRow .. l.tableCell(k) .. l.tableCell(rankShown) .. l.tableCell(v)
end
"https://tamilar.wiki/w/Module:Autotaxobox" இலிருந்து மீள்விக்கப்பட்டது