Module:auto cat: Διαφορά μεταξύ των αναθεωρήσεων

Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
μ οκ,
test PREFIXES with param page
Γραμμή 105:
 
local export = {}
 
local module_path = 'Module:auto cat/' -- WRITE local, otherwise it looks for /param pages in OTHER modules!
 
-- MODULES needed
Γραμμή 1.145 ⟶ 1.147 :
-- -- THIS WORKS sort="8" -- ΝΟT THIS autosort = "8"
-- For manual from page, write |lemma= and |cat=
require (module_path .. 'param-prefix-id').param (args)
-- el LIST (νέα ελληνικά)
 
if mw.ustring.find(cat_title, "ακριβο%- από το") then affix="ακριβο-" other_cat="ακριβο-"
elseif mw.ustring.find(cat_title, "αν%- από το") then affix="αν-" other_cat="αν-"
elseif mw.ustring.find(cat_title, "άν%- από το") then affix="αν-" other_cat="άν-" sort="α"
elseif mw.ustring.find(cat_title, "ανα%- από το") then affix="ανα-" other_cat="ανα-"
elseif mw.ustring.find(cat_title, "ανθ%- από το") then affix="ανθ-" other_cat="ανθ-"
elseif mw.ustring.find(cat_title, "αφρο%- από το") then affix="αφρο-" other_cat="αφρο-"
elseif mw.ustring.find(cat_title, "γερο%- από το") then affix="γερο-" other_cat="γερο-"
elseif mw.ustring.find(cat_title, "γερό%- από το") then affix="γερό-" other_cat="γερό-"
elseif mw.ustring.find(cat_title, "δι%- από το") then affix="δι-" other_cat="δι-"
elseif mw.ustring.find(cat_title, "δί%- από το") then affix="δί-" other_cat="δί-"
elseif mw.ustring.find(cat_title, "κοντο%- από το") then affix="κοντο-" other_cat="κοντό-"
elseif mw.ustring.find(cat_title, "κοντό%- από το") then affix="κοντό-" other_cat="κοντό-"
elseif mw.ustring.find(cat_title, "λιο%- από το") then affix="λιο-" other_cat="λιο-"
elseif mw.ustring.find(cat_title, "λιό%- από το") then affix="λιό-" other_cat="λιό-"
elseif mw.ustring.find(cat_title, "λιπο%- από το") then affix="λιπο-" other_cat="λιπο-"
elseif mw.ustring.find(cat_title, "λιπό%- από το") then affix="λιπό-" other_cat="λιπό-"
elseif mw.ustring.find(cat_title, "ματο%- από το") then affix="ματο-" other_cat="ματο-"
elseif mw.ustring.find(cat_title, "ματό%- από το") then affix="ματό-" other_cat="ματό-"
elseif mw.ustring.find(cat_title, "μεσ%- από το") then affix="μεσ-" other_cat="μεσ-"
elseif mw.ustring.find(cat_title, "μισ%- από το") then affix="μισ-" other_cat="μισ-"
elseif mw.ustring.find(cat_title, "μισο%- από το") then affix="μισο-" other_cat="μισο-"
elseif mw.ustring.find(cat_title, "ορο%-, όπως") then affix="ορο-" other_cat="ορο-"
elseif mw.ustring.find(cat_title, "ορό%-, όπως") then affix="ορό-" other_cat="ορό-"
elseif mw.ustring.find(cat_title, "παλι%- από το") then affix="παλι-" other_cat="παλι-"
-- grc (αρχαία ελληνικά)
elseif mw.ustring.find(cat_title, "ἅ%-,") then affix="ἅ-" other_cat="ἅ-"
-- NORMAL, no multisense
else
affix = mw.ustring.sub(mw.ustring.match(cat_title, "Λέξεις με πρόθημα (.*)"), 1, -1) -- this is affix+hyphen
-- here, I need to extract e.g. α- from Κατηγορία:Λέξεις με πρόθημα α-, προτακτικό (νέα ελληνικά)
-- also the first ανθ- from Κατηγορία:Λέξεις με πρόθημα ανθ- από το αντι- (νέα ελληνικά)
end -- close all multisense if
if mw.ustring.sub(mw.ustring.match(cat_title, "Λέξεις με πρόθημα (.*)"), 1, -1):sub(-1) == '-'
then