വിക്കിഗ്രന്ഥശാല mlwikisource https://ml.wikisource.org/wiki/%E0%B4%AA%E0%B5%8D%E0%B4%B0%E0%B4%A7%E0%B4%BE%E0%B4%A8_%E0%B4%A4%E0%B4%BE%E0%B5%BE MediaWiki 1.45.0-wmf.8 first-letter മീഡിയ പ്രത്യേകം സംവാദം ഉപയോക്താവ് ഉപയോക്താവിന്റെ സംവാദം വിക്കിഗ്രന്ഥശാല വിക്കിഗ്രന്ഥശാല സംവാദം പ്രമാണം പ്രമാണത്തിന്റെ സംവാദം മീഡിയവിക്കി മീഡിയവിക്കി സംവാദം ഫലകം ഫലകത്തിന്റെ സംവാദം സഹായം സഹായത്തിന്റെ സംവാദം വർഗ്ഗം വർഗ്ഗത്തിന്റെ സംവാദം രചയിതാവ് രചയിതാവിന്റെ സംവാദം കവാടം കവാടത്തിന്റെ സംവാദം സൂചിക സൂചികയുടെ സംവാദം താൾ താളിന്റെ സംവാദം പരിഭാഷ പരിഭാഷയുടെ സംവാദം TimedText TimedText talk ഘടകം ഘടകത്തിന്റെ സംവാദം മീഡിയവിക്കി:Proofreadpage header template 8 8055 237694 26003 2025-07-05T18:09:16Z Adithyak1997 6759 Removed external links 237694 wikitext text/x-wiki <includeonly>{{P_Header | title = {{{title|}}} | author = {{{author|}}} | translator = {{{translator|}}} | section = {{{current|}}} | previous = {{{prev|}}} | next = {{{next|}}} | notes = {{#if:{{{publisher|}}}|{{#if:{{{address|}}}|{{{address}}}:&nbsp;|}}{{{publisher}}}&nbsp;{{#if:{{{year|}}}|({{{year}}}).&nbsp;|}}}}{{#if:{{{from|}}}|{{#ifeq:{{{from}}}|{{{to}}}|page {{{from}}}|pages {{{from}}}-{{{to}}} }} }}{{{notes|}}} }} {{#ifeq:{{{value}}}|toc|{{{remarks}}}|}} </includeonly><noinclude> *This template generates headers for the <nowiki><pages/></nowiki> command, when it is called with "header=1". *It takes its parameters from the index page. *Parameters from the index page can be overridden in the "pages" command. *Example: <nowiki><pages index="foo" header=1 author="bar" /></nowiki> </noinclude> o7r2jslhqbtxjtiovpm8zdcwxv9vj42 സൂചിക:Kundalatha.djvu 104 9021 237691 54397 2025-07-05T12:19:38Z Adithyak1997 6759 237691 proofread-index text/x-wiki {{:MediaWiki:Proofreadpage_index_template |Type=book |Title=[[കുന്ദലത]] |Volume= |Author=[[രചയിതാവ്:അപ്പു_നെടുങ്ങാടി|അപ്പു നെടുങ്ങാടി]] |Translator= |Editor= |School= |Publisher= |Address= |Year=1887 |Key= |Source=djvu |Image=0 |Progress=V |Pages=<pagelist /> |Volumes= |Remarks= |Width= |Css= |Header= |Footer=<references/> }} jdoxzafesyc0bhmde2pqkw3pz1y9ea2 താൾ:അരുണോദയം.pdf/4 106 74109 237693 210751 2025-07-05T12:26:21Z ചെങ്കുട്ടുവൻ 8804 ചെറിയ തിരുത്ത് 237693 proofread-page text/x-wiki <noinclude><pagequality level="3" user="Surekha Kamath" /></noinclude>സാഹിത്യവും പുരോഗമനം ചെയ്യുമ്പോൾ അങ്ങനെയല്ലാതെ വരുവാൻ തരവുമില്ല. ഈ ഗ്രന്ഥത്തെ {{cquote|എൻപന്തളക്ഷിതിധവൻ കവിതാരസാല- ക്കൊമ്പത്തു മിന്നിയൊരു കോകില ചക്രവർത്തി}} യുടെ സ്മാരകമായി സജ്ജനസമക്ഷം സമർപ്പണം ചെയ്യുകയാണെന്നുകൂടി വിരമിക്കുന്നതിനു മുൻപായി വിനീതിപൂർവം വിജ്ഞാപനം ചെയ്തുകൊള്ളട്ടെ. {| |തിരുവനന്തപുരം, | rowspan=2|{{brace2|2|r}}&nbsp; &nbsp; &nbsp; ഉള്ളൂർ എസ്. പരമേശ്വരയ്യർ. |- |൭-൫-൧൧൦൫. |}<noinclude><references/></noinclude> 8exhzd1jxin529v7pgyr4mouj4k9ahs ഘടകം:Index template 828 80226 237689 237074 2025-07-05T12:16:48Z Adithyak1997 6759 തർജ്ജമകൾ ചേർത്തു 237689 Scribunto text/plain categoryForGenre = mw.loadData('Module:Work/genre') categoryForForm = mw.loadData('Module:Work/form') categoryForAward = mw.loadData('Module:Work/award') function withWikidataLink(wikitext, category) if wikitext == nil then return nil end new_wikitext = mw.ustring.gsub(wikitext, '%[%[([^|%]]*)%]%]', function(page) return addWikidataToLink(page, mw.ustring.gsub(page, '%.*/', '') , category) end) if new_wikitext ~= wikitext then return new_wikitext end return mw.ustring.gsub(wikitext, '%[%[([^|]*)|([^|%]]*)%]%]', function(page, link) return addWikidataToLink(page, link, category) end) end function addWikidataToLink(page, label, category) local title = mw.title.new( page ) if title == nil then return '[[' .. page .. '|' .. label .. ']]' end if title.isRedirect then title = title.redirectTarget end local tag = mw.html.create('span') local itemId = mw.wikibase.getEntityIdForTitle(title.fullText) tag:wikitext('[[' .. page .. '|' .. label .. ']]') if itemId ~= nil then tag:wikitext( ' [[Image:Reasonator small logo wider white stripes.svg|15px|link=https://reasonator.toolforge.org/?q=' .. itemId .. '&lang=ml]] [[Image:Wikidocumentaries-logo.png|15px|link=https://wikidocumentaries-demo.wmflabs.org/' .. itemId .. '?language=ml]]') if category ~= nil then tag:wikitext('[[വർഗ്ഗം:' .. category .. ']]') end end return tostring(tag) end function addRow(metadataTable, key, value) if value then metadataTable:tag('tr') :tag('th') :attr('score', 'row') :css('vertical-align', 'top') :wikitext(key) :done() :tag('td'):wikitext(value) end end function splitFileNameInFileAndPage(title) local slashPosition = string.find(title.text, "/") if slashPosition == nil then return title.text,nil else return string.sub(title.text, 1, slashPosition - 1), string.sub(title.text, slashPosition + 1) end end function indexTemplate(frame) --create a clean table of parameters with blank parameters removed local data = (require 'Module:Index_data').indexDataWithWikidata(frame) local args = data.args local item = data.item local page = mw.title.getCurrentTitle() local html = mw.html.create() if item then html:wikitext('[[Category:വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്ത]]<indicator name="wikidata">[[File:Wikidata.svg|20px|വിക്കിഡാറ്റ ഇനം|link=https://www.wikidata.org/wiki/' .. item.id .. '?uselang=ml]]</indicator>') if next(item:getBestStatements('P629')) ~= nil then local p629statementvalue = item:getBestStatements('P629')[1].mainsnak.datavalue.value.id local p629statementitem = mw.wikibase.getEntity(p629statementvalue) for _, statement in pairs(p629statementitem:getBestStatements('P136')) do if statement.mainsnak.datavalue ~= nil then genreId = statement.mainsnak.datavalue.value.id if categoryForGenre[genreId] then html:wikitext('[[Category:' .. categoryForGenre[genreId] .. ']]') end end end for _, statement in pairs(p629statementitem:getBestStatements('P7937')) do if statement.mainsnak.datavalue ~= nil then formId = statement.mainsnak.datavalue.value.id if categoryForForm[formId] then html:wikitext('[[വർഗ്ഗം:' .. categoryForForm[formId] .. ']]') end end end for _, statement in pairs(p629statementitem:getBestStatements('P166')) do if statement.mainsnak.datavalue ~= nil then awardId = statement.mainsnak.datavalue.value.id if categoryForAward[awardId] then html:wikitext('[[വർഗ്ഗം:' .. categoryForAward[awardId] .. ']]') end end end end else html:wikitext('[[Category:വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്യാത്ത താൾ]]') end --Left part local left = html:tag('div') if args.remarks or args.notes then left:css('width', '60%') end left:css('float', 'left') --Image if args.image then local imageContainer = left:tag('div') :css({ float = 'left', overflow = 'hidden', border = 'thin grey solid' }) local imageTitle = nil if tonumber(args.image) ~= nil then -- this is a page number imageTitle = mw.title.getCurrentTitle():subPageTitle(args.image) else -- this is an other file imageTitle = mw.title.new(args.image, "Media") -- TODO mettre une catégorie pour les livres ayant une couverture qui ne provient pas du DJVU/PDF end if imageTitle == nil then imageContainer:wikitext(args.image) -- TODO mettre une catégorie de maintenance ici lorsque la couverture est manquante else local imageName, imagePage = splitFileNameInFileAndPage(imageTitle) if imagePage ~= nil then imageContainer:wikitext('[[File:' .. imageName .. '|page=' .. imagePage .. '|200px]]') else imageContainer:wikitext('[[File:' .. imageName .. '|200px]]') end end end --Metadata local metadataContainer = left:tag('div') if args.image then metadataContainer:css('margin-left', '160px') end local metadataTable = metadataContainer:tag('table') if args.title then if item then addRow(metadataTable, 'name', withWikidataLink(args.title, 'വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്യൽ')) else addRow(metadataTable, 'name', '' .. args.title .. '') end else mw.addWarning('പുസ്തകത്തിന്റെ പേര് ചേർത്തിട്ടില്ല') end addRow(metadataTable, 'subtitle', withWikidataLink(args.subtitle)) if args.volume then addRow(metadataTable, 'പതിപ്പ്', '{{#invoke:ConvertDigit|main|' .. args.volume .. '}}') else end if args.issue then addRow(metadataTable, 'number', '{{#invoke:ConvertDigit|main|' .. args.issue .. '}}') else end if args.edition then addRow(metadataTable, 'version', '{{#invoke:ConvertDigit|main|' .. args.edition .. '}}') else end if args.author then if item then local p50stmt = item['claims']['P50'][1] if p50stmt['mainsnak']['snaktype'] == 'somevalue' then addRow(metadataTable, 'author', withWikidataLink('[[Author:Unknown author]]', 'അറിയപ്പെടാത്ത രചയിതാവിന്റെ സൃഷ്ടി')) else addRow(metadataTable, 'author', withWikidataLink(args.author)) -- local authors = item:formatPropertyValues( 'P50', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] -- for author in string.gmatch(authors, '([^,]+)') do -- html:wikitext('[[Category:' .. author .. ' Written by]]') -- end local authors = item:getBestStatements('P50') for i, author in pairs(authors) do if author.mainsnak.snaktype == 'value' then local authorid = author.mainsnak.datavalue.value.id local authoritem = mw.wikibase.getEntity(authorid) local authorsitelink = authoritem:getSitelink('mlwikisource') if authorsitelink ~= nil then local authorsitelinkname = mw.ustring.sub(authorsitelink, 6) html:wikitext('[[വർഗ്ഗം:' .. authorsitelinkname .. ' എഴുതിയത്]]') end end end end else addRow(metadataTable, 'author', '{{Al|' .. args.author .. '}} [[വർഗ്ഗം:' .. args.author .. 'എഴുതിയത്]]') end else end if args.translator then if item then local p655stmt = item['claims']['P655'][1] if p655stmt['mainsnak']['snaktype'] == 'somevalue' then addRow(metadataTable, 'translate', withWikidataLink('[[Author:Unknown author]]', 'അറിയപ്പെടാത്ത വിവർത്തകന്റെ വിവർത്തനം')) else addRow(metadataTable, 'translator', withWikidataLink(args.translator)) -- local translators = item:formatPropertyValues( 'P655', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] -- for translator in string.gmatch(translators, '([^,]+)') do -- html:wikitext('[[Category:' .. translator .. ' translated]]') -- end local translators = item:getBestStatements('P655') for i, translator in pairs(translators) do if translator.mainsnak.snaktype == 'value' then local translatorid = translator.mainsnak.datavalue.value.id local translatoritem = mw.wikibase.getEntity(translatorid) local translatorsitelink = translatoritem:getSitelink('mlwikisource') if translatorsitelink ~= nil then local translatorsitelinkname = mw.ustring.sub(translatorsitelink, 6) html:wikitext('[[Category:' .. translatorsitelinkname .. ' translated]] [[Category:Translated literature]]') end end end end else addRow(metadataTable, 'author', '{{Al|' .. args.translator .. '}} [[വർഗ്ഗം:' .. args.translator .. ' തർജ്ജമ ചെയ്തു]]') end else end if args.foreword_author then if item then addRow(metadataTable, 'foreword author', withWikidataLink(args.foreword_author)) local foreword_authors = item:formatPropertyValues( 'P2679', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for foreword_author in string.gmatch(foreword_authors, '([^,]+)') do end else addRow(metadataTable, 'foreword author', '{{Al|' .. args.foreword_author .. '}}') end else end if args.afterword_author then if item then addRow(metadataTable, 'afterword author', withWikidataLink(args.afterword_author)) local afterword_authors = item:formatPropertyValues( 'P2680', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for afterword_author in string.gmatch(afterword_authors, '([^,]+)') do end else addRow(metadataTable, 'afterword author', '{{Al|' .. args.afterword_author .. '}}') end else end if args.editor then if item then addRow(metadataTable, 'editor', withWikidataLink(args.editor)) local editors = item:formatPropertyValues( 'P98', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for editor in string.gmatch(editors, '([^,]+)') do html:wikitext('[[Category:' .. editor .. ' edited]]') end else addRow(metadataTable, 'editor', '{{Al|' .. args.editor .. '}}') end else end addRow(metadataTable, 'illustrator', withWikidataLink(args.illustrator)) if args.lyricist then if item then addRow(metadataTable, 'lyricist', withWikidataLink(args.lyricist)) local lyricists = item:formatPropertyValues( 'P676', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for lyricist in string.gmatch(lyricists, '([^,]+)') do html:wikitext('[[വർഗ്ഗം:' .. lyricist .. ' എഴുതിയത്]]') end else addRow(metadataTable, 'lyricist', '{{Al|' .. args.lyricist .. '}}') end else end if args.composer then if item then addRow(metadataTable, 'composer', withWikidataLink(args.composer)) local composers = item:formatPropertyValues( 'P86', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for composer in string.gmatch(composers, '([^,]+)') do html:wikitext('[[വർഗ്ഗം:' .. composer .. ' രചിച്ചത്]]') end else addRow(metadataTable, 'composer', '{{Al|' .. args.composer .. '}}') end else end if args.singer then if item then addRow(metadataTable, 'singer', withWikidataLink(args.singer)) local singers = item:formatPropertyValues( 'P175', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for singer in string.gmatch(singers, '([^,]+)') do end else addRow(metadataTable, 'singer', '{{Al|' .. args.singer .. '}}') end else end if args.publisher then if item then addRow(metadataTable, 'publisher', withWikidataLink(args.publisher)) local publishers = item:formatPropertyValues( 'P123', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for publisher in string.gmatch(publishers, '([^,]+)') do html:wikitext('[[Category:' .. publisher .. ' Published by]]') end else addRow(metadataTable, 'publisher', '[[Publisher:' .. args.publisher .. '|' .. args.publisher .. ']]') end else html:wikitext( '[[വർഗ്ഗം:പ്രസാധകന്റെ വിവരങ്ങളില്ലാത്ത നിഘണ്ടു താൾ]]' ) end if args.address then if item then addRow(metadataTable, 'address', withWikidataLink(args.address)) else addRow(metadataTable, 'address', '[[:w:ml:' .. args.address .. '|' .. args.address .. ']]') end else html:wikitext('[[Category:പ്രസിദ്ധീകരണ വിവരങ്ങളില്ലാത്ത നിഘണ്ടു താൾ]]' ) end if args.year then addRow(metadataTable, 'year of publication', '{{#invoke:ConvertDigit|main|' .. args.year .. '}} AD ({{#invoke:ConvertDigit|main|{{#expr: ' .. args.year .. ' - 593}}}} BC) [[Category:{{#invoke:ConvertDigit|main|' .. args.year .. '}} Published in AD]]' ) else html:wikitext('[[Category:പ്രസിദ്ധീകരണ വർഷമില്ലാത്ത നിഘണ്ടു താൾ]]' ) end addRow(metadataTable, 'printer', withWikidataLink(args.printer)) if args.source == 'djvu' then addRow(metadataTable, 'source', '[[File:DjVu-logo.svg|25px|link=File:' .. mw.title.getCurrentTitle().text ..']] [[File:BookReader-favicon.svg|20px|link={{fullurl:toollabs:bookreader/ml/{{{n|{{PAGENAMEE}}}}}}}]]') elseif args.source == 'pdf' then addRow(metadataTable, 'source', '[[File:Icon pdf.svg|25px|link=File:' .. mw.title.getCurrentTitle().text ..']] [[File:BookReader-favicon.svg|20px|link={{fullurl:toollabs:bookreader/ml/{{{n|{{PAGENAMEE}}}}}}}]]') elseif args.source == 'ogg' then addRow(metadataTable, 'source', '[[File:Speaker Icon.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') elseif args.source == 'webm' then addRow(metadataTable, 'source', '[[File:Open Iconic video.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') elseif args.source == 'mp3' then addRow(metadataTable, 'source', '[[File:Speaker Icon.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') --add an indicator linking to the usages local query = 'SELECT ?item ?itemLabel ?pages ?page WHERE {\n ?item wdt:P996 <http://commons.wikimedia.org/wiki/Special:FilePath/' .. mw.uri.encode(mw.title.getCurrentTitle().text, 'PATH') .. '> .\n OPTIONAL { ?page schema:about ?item ; schema:isPartOf <https://ml.wikisource.org/> . }\n OPTIONAL { ?item wdt:P304 ?pages . }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ml".\n}}' html:wikitext('<indicator name="index-scan-wikidata">[[File:Wikidata Query Service Favicon.svg|20px|Wikidata item|link=https://query.wikidata.org/embed.html#' .. mw.uri.encode(query, 'PATH') .. ']]</indicator>') else addRow(metadataTable, 'source', args.source) end if args.progress == 'T' then addRow(metadataTable, 'progress', '[[Category:Dictionary validated]][[Category:The dictionary printout has been corrected]][[:Category:Dictionary validated|All pages have been validated and work is complete.]]') elseif args.progress == 'V' then addRow(metadataTable, 'progress', '[[Category:The dictionary printout has been corrected.]][[:Category:The dictionary print has been corrected | The print of all pages has been corrected but not validated.]]') elseif args.progress == 'C' then addRow(metadataTable, 'progress', '[[Category:The dictionary printout has not been corrected.]][[:Category:The printout of the dictionary has not been corrected|The printout of all pages has not been corrected.]]') elseif args.progress == 'OCR' then addRow(metadataTable, 'progress', '[[Category:Ready for transcription-OCR and print correction]][[:Category:Nirghanta-Ready for OCR and print correction|Ready for OCR and print correction]]') elseif args.progress == 'L' then addRow(metadataTable, 'progress', '[[Category:The dictionary file needs to be fixed.]]<span style="color: #FF0000; ">[[:Category:The dictionary file needs to be fixed | This file needs to be fixed before printing.]]</span>') elseif args.progress == 'X' then addRow(metadataTable, 'progress', '[[Category:The dictionary file needs to be checked.]][[:Category:The dictionary file needs to be checked | Check everything and create a page list before printing.]]') else addRow(metadataTable, 'progress', '[[Category:Nirghanta - Unknown progress]][[:Category:Definition - Unknown progress|Unknown progress]]') end addRow(metadataTable, 'fragments', args.volumes) if args.pages then left:tag('div'):css('clear', 'both') left:tag('h3'):wikitext('പുസ്തക താളുകൾ <br> {{പുരോഗതി|{{PAGENAME}}}}') left:tag('div'):attr('id', 'pagelist'):css({ background = '#F0F0F0', ['padding-left'] = '0.5em', ['text-align'] = 'justify' }):newline():wikitext(args.pages):newline() else mw.addWarning('താളുകളുടെ പട്ടിക സൃഷ്ടിക്കുക') end if args.remarks or args.notes then local right = html:tag('div'):css({ width = '35%;', ['padding-left'] = '1em', float = 'left' }) if args.remarks then right:tag('div'):attr('id', 'remarks'):wikitext(args.remarks) end if args.notes then right:tag('hr'):css({ ['margin-top'] = '1em', ['margin-bottom'] = '1em' }) right:tag('div'):attr('id', 'notes'):wikitext(args.notes) end end html:wikitext('[[Category:നിഘണ്ടു]]') if args.source == 'djvu' then html:wikitext('[[Category:Deja Vu Dictionary Page]]') elseif args.source == 'pdf' then html:wikitext('[[Category:PDF dictionary page‎]]') elseif args.source == 'ogg' then html:wikitext('[[Category:OGG dictionary page]]') elseif args.source == 'webm' then html:wikitext('[[Category:webm dictionary page‎]]') elseif args.source == 'mp3' then html:wikitext('[[Category:mp3 dictionary page‎]]') end if not args.remarks then html:wikitext('[[Category:സൂചികയില്ലാത്ത നിഘണ്ടു താൾ]]') end return tostring(html) end local p = {} function p.indexTemplate( frame ) return indexTemplate( frame ) end return p q0xfnr9akct692wu7rp5xm66ug46fha 237692 237689 2025-07-05T12:25:33Z Adithyak1997 6759 തർജ്ജമകൾ ചേർത്തു 237692 Scribunto text/plain categoryForGenre = mw.loadData('Module:Work/genre') categoryForForm = mw.loadData('Module:Work/form') categoryForAward = mw.loadData('Module:Work/award') function withWikidataLink(wikitext, category) if wikitext == nil then return nil end new_wikitext = mw.ustring.gsub(wikitext, '%[%[([^|%]]*)%]%]', function(page) return addWikidataToLink(page, mw.ustring.gsub(page, '%.*/', '') , category) end) if new_wikitext ~= wikitext then return new_wikitext end return mw.ustring.gsub(wikitext, '%[%[([^|]*)|([^|%]]*)%]%]', function(page, link) return addWikidataToLink(page, link, category) end) end function addWikidataToLink(page, label, category) local title = mw.title.new( page ) if title == nil then return '[[' .. page .. '|' .. label .. ']]' end if title.isRedirect then title = title.redirectTarget end local tag = mw.html.create('span') local itemId = mw.wikibase.getEntityIdForTitle(title.fullText) tag:wikitext('[[' .. page .. '|' .. label .. ']]') if itemId ~= nil then tag:wikitext( ' [[Image:Reasonator small logo wider white stripes.svg|15px|link=https://reasonator.toolforge.org/?q=' .. itemId .. '&lang=ml]] [[Image:Wikidocumentaries-logo.png|15px|link=https://wikidocumentaries-demo.wmflabs.org/' .. itemId .. '?language=ml]]') if category ~= nil then tag:wikitext('[[വർഗ്ഗം:' .. category .. ']]') end end return tostring(tag) end function addRow(metadataTable, key, value) if value then metadataTable:tag('tr') :tag('th') :attr('score', 'row') :css('vertical-align', 'top') :wikitext(key) :done() :tag('td'):wikitext(value) end end function splitFileNameInFileAndPage(title) local slashPosition = string.find(title.text, "/") if slashPosition == nil then return title.text,nil else return string.sub(title.text, 1, slashPosition - 1), string.sub(title.text, slashPosition + 1) end end function indexTemplate(frame) --create a clean table of parameters with blank parameters removed local data = (require 'Module:Index_data').indexDataWithWikidata(frame) local args = data.args local item = data.item local page = mw.title.getCurrentTitle() local html = mw.html.create() if item then html:wikitext('[[Category:വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്ത]]<indicator name="wikidata">[[File:Wikidata.svg|20px|വിക്കിഡാറ്റ ഇനം|link=https://www.wikidata.org/wiki/' .. item.id .. '?uselang=ml]]</indicator>') if next(item:getBestStatements('P629')) ~= nil then local p629statementvalue = item:getBestStatements('P629')[1].mainsnak.datavalue.value.id local p629statementitem = mw.wikibase.getEntity(p629statementvalue) for _, statement in pairs(p629statementitem:getBestStatements('P136')) do if statement.mainsnak.datavalue ~= nil then genreId = statement.mainsnak.datavalue.value.id if categoryForGenre[genreId] then html:wikitext('[[Category:' .. categoryForGenre[genreId] .. ']]') end end end for _, statement in pairs(p629statementitem:getBestStatements('P7937')) do if statement.mainsnak.datavalue ~= nil then formId = statement.mainsnak.datavalue.value.id if categoryForForm[formId] then html:wikitext('[[വർഗ്ഗം:' .. categoryForForm[formId] .. ']]') end end end for _, statement in pairs(p629statementitem:getBestStatements('P166')) do if statement.mainsnak.datavalue ~= nil then awardId = statement.mainsnak.datavalue.value.id if categoryForAward[awardId] then html:wikitext('[[വർഗ്ഗം:' .. categoryForAward[awardId] .. ']]') end end end end else html:wikitext('[[Category:വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്യാത്ത താൾ]]') end --Left part local left = html:tag('div') if args.remarks or args.notes then left:css('width', '60%') end left:css('float', 'left') --Image if args.image then local imageContainer = left:tag('div') :css({ float = 'left', overflow = 'hidden', border = 'thin grey solid' }) local imageTitle = nil if tonumber(args.image) ~= nil then -- this is a page number imageTitle = mw.title.getCurrentTitle():subPageTitle(args.image) else -- this is an other file imageTitle = mw.title.new(args.image, "Media") -- TODO mettre une catégorie pour les livres ayant une couverture qui ne provient pas du DJVU/PDF end if imageTitle == nil then imageContainer:wikitext(args.image) -- TODO mettre une catégorie de maintenance ici lorsque la couverture est manquante else local imageName, imagePage = splitFileNameInFileAndPage(imageTitle) if imagePage ~= nil then imageContainer:wikitext('[[File:' .. imageName .. '|page=' .. imagePage .. '|200px]]') else imageContainer:wikitext('[[File:' .. imageName .. '|200px]]') end end end --Metadata local metadataContainer = left:tag('div') if args.image then metadataContainer:css('margin-left', '160px') end local metadataTable = metadataContainer:tag('table') if args.title then if item then addRow(metadataTable, 'name', withWikidataLink(args.title, 'വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്യൽ')) else addRow(metadataTable, 'name', '' .. args.title .. '') end else mw.addWarning('പുസ്തകത്തിന്റെ പേര് ചേർത്തിട്ടില്ല') end addRow(metadataTable, 'subtitle', withWikidataLink(args.subtitle)) if args.volume then addRow(metadataTable, 'പതിപ്പ്', '{{#invoke:ConvertDigit|main|' .. args.volume .. '}}') else end if args.issue then addRow(metadataTable, 'number', '{{#invoke:ConvertDigit|main|' .. args.issue .. '}}') else end if args.edition then addRow(metadataTable, 'version', '{{#invoke:ConvertDigit|main|' .. args.edition .. '}}') else end if args.author then if item then local p50stmt = item['claims']['P50'][1] if p50stmt['mainsnak']['snaktype'] == 'somevalue' then addRow(metadataTable, 'author', withWikidataLink('രചയിതാവ്:അറിയപ്പെടാത്ത രചയിതാവ്', 'അറിയപ്പെടാത്ത രചയിതാവിന്റെ സൃഷ്ടി')) else addRow(metadataTable, 'author', withWikidataLink(args.author)) -- local authors = item:formatPropertyValues( 'P50', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] -- for author in string.gmatch(authors, '([^,]+)') do -- html:wikitext('[[Category:' .. author .. ' Written by]]') -- end local authors = item:getBestStatements('P50') for i, author in pairs(authors) do if author.mainsnak.snaktype == 'value' then local authorid = author.mainsnak.datavalue.value.id local authoritem = mw.wikibase.getEntity(authorid) local authorsitelink = authoritem:getSitelink('mlwikisource') if authorsitelink ~= nil then local authorsitelinkname = mw.ustring.sub(authorsitelink, 6) html:wikitext('[[വർഗ്ഗം:' .. authorsitelinkname .. ' എഴുതിയത്]]') end end end end else addRow(metadataTable, 'author', '{{Al|' .. args.author .. '}} [[വർഗ്ഗം:' .. args.author .. 'എഴുതിയത്]]') end else end if args.translator then if item then local p655stmt = item['claims']['P655'][1] if p655stmt['mainsnak']['snaktype'] == 'somevalue' then addRow(metadataTable, 'translate', withWikidataLink('[[Author:Unknown author]]', 'അറിയപ്പെടാത്ത വിവർത്തകന്റെ വിവർത്തനം')) else addRow(metadataTable, 'translator', withWikidataLink(args.translator)) -- local translators = item:formatPropertyValues( 'P655', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] -- for translator in string.gmatch(translators, '([^,]+)') do -- html:wikitext('[[Category:' .. translator .. ' translated]]') -- end local translators = item:getBestStatements('P655') for i, translator in pairs(translators) do if translator.mainsnak.snaktype == 'value' then local translatorid = translator.mainsnak.datavalue.value.id local translatoritem = mw.wikibase.getEntity(translatorid) local translatorsitelink = translatoritem:getSitelink('mlwikisource') if translatorsitelink ~= nil then local translatorsitelinkname = mw.ustring.sub(translatorsitelink, 6) html:wikitext('[[Category:' .. translatorsitelinkname .. ' translated]] [[Category:Translated literature]]') end end end end else addRow(metadataTable, 'author', '{{Al|' .. args.translator .. '}} [[വർഗ്ഗം:' .. args.translator .. ' തർജ്ജമ ചെയ്തു]]') end else end if args.foreword_author then if item then addRow(metadataTable, 'foreword author', withWikidataLink(args.foreword_author)) local foreword_authors = item:formatPropertyValues( 'P2679', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for foreword_author in string.gmatch(foreword_authors, '([^,]+)') do end else addRow(metadataTable, 'foreword author', '{{Al|' .. args.foreword_author .. '}}') end else end if args.afterword_author then if item then addRow(metadataTable, 'afterword author', withWikidataLink(args.afterword_author)) local afterword_authors = item:formatPropertyValues( 'P2680', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for afterword_author in string.gmatch(afterword_authors, '([^,]+)') do end else addRow(metadataTable, 'afterword author', '{{Al|' .. args.afterword_author .. '}}') end else end if args.editor then if item then addRow(metadataTable, 'editor', withWikidataLink(args.editor)) local editors = item:formatPropertyValues( 'P98', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for editor in string.gmatch(editors, '([^,]+)') do html:wikitext('[[Category:' .. editor .. ' edited]]') end else addRow(metadataTable, 'editor', '{{Al|' .. args.editor .. '}}') end else end addRow(metadataTable, 'illustrator', withWikidataLink(args.illustrator)) if args.lyricist then if item then addRow(metadataTable, 'lyricist', withWikidataLink(args.lyricist)) local lyricists = item:formatPropertyValues( 'P676', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for lyricist in string.gmatch(lyricists, '([^,]+)') do html:wikitext('[[വർഗ്ഗം:' .. lyricist .. ' എഴുതിയത്]]') end else addRow(metadataTable, 'lyricist', '{{Al|' .. args.lyricist .. '}}') end else end if args.composer then if item then addRow(metadataTable, 'composer', withWikidataLink(args.composer)) local composers = item:formatPropertyValues( 'P86', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for composer in string.gmatch(composers, '([^,]+)') do html:wikitext('[[വർഗ്ഗം:' .. composer .. ' രചിച്ചത്]]') end else addRow(metadataTable, 'composer', '{{Al|' .. args.composer .. '}}') end else end if args.singer then if item then addRow(metadataTable, 'singer', withWikidataLink(args.singer)) local singers = item:formatPropertyValues( 'P175', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for singer in string.gmatch(singers, '([^,]+)') do end else addRow(metadataTable, 'singer', '{{Al|' .. args.singer .. '}}') end else end if args.publisher then if item then addRow(metadataTable, 'publisher', withWikidataLink(args.publisher)) local publishers = item:formatPropertyValues( 'P123', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for publisher in string.gmatch(publishers, '([^,]+)') do html:wikitext('[[Category:' .. publisher .. ' Published by]]') end else addRow(metadataTable, 'publisher', '[[Publisher:' .. args.publisher .. '|' .. args.publisher .. ']]') end else html:wikitext( '[[വർഗ്ഗം:പ്രസാധകന്റെ വിവരങ്ങളില്ലാത്ത നിഘണ്ടു താൾ]]' ) end if args.address then if item then addRow(metadataTable, 'address', withWikidataLink(args.address)) else addRow(metadataTable, 'address', '[[:w:ml:' .. args.address .. '|' .. args.address .. ']]') end else html:wikitext('[[വർഗ്ഗം:പ്രസിദ്ധീകരണ വിവരങ്ങളില്ലാത്ത നിഘണ്ടു താൾ]]' ) end if args.year then addRow(metadataTable, 'year of publication', '{{#invoke:ConvertDigit|main|' .. args.year .. '}} AD ({{#invoke:ConvertDigit|main|{{#expr: ' .. args.year .. ' - 593}}}} BC) [[Category:{{#invoke:ConvertDigit|main|' .. args.year .. '}} AD ൽ പ്രസിദ്ധീകരിച്ചത്]]' ) else html:wikitext('[[വർഗ്ഗം:പ്രസിദ്ധീകരണ വർഷമില്ലാത്ത നിഘണ്ടു താൾ]]' ) end addRow(metadataTable, 'printer', withWikidataLink(args.printer)) if args.source == 'djvu' then addRow(metadataTable, 'source', '[[File:DjVu-logo.svg|25px|link=File:' .. mw.title.getCurrentTitle().text ..']] [[File:BookReader-favicon.svg|20px|link={{fullurl:toollabs:bookreader/ml/{{{n|{{PAGENAMEE}}}}}}}]]') elseif args.source == 'pdf' then addRow(metadataTable, 'source', '[[File:Icon pdf.svg|25px|link=File:' .. mw.title.getCurrentTitle().text ..']] [[File:BookReader-favicon.svg|20px|link={{fullurl:toollabs:bookreader/ml/{{{n|{{PAGENAMEE}}}}}}}]]') elseif args.source == 'ogg' then addRow(metadataTable, 'source', '[[File:Speaker Icon.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') elseif args.source == 'webm' then addRow(metadataTable, 'source', '[[File:Open Iconic video.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') elseif args.source == 'mp3' then addRow(metadataTable, 'source', '[[File:Speaker Icon.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') --add an indicator linking to the usages local query = 'SELECT ?item ?itemLabel ?pages ?page WHERE {\n ?item wdt:P996 <http://commons.wikimedia.org/wiki/Special:FilePath/' .. mw.uri.encode(mw.title.getCurrentTitle().text, 'PATH') .. '> .\n OPTIONAL { ?page schema:about ?item ; schema:isPartOf <https://ml.wikisource.org/> . }\n OPTIONAL { ?item wdt:P304 ?pages . }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ml".\n}}' html:wikitext('<indicator name="index-scan-wikidata">[[File:Wikidata Query Service Favicon.svg|20px|Wikidata item|link=https://query.wikidata.org/embed.html#' .. mw.uri.encode(query, 'PATH') .. ']]</indicator>') else addRow(metadataTable, 'source', args.source) end if args.progress == 'T' then addRow(metadataTable, 'progress', '[[Category:Dictionary validated]][[Category:The dictionary printout has been corrected]][[:Category:Dictionary validated|All pages have been validated and work is complete.]]') elseif args.progress == 'V' then addRow(metadataTable, 'progress', '[[Category:The dictionary printout has been corrected.]][[:Category:The dictionary print has been corrected | The print of all pages has been corrected but not validated.]]') elseif args.progress == 'C' then addRow(metadataTable, 'progress', '[[Category:The dictionary printout has not been corrected.]][[:Category:The printout of the dictionary has not been corrected|The printout of all pages has not been corrected.]]') elseif args.progress == 'OCR' then addRow(metadataTable, 'progress', '[[Category:Ready for transcription-OCR and print correction]][[:Category:Nirghanta-Ready for OCR and print correction|Ready for OCR and print correction]]') elseif args.progress == 'L' then addRow(metadataTable, 'progress', '[[Category:The dictionary file needs to be fixed.]]<span style="color: #FF0000; ">[[:Category:The dictionary file needs to be fixed | This file needs to be fixed before printing.]]</span>') elseif args.progress == 'X' then addRow(metadataTable, 'progress', '[[Category:The dictionary file needs to be checked.]][[:Category:The dictionary file needs to be checked | Check everything and create a page list before printing.]]') else addRow(metadataTable, 'progress', '[[Category:Nirghanta - Unknown progress]][[:Category:Definition - Unknown progress|Unknown progress]]') end addRow(metadataTable, 'fragments', args.volumes) if args.pages then left:tag('div'):css('clear', 'both') left:tag('h3'):wikitext('പുസ്തക താളുകൾ <br> {{പുരോഗതി|{{PAGENAME}}}}') left:tag('div'):attr('id', 'pagelist'):css({ background = '#F0F0F0', ['padding-left'] = '0.5em', ['text-align'] = 'justify' }):newline():wikitext(args.pages):newline() else mw.addWarning('താളുകളുടെ പട്ടിക സൃഷ്ടിക്കുക') end if args.remarks or args.notes then local right = html:tag('div'):css({ width = '35%;', ['padding-left'] = '1em', float = 'left' }) if args.remarks then right:tag('div'):attr('id', 'remarks'):wikitext(args.remarks) end if args.notes then right:tag('hr'):css({ ['margin-top'] = '1em', ['margin-bottom'] = '1em' }) right:tag('div'):attr('id', 'notes'):wikitext(args.notes) end end html:wikitext('[[Category:നിഘണ്ടു]]') if args.source == 'djvu' then html:wikitext('[[Category:Deja Vu Dictionary Page]]') elseif args.source == 'pdf' then html:wikitext('[[Category:PDF dictionary page‎]]') elseif args.source == 'ogg' then html:wikitext('[[Category:OGG dictionary page]]') elseif args.source == 'webm' then html:wikitext('[[Category:webm dictionary page‎]]') elseif args.source == 'mp3' then html:wikitext('[[Category:mp3 dictionary page‎]]') end if not args.remarks then html:wikitext('[[Category:സൂചികയില്ലാത്ത നിഘണ്ടു താൾ]]') end return tostring(html) end local p = {} function p.indexTemplate( frame ) return indexTemplate( frame ) end return p 1ygypftozyxz4ewjr60musslcv736tr 237695 237692 2025-07-05T18:17:39Z Adithyak1997 6759 ഒരു സ്പേസ് ചേർത്തു 237695 Scribunto text/plain categoryForGenre = mw.loadData('Module:Work/genre') categoryForForm = mw.loadData('Module:Work/form') categoryForAward = mw.loadData('Module:Work/award') function withWikidataLink(wikitext, category) if wikitext == nil then return nil end new_wikitext = mw.ustring.gsub(wikitext, '%[%[([^|%]]*)%]%]', function(page) return addWikidataToLink(page, mw.ustring.gsub(page, '%.*/', '') , category) end) if new_wikitext ~= wikitext then return new_wikitext end return mw.ustring.gsub(wikitext, '%[%[([^|]*)|([^|%]]*)%]%]', function(page, link) return addWikidataToLink(page, link, category) end) end function addWikidataToLink(page, label, category) local title = mw.title.new( page ) if title == nil then return '[[' .. page .. '|' .. label .. ']]' end if title.isRedirect then title = title.redirectTarget end local tag = mw.html.create('span') local itemId = mw.wikibase.getEntityIdForTitle(title.fullText) tag:wikitext('[[' .. page .. '|' .. label .. ']]') if itemId ~= nil then tag:wikitext( ' [[Image:Reasonator small logo wider white stripes.svg|15px|link=https://reasonator.toolforge.org/?q=' .. itemId .. '&lang=ml]] [[Image:Wikidocumentaries-logo.png|15px|link=https://wikidocumentaries-demo.wmflabs.org/' .. itemId .. '?language=ml]]') if category ~= nil then tag:wikitext('[[വർഗ്ഗം:' .. category .. ']]') end end return tostring(tag) end function addRow(metadataTable, key, value) if value then metadataTable:tag('tr') :tag('th') :attr('score', 'row') :css('vertical-align', 'top') :wikitext(key) :done() :tag('td'):wikitext(value) end end function splitFileNameInFileAndPage(title) local slashPosition = string.find(title.text, "/") if slashPosition == nil then return title.text,nil else return string.sub(title.text, 1, slashPosition - 1), string.sub(title.text, slashPosition + 1) end end function indexTemplate(frame) --create a clean table of parameters with blank parameters removed local data = (require 'Module:Index_data').indexDataWithWikidata(frame) local args = data.args local item = data.item local page = mw.title.getCurrentTitle() local html = mw.html.create() if item then html:wikitext('[[Category:വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്ത]]<indicator name="wikidata">[[File:Wikidata.svg|20px|വിക്കിഡാറ്റ ഇനം|link=https://www.wikidata.org/wiki/' .. item.id .. '?uselang=ml]]</indicator>') if next(item:getBestStatements('P629')) ~= nil then local p629statementvalue = item:getBestStatements('P629')[1].mainsnak.datavalue.value.id local p629statementitem = mw.wikibase.getEntity(p629statementvalue) for _, statement in pairs(p629statementitem:getBestStatements('P136')) do if statement.mainsnak.datavalue ~= nil then genreId = statement.mainsnak.datavalue.value.id if categoryForGenre[genreId] then html:wikitext('[[Category:' .. categoryForGenre[genreId] .. ']]') end end end for _, statement in pairs(p629statementitem:getBestStatements('P7937')) do if statement.mainsnak.datavalue ~= nil then formId = statement.mainsnak.datavalue.value.id if categoryForForm[formId] then html:wikitext('[[വർഗ്ഗം:' .. categoryForForm[formId] .. ']]') end end end for _, statement in pairs(p629statementitem:getBestStatements('P166')) do if statement.mainsnak.datavalue ~= nil then awardId = statement.mainsnak.datavalue.value.id if categoryForAward[awardId] then html:wikitext('[[വർഗ്ഗം:' .. categoryForAward[awardId] .. ']]') end end end end else html:wikitext('[[Category:വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്യാത്ത താൾ]]') end --Left part local left = html:tag('div') if args.remarks or args.notes then left:css('width', '60%') end left:css('float', 'left') --Image if args.image then local imageContainer = left:tag('div') :css({ float = 'left', overflow = 'hidden', border = 'thin grey solid' }) local imageTitle = nil if tonumber(args.image) ~= nil then -- this is a page number imageTitle = mw.title.getCurrentTitle():subPageTitle(args.image) else -- this is an other file imageTitle = mw.title.new(args.image, "Media") -- TODO mettre une catégorie pour les livres ayant une couverture qui ne provient pas du DJVU/PDF end if imageTitle == nil then imageContainer:wikitext(args.image) -- TODO mettre une catégorie de maintenance ici lorsque la couverture est manquante else local imageName, imagePage = splitFileNameInFileAndPage(imageTitle) if imagePage ~= nil then imageContainer:wikitext('[[File:' .. imageName .. '|page=' .. imagePage .. '|200px]]') else imageContainer:wikitext('[[File:' .. imageName .. '|200px]]') end end end --Metadata local metadataContainer = left:tag('div') if args.image then metadataContainer:css('margin-left', '160px') end local metadataTable = metadataContainer:tag('table') if args.title then if item then addRow(metadataTable, 'name', withWikidataLink(args.title, 'വിക്കിഡാറ്റയുമായി ലിങ്ക് ചെയ്യൽ')) else addRow(metadataTable, 'name', '' .. args.title .. '') end else mw.addWarning('പുസ്തകത്തിന്റെ പേര് ചേർത്തിട്ടില്ല') end addRow(metadataTable, 'subtitle', withWikidataLink(args.subtitle)) if args.volume then addRow(metadataTable, 'പതിപ്പ്', '{{#invoke:ConvertDigit|main|' .. args.volume .. '}}') else end if args.issue then addRow(metadataTable, 'number', '{{#invoke:ConvertDigit|main|' .. args.issue .. '}}') else end if args.edition then addRow(metadataTable, 'version', '{{#invoke:ConvertDigit|main|' .. args.edition .. '}}') else end if args.author then if item then local p50stmt = item['claims']['P50'][1] if p50stmt['mainsnak']['snaktype'] == 'somevalue' then addRow(metadataTable, 'author', withWikidataLink('രചയിതാവ്:അറിയപ്പെടാത്ത രചയിതാവ്', 'അറിയപ്പെടാത്ത രചയിതാവിന്റെ സൃഷ്ടി')) else addRow(metadataTable, 'author', withWikidataLink(args.author)) -- local authors = item:formatPropertyValues( 'P50', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] -- for author in string.gmatch(authors, '([^,]+)') do -- html:wikitext('[[Category:' .. author .. ' Written by]]') -- end local authors = item:getBestStatements('P50') for i, author in pairs(authors) do if author.mainsnak.snaktype == 'value' then local authorid = author.mainsnak.datavalue.value.id local authoritem = mw.wikibase.getEntity(authorid) local authorsitelink = authoritem:getSitelink('mlwikisource') if authorsitelink ~= nil then local authorsitelinkname = mw.ustring.sub(authorsitelink, 6) html:wikitext('[[വർഗ്ഗം:' .. authorsitelinkname .. ' എഴുതിയത്]]') end end end end else addRow(metadataTable, 'author', '{{Al|' .. args.author .. '}} [[വർഗ്ഗം:' .. args.author .. ' എഴുതിയത്]]') end else end if args.translator then if item then local p655stmt = item['claims']['P655'][1] if p655stmt['mainsnak']['snaktype'] == 'somevalue' then addRow(metadataTable, 'translate', withWikidataLink('[[Author:Unknown author]]', 'അറിയപ്പെടാത്ത വിവർത്തകന്റെ വിവർത്തനം')) else addRow(metadataTable, 'translator', withWikidataLink(args.translator)) -- local translators = item:formatPropertyValues( 'P655', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] -- for translator in string.gmatch(translators, '([^,]+)') do -- html:wikitext('[[Category:' .. translator .. ' translated]]') -- end local translators = item:getBestStatements('P655') for i, translator in pairs(translators) do if translator.mainsnak.snaktype == 'value' then local translatorid = translator.mainsnak.datavalue.value.id local translatoritem = mw.wikibase.getEntity(translatorid) local translatorsitelink = translatoritem:getSitelink('mlwikisource') if translatorsitelink ~= nil then local translatorsitelinkname = mw.ustring.sub(translatorsitelink, 6) html:wikitext('[[Category:' .. translatorsitelinkname .. ' translated]] [[Category:Translated literature]]') end end end end else addRow(metadataTable, 'author', '{{Al|' .. args.translator .. '}} [[വർഗ്ഗം:' .. args.translator .. ' തർജ്ജമ ചെയ്തു]]') end else end if args.foreword_author then if item then addRow(metadataTable, 'foreword author', withWikidataLink(args.foreword_author)) local foreword_authors = item:formatPropertyValues( 'P2679', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for foreword_author in string.gmatch(foreword_authors, '([^,]+)') do end else addRow(metadataTable, 'foreword author', '{{Al|' .. args.foreword_author .. '}}') end else end if args.afterword_author then if item then addRow(metadataTable, 'afterword author', withWikidataLink(args.afterword_author)) local afterword_authors = item:formatPropertyValues( 'P2680', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for afterword_author in string.gmatch(afterword_authors, '([^,]+)') do end else addRow(metadataTable, 'afterword author', '{{Al|' .. args.afterword_author .. '}}') end else end if args.editor then if item then addRow(metadataTable, 'editor', withWikidataLink(args.editor)) local editors = item:formatPropertyValues( 'P98', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for editor in string.gmatch(editors, '([^,]+)') do html:wikitext('[[Category:' .. editor .. ' edited]]') end else addRow(metadataTable, 'editor', '{{Al|' .. args.editor .. '}}') end else end addRow(metadataTable, 'illustrator', withWikidataLink(args.illustrator)) if args.lyricist then if item then addRow(metadataTable, 'lyricist', withWikidataLink(args.lyricist)) local lyricists = item:formatPropertyValues( 'P676', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for lyricist in string.gmatch(lyricists, '([^,]+)') do html:wikitext('[[വർഗ്ഗം:' .. lyricist .. ' എഴുതിയത്]]') end else addRow(metadataTable, 'lyricist', '{{Al|' .. args.lyricist .. '}}') end else end if args.composer then if item then addRow(metadataTable, 'composer', withWikidataLink(args.composer)) local composers = item:formatPropertyValues( 'P86', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for composer in string.gmatch(composers, '([^,]+)') do html:wikitext('[[വർഗ്ഗം:' .. composer .. ' രചിച്ചത്]]') end else addRow(metadataTable, 'composer', '{{Al|' .. args.composer .. '}}') end else end if args.singer then if item then addRow(metadataTable, 'singer', withWikidataLink(args.singer)) local singers = item:formatPropertyValues( 'P175', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for singer in string.gmatch(singers, '([^,]+)') do end else addRow(metadataTable, 'singer', '{{Al|' .. args.singer .. '}}') end else end if args.publisher then if item then addRow(metadataTable, 'publisher', withWikidataLink(args.publisher)) local publishers = item:formatPropertyValues( 'P123', { mw.wikibase.entity.claimRanks.RANK_NORMAL } )['value'] for publisher in string.gmatch(publishers, '([^,]+)') do html:wikitext('[[Category:' .. publisher .. ' Published by]]') end else addRow(metadataTable, 'publisher', '[[Publisher:' .. args.publisher .. '|' .. args.publisher .. ']]') end else html:wikitext( '[[വർഗ്ഗം:പ്രസാധകന്റെ വിവരങ്ങളില്ലാത്ത നിഘണ്ടു താൾ]]' ) end if args.address then if item then addRow(metadataTable, 'address', withWikidataLink(args.address)) else addRow(metadataTable, 'address', '[[:w:ml:' .. args.address .. '|' .. args.address .. ']]') end else html:wikitext('[[വർഗ്ഗം:പ്രസിദ്ധീകരണ വിവരങ്ങളില്ലാത്ത നിഘണ്ടു താൾ]]' ) end if args.year then addRow(metadataTable, 'year of publication', '{{#invoke:ConvertDigit|main|' .. args.year .. '}} AD ({{#invoke:ConvertDigit|main|{{#expr: ' .. args.year .. ' - 593}}}} BC) [[Category:{{#invoke:ConvertDigit|main|' .. args.year .. '}} AD ൽ പ്രസിദ്ധീകരിച്ചത്]]' ) else html:wikitext('[[വർഗ്ഗം:പ്രസിദ്ധീകരണ വർഷമില്ലാത്ത നിഘണ്ടു താൾ]]' ) end addRow(metadataTable, 'printer', withWikidataLink(args.printer)) if args.source == 'djvu' then addRow(metadataTable, 'source', '[[File:DjVu-logo.svg|25px|link=File:' .. mw.title.getCurrentTitle().text ..']] [[File:BookReader-favicon.svg|20px|link={{fullurl:toollabs:bookreader/ml/{{{n|{{PAGENAMEE}}}}}}}]]') elseif args.source == 'pdf' then addRow(metadataTable, 'source', '[[File:Icon pdf.svg|25px|link=File:' .. mw.title.getCurrentTitle().text ..']] [[File:BookReader-favicon.svg|20px|link={{fullurl:toollabs:bookreader/ml/{{{n|{{PAGENAMEE}}}}}}}]]') elseif args.source == 'ogg' then addRow(metadataTable, 'source', '[[File:Speaker Icon.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') elseif args.source == 'webm' then addRow(metadataTable, 'source', '[[File:Open Iconic video.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') elseif args.source == 'mp3' then addRow(metadataTable, 'source', '[[File:Speaker Icon.svg|20px|link=File:' .. mw.title.getCurrentTitle().text ..']]') --add an indicator linking to the usages local query = 'SELECT ?item ?itemLabel ?pages ?page WHERE {\n ?item wdt:P996 <http://commons.wikimedia.org/wiki/Special:FilePath/' .. mw.uri.encode(mw.title.getCurrentTitle().text, 'PATH') .. '> .\n OPTIONAL { ?page schema:about ?item ; schema:isPartOf <https://ml.wikisource.org/> . }\n OPTIONAL { ?item wdt:P304 ?pages . }\n SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],ml".\n}}' html:wikitext('<indicator name="index-scan-wikidata">[[File:Wikidata Query Service Favicon.svg|20px|Wikidata item|link=https://query.wikidata.org/embed.html#' .. mw.uri.encode(query, 'PATH') .. ']]</indicator>') else addRow(metadataTable, 'source', args.source) end if args.progress == 'T' then addRow(metadataTable, 'progress', '[[Category:Dictionary validated]][[Category:The dictionary printout has been corrected]][[:Category:Dictionary validated|All pages have been validated and work is complete.]]') elseif args.progress == 'V' then addRow(metadataTable, 'progress', '[[Category:The dictionary printout has been corrected.]][[:Category:The dictionary print has been corrected | The print of all pages has been corrected but not validated.]]') elseif args.progress == 'C' then addRow(metadataTable, 'progress', '[[Category:The dictionary printout has not been corrected.]][[:Category:The printout of the dictionary has not been corrected|The printout of all pages has not been corrected.]]') elseif args.progress == 'OCR' then addRow(metadataTable, 'progress', '[[Category:Ready for transcription-OCR and print correction]][[:Category:Nirghanta-Ready for OCR and print correction|Ready for OCR and print correction]]') elseif args.progress == 'L' then addRow(metadataTable, 'progress', '[[Category:The dictionary file needs to be fixed.]]<span style="color: #FF0000; ">[[:Category:The dictionary file needs to be fixed | This file needs to be fixed before printing.]]</span>') elseif args.progress == 'X' then addRow(metadataTable, 'progress', '[[Category:The dictionary file needs to be checked.]][[:Category:The dictionary file needs to be checked | Check everything and create a page list before printing.]]') else addRow(metadataTable, 'progress', '[[Category:Nirghanta - Unknown progress]][[:Category:Definition - Unknown progress|Unknown progress]]') end addRow(metadataTable, 'fragments', args.volumes) if args.pages then left:tag('div'):css('clear', 'both') left:tag('h3'):wikitext('പുസ്തക താളുകൾ <br> {{പുരോഗതി|{{PAGENAME}}}}') left:tag('div'):attr('id', 'pagelist'):css({ background = '#F0F0F0', ['padding-left'] = '0.5em', ['text-align'] = 'justify' }):newline():wikitext(args.pages):newline() else mw.addWarning('താളുകളുടെ പട്ടിക സൃഷ്ടിക്കുക') end if args.remarks or args.notes then local right = html:tag('div'):css({ width = '35%;', ['padding-left'] = '1em', float = 'left' }) if args.remarks then right:tag('div'):attr('id', 'remarks'):wikitext(args.remarks) end if args.notes then right:tag('hr'):css({ ['margin-top'] = '1em', ['margin-bottom'] = '1em' }) right:tag('div'):attr('id', 'notes'):wikitext(args.notes) end end html:wikitext('[[Category:നിഘണ്ടു]]') if args.source == 'djvu' then html:wikitext('[[Category:Deja Vu Dictionary Page]]') elseif args.source == 'pdf' then html:wikitext('[[Category:PDF dictionary page‎]]') elseif args.source == 'ogg' then html:wikitext('[[Category:OGG dictionary page]]') elseif args.source == 'webm' then html:wikitext('[[Category:webm dictionary page‎]]') elseif args.source == 'mp3' then html:wikitext('[[Category:mp3 dictionary page‎]]') end if not args.remarks then html:wikitext('[[Category:സൂചികയില്ലാത്ത നിഘണ്ടു താൾ]]') end return tostring(html) end local p = {} function p.indexTemplate( frame ) return indexTemplate( frame ) end return p 5d8tpkczrcml7hb1xr43ip4emt76y32 ഫലകം:പുരോഗതി 10 80457 237690 2025-07-05T12:19:06Z Adithyak1997 6759 തിരിച്ചുവിടുന്നു 237690 wikitext text/x-wiki #തിരിച്ചുവിടുക [[ഫലകം:Index progress bar]] n0lyeh4wh3w1b4bumn8akdgz9qsxwwm