Module:Scriptor/MuneraQuaero

E Wikisource

Documentation for this module may be created at Module:Scriptor/MuneraQuaero/doc

p = {}

function p.scriptor(x, y)
	if string.find(x, "architectus") or string.find(x, "architectural") then architectus = "[[Categoria:Architecti|".. y.. "]]" else architectus = "" end
	if string.find(x, "astronomus") then astronomus = "[[Categoria:Astronomi|".. y.. "]]" else astronomus = "" end
	if string.find(x, "biographus") or string.find(x, "biographiae") or string.find(x, "biographer") then biographus = "[[Categoria:Biographi|".. y.. "]]" else biographus = "" end
	if string.find(x, "botanicus") or string.find(x, "botanista") then botanicus = "[[Categoria:Botanici|".. y.. "]]" else botanicus = "" end
	if string.find(x, "chemicus") then chemicus = "[[Categoria:Chemici|".. y.. "]]" else chemicus = "" end
	if string.find(x, "explorator") or string.find(x, "traveller") or string.find(x, "viator") or string.find(x, "viatrix") or string.find(x, "nauta") then explorator = "[[Categoria:Exploratores|".. y.. "]]" else explorator = "" end
	if string.find(x, "fabulator") then fabulator = "[[Categoria:Scriptores fabularum|".. y.. "]]" else fabulator = "" end
	if string.find(x, "ganeo") or string.find(x, "chef") or string.find(x, "cook") or string.find(x, "coquus") then ganeo = "[[Categoria:Ganeones|".. y.. "]]" else ganeo = "" end
	if string.find(x, "geographus") or string.find(x, "cartographus") then geographus = "[[Categoria:Geographi|".. y.. "]]" else geographus = "" end
	if string.find(x, "geologus") or string.find(x, "vulcanologist") or string.find(x, "geophysicist") then geologus = "[[Categoria:Geologi|".. y.. "]]" else geologus = "" end
	if string.find(x, "goliardus") then goliardus = "[[Categoria:Goliardi|".. y.. "]]" else goliardus = "" end
	if string.find(x, "grammaticus") then grammaticus = "[[Categoria:Grammatici|".. y.. "]]" else grammaticus = "" end
	if string.find(x, "rerum gestarum scriptor") or mw.ustring.find(x, "%Ahistoricus") or string.find(x, "historiographus") then historicus = "[[Categoria:Historici|".. y.. "]]" else historicus = "" end
	if mw.ustring.find(x, "imperator romanus%S") then imperatorromanus = "[[Categoria:Imperatores Romani|".. y.. "]]" else imperatorromanus = "" end
	if string.find(x, "imperator constantinopolitanus") or string.find(x, "imperator romanus orientalis") or  string.find(x, "imperator orientalis") then imperatorconstantinopolitanus = "[[Categoria:Imperatores Constantinopolitani|".. y.. "]]" else imperatorconstantinopolitanus = "" end
	if string.find(x, "imperator romanus sacer") or  string.find(x, "imperator sacer") then imperatorsacer = "[[Categoria:Imperatores Romani Sacri|".. y.. "]]" else imperatorsacer = "" end
	if string.find(x, "ingeniarius") or string.find(x, "engineer") or string.find(x, "inventor") then ingeniarius = "[[Categoria:Ingeniarii|".. y.. "]]" else ingeniarius = "" end
	if string.find(x, "interpres") or string.find(x, "translator") then interpres = "[[Categoria:Interpretes|".. y.. "]]" else interpres = "" end
	if string.find(x, "iuris consultus") or string.find(x, "iurisconsultus") or string.find(x, "iuris peritus") or string.find(x, "causidicus") or string.find(x, "iudex") then iurisconsultus = "[[Categoria:Iuris consulti|".. y.. "]]" else iurisconsultus = "" end
	if string.find(x, "mathematicus") then mathematicus = "[[Categoria:Mathematici|".. y.. "]]" else mathematicus = "" end
	if string.find(x, "medicus") then medicus = "[[Categoria:Medici|".. y.. "]]" else medicus = "" end
	if mw.ustring.find(x, "%Amiles") or mw.ustring.find(x, "%Aeques") then miles = "[[Categoria:Milites|".. y.. "]]" else miles = "" end
	if string.find(x, "musicus") or string.find(x, "musicologus") or string.find(x, "musicographus") then musicus = "[[Categoria:Musici|".. y.. "]]" else musicus = "" end
	if string.find(x, "mythistoricus") then mythistoricus = "[[Categoria:Scriptores mythistoriarum|".. y.. "]]" else mythistoricus = "" end
	if string.find(x, "naturalista") or string.find(x, "naturae peritus") then naturalista = "[[Categoria:Naturalistae|".. y.. "]]" else naturalista = "" end
	if string.find(x, "oeconomus") then oeconomus = "[[Categoria:Oeconomi|".. y.. "]]" else oeconomus = "" end
	if mw.ustring.find(x, "%Aorator%A") or string.find(x, "rhetor") then orator = "[[Categoria:Oratores|".. y.. "]]" else orator = "" end
	if string.find(x, "palaeontologus") or string.find(x, "paleontologist") then palaeontologus = "[[Categoria:Palaeontologi|".. y.. "]]" else palaeontologus = "" end
	if string.find(x, "philologus") or string.find(x, "linguista") then philologus = "[[Categoria:Philologi|".. y.. "]]" else philologus = "" end
	if string.find(x, "philosophus") then philosophus = "[[Categoria:Philosophi|".. y.. "]]" else philosophus = "" end
	if string.find(x, "physicus") then physicus = "[[Categoria:Physici|".. y.. "]]" else physicus = "" end
	if string.find(x, "poëta") or string.find(x, "poeta") then poeta = "[[Categoria:Poetae|".. y.. "]]" else poeta = "" end
	if string.find(x, "politicus") or string.find(x, "rector provinciae") or  string.find(x, "consul") or string.find(x, "politologus") or string.find(x, "political theorist") or string.find(x, "political philosopher") or string.find(x, "political scientist") then politicus = "[[Categoria:Politici|".. y.. "]]" else politicus = "" end	
	if string.find(x, "rex") or string.find(x, "monarcha") then rex = "[[Categoria:Reges|".. y.. "]]" else rex = "" end	
	if string.find(x, "scriptor scaenicus") then scaenicus = "[[Categoria:Theatri scriptores scaenici|".. y.. "]]" else scaenicus = "" end	
	if string.find(x, "theologus") or string.find(x, "theologa") then theologus = "[[Categoria:Theologi|".. y.. "]]" else theologus = "" end
	if string.find(x, "trobator") or string.find(x, "trouvere") then trobator = "[[Categoria:Trobatores|".. y.. "]]" else trobator = "" end
	if string.find(x, "zoologus") or string.find(x, "zoologist") then zoologus = "[[Categoria:Zoologi|".. y.. "]]" else zoologus = "" end
		
	--other options for clergymen
	if string.find(x, "cardinalis") then cardinalis = "[[Categoria:Cardinales|".. y.. "]]" else cardinalis = "" end
	if string.find(x, "episcopus") then episcopus = "[[Categoria:Episcopi|".. y.. "]]" else episcopus = "" end
	if string.find(x, "doctor ecclesiae") then doctorecclesiae = "[[Categoria:Doctores Ecclesiae catholicae|".. y.. "]]" else doctorecclesiae = "" end
	if string.find(x, "societas iesu") or string.find(x, "societatis iesu") then iesuita = "[[Categoria:Clerici societatis Iesu|".. y.. "]]" else iesuita = "" end
	if string.find(x, "ordo fratrum praedicatorum") or string.find(x, "dominicanus") then dominicanus = "[[Categoria:Fratres Sancti Dominici|".. y.. "]]" else dominicanus = "" end
	if string.find(x, "ordines franciscani") or string.find(x, "franciscanus") then franciscanus = "[[Categoria:Fratres Sancti Francisci|".. y.. "]]" else franciscanus = "" end
	if string.find(x, "ordo sancti benedicti") or string.find(x, "ordinis sancti benedicti") or string.find(x, "benedictinus") then benedictinus = "[[Categoria:Benedictini|".. y.. "]]" else benedictinus = "" end
	if string.find(x, "barnabita") then barnabita = "[[Categoria:Barnabitae|".. y.. "]]" else barnabita = "" end
	if string.find(x, "monachus") or string.find(x, "monacha") or mw.ustring.find(x, "%Asoror") then monachus = "[[Categoria:Monachi|".. y.. "]]" else monachus = "" end
	if string.find(x, "papa") then papa = "[[Categoria:Papae|".. y.. "]]" else papa = "" end
		if string.find(x, "papa alexandriae") then papa = "" end
	if string.find(x, "presbyter") or string.find(x, "clericus") then presbyter = "[[Categoria:Presbyteri|".. y.. "]]" else presbyter = "" end
	if string.find(x, "sanctus") then sanctus = "[[Categoria:Sancti|".. y.. "]]" else sanctus = "" end
	if string.find(x, "patriarcha oecumenicus constantinopolitanus") or string.find(x, "patriarcha constantinopolitanus")  or string.find(x, "patriarcha byzantinus") or string.find(x, "patriarcha constantinopoli")  then patriarcha = "[[Categoria:Patriarchae Ecclesiae Orthodoxae|".. y.. "]]" else patriarcha = "" end
	if string.find(x, "patriarchatus alexandrinus") or string.find(x, "patriarcha alexandriae") or string.find(x, "patriarcha alexandrinus") or string.find(x, "patriarcha ecclesiae coptae") then patriarchaalexandriae = "[[Categoria:Patriarchae Alexandriae|".. y.. "]]" else patriarchaalexandriae = "" end
	if string.find(x, "lutheranus") or string.find(x, "luteranus") or string.find(x, "reformator") then lutheranus = "[[Categoria:Viri Ecclesiae Reformationis|".. y.. "]]" else lutheranus = "" end
	if string.find(x, "rabbinus") or string.find(x, "rabbi") then rabbinus = "[[Categoria:Rabbini|".. y.. "]]" else rabbinus = "" end
	if string.find(x, "maronita") or string.find(x, "maronite") then maronita = "[[Categoria:Maronitae|".. y.. "]]" else maronita = "" end
		
	return architectus.. astronomus.. biographus.. botanicus.. chemicus.. explorator.. fabulator.. ganeo.. geographus.. geologus.. goliardus.. grammaticus.. historicus.. imperatorromanus.. imperatorconstantinopolitanus.. imperatorsacer.. ingeniarius.. interpres.. iurisconsultus.. mathematicus.. medicus.. miles.. musicus.. mythistoricus.. naturalista.. oeconomus.. orator.. palaeontologus.. philologus.. philosophus.. physicus.. poeta.. politicus.. rex.. scaenicus.. theologus.. trobator.. zoologus.. cardinalis.. episcopus.. doctorecclesiae.. iesuita.. dominicanus.. franciscanus.. benedictinus.. barnabita.. monachus.. papa.. presbyter.. sanctus.. patriarcha.. patriarchaalexandriae.. lutheranus.. rabbinus.. maronita
    end
return p