நூலகம்:தானியங்கிகள்

From நூலகம்

இந்த பக்கத்தில் நூல்கம் விக்கியில் தானியங்கியை பயன்படுத்துவதற்கான வழிமுறைகள் விவரிக்கப்பட்டுள்ளன.

pywikipedia தானியங்கிகளை பயன்படுத்துதல்

இவ்வகையான தானியங்கிகளை குறித்த அடிப்படை தகவல்களுக்கு காண்க தமிழ் விக்கிப்பீடியா தானியங்கிகள் பக்கம்.

இவ்வகையான விக்கிப்பீடியாவுக்காக உருவாக்கப்பட்ட தானியங்கிகளை பிற விக்கிமீடியா அல்லாத திட்டங்களுக்கு பயன்படுத்த சில மாறுதல்களை இந்த Frameworkல் செய்ய வேண்டும். காண்க: மெட்டா விக்கி: பைவிக்கிப்பீடியா தானியங்கிகளை பிற திட்டங்களுக்கு பயன்படுத்துதல்

நூல்கம் திட்டத்துக்கான Family பைத்தான் கோப்பான noolaham_family.py கீழ்கண்டவாறு இயற்றல் வேண்டும். பின்னர் இந்த கோப்பை families என்ற கோப்புறைக்குள் இட வேண்டும்


# -*- coding: utf-8  -*-

import family

# The official Noolaham Wiki.

class Family(family.Family):
    def __init__(self):
        family.Family.__init__(self)

        self.name = 'noolaham'

        self.langs = {
                'ta': 'noolaham.net',
        }
        self.namespaces[4] = {
            '_default': [u'நூலகம்', self.namespaces[4]['_default']],
        }
        self.namespaces[5] = {
            '_default': [u'நூலகம் பேச்சு', self.namespaces[5]['_default']],
        }

        self.content_id = "mainContent"

    def RversionTab(self, code):
        return r'<li\s*><a href=".*?title=.*?&action=history".*?>.*?</a></li>'

    def version(self, code):
        return "1.10.1"

    def path(self, code):
        return '/wiki/index.php'

user-config.py பைத்தான் கோப்பை, கீழ்க்கண்டவாறு Configure செய்தல் வேண்டும்


mylang = 'ta'
family= 'noolaham'
usernames['noolaham']['ta'] = u'VinodhBOT'
sysopnames['noolaham']['ta']= u'Vinodh.vinodh' # நிர்வாகியாக இருந்தால் மட்டுமே இதை இணைக்கவும்

படிமங்களை வகைப்படுத்த பயன்படுத்தப்பட்ட தானியங்கி பைத்தான் நிரல்

#!/usr/bin/python
# -*- coding: utf-8  -*-
"""
This bot appends Category

"""
__version__ = '$Id: unusedfiles.py 4538 2007-11-13 17:19:12Z leogregianin $'

import wikipedia
import pagegenerators
import sys

comment = {
    'ta': u'Adding Category:Bookcover',
    'he': u'תמונות להסרה',
    'pt': u'marcação de imagens para eliminação',
    }

def appendtext(page, apptext):
    try:
        text = page.get()
    except wikipedia.IsRedirectPage:
        return
    # Here go edit text in whatever way you want. If you find you do not  (he meant "Here you can go editing...")
    # want to edit this page, just return
    text = apptext;
    if text != page.get():
        wikipedia.showDiff(page.get(),text)
        msg = wikipedia.translate(wikipedia.getSite(), comment)
        page.put(text, msg)

def main():
    for arg in wikipedia.handleArgs():
        start.append(arg)

    mysite = wikipedia.getSite()
    # If anything needs to be prepared, you can do it here

    basicgenerator = pagegenerators.PrefixingPageGenerator('image:')
    generator = pagegenerators.PreloadingGenerator(basicgenerator)
    for page in generator:
        #print page.title()
        #if '<table id="mw_metadata" class="mw_metadata">' not in page.getImagePageHtml() and 'http://' not in page.get():
            wikipedia.output(u'\n' + page.title())
            appendtext(page,u'{{bookcover}}')

if __name__ == "__main__":
    try:
        main()
    finally:
        wikipedia.stopme()

அனைத்து படிமங்களையும் ஒரே பகுப்பில் இட வேண்டி இருந்ததால், இப்பணி மிக இலகுவாக மேற்கண்ட நிரல் மூலம் செய்யப்பட்டது.

Total : 150,926 | Total : 5,509,494

Type of Documents : Project Noolaham [115,207] Multimedia Archive [35,173] சுவடிகள் [678]

Reference Resources : Key Words [125] Organizations [1,876] People [3,348] Portals [25]

Information Resource Type : Books [18,645] Magazines [16,761] Newspapers [67,268] Pamphlets [1,328] சிறப்பு மலர்கள் [6,874] நினைவு மலர்கள் [2,291] அறிக்கைகள் [2,139]

Categories : Authors [8,359] Publishers [6,720] Year of Publication [238]

Special Collections : Muslim Archive [2,826] | Upcountry Archive [1376] | Women Archive [1706]

Sister Projects : Pallikoodam - Open Educational Resources [15,923] | Project Vaasihasaalai [59] | Early Tamil Works [2909]

Special Collections : Project Kilinochchi Documentation [1841] | {{{2}}} [1840] | {{{2}}} [356]

Sister Projects : Panchangam Documentation [58] | Jaffna Public Library Digitaization [2,817] | {{{2}}} [274] | {{{2}}} [2,543] | Tamil Manuscripts [678] |

Sister Projects : Project WERC [116] | International Centre for Ethnic Studies [148] | Jaffna University Community Medicine [46] | Jaffna Newspapers [34,758] | Ariyalai [441] | Mallikai [442] | Uthayan [13,354] | Jaffna Prostestant Documentation [324] | Jaffna University Library [10,669] | Project Evelyn Ratnam [2596] | Caste in Sri Lanka [115] | Multimedia Archive [1129] | Tamil Documentation Conference 2013


நூலக நிறுவனத்திற்கு நிதிப்பங்களிப்பு செய்து உதவுங்கள் | நூலகத்திற்குப் பங்களிக்க