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

Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
FAILED TEST (at end): use |lemma= & |cat=for categories semi-manual which we do not wish to include at data. e.g. Κατηγορία:Κύρια ονόματα 1ης κλίσης αρσενικά χωρίς ενικό (αρχαία ελληνικά)
Γραμμή 238:
-- text_topos = text_wikt .. ' » [[:Κατηγορία:Θεματικές κατηγορίες|Θεματικές κατηγορίες]]'
-- .. ' » [[:Κατηγορία:Ονομασίες|Ονομασίες]] » [[:Κατηγορία:Τοπωνύμια ανά είδος|Τοπωνύμια]]'
 
 
-------------------------------------------------------------------------- ##### TO DO needs interface admin
Γραμμή 295 ⟶ 294 :
-- ignore the titleword Κατηγορία (it may by an Appendix) [[Παράρτημα:Ουσιαστικά (νέα ελληνικά)]] should not be confuse with [[:Κατηγορία:Ουσιαστικά (νέα ελληνικά)]]
-- THIS doeσ not work if m_page.fullpagetext(xx) then (it is mw.title.getCurrentTitle() -- the FULL title of the page΄
 
 
if args['text'] ~= '' and args['text'] ~= nil then
Γραμμή 4.589:
 
 
-- FAILED: Lua error, template loop detected
-- add title, as though it was something else
-- "{{auto cat|free|iso=grc|text=" .. different_lemma .. "}}"
-- TEST: use |lemma= & |cat=for categories semi-manual which we do not wish to include at data. e.g. [[:Κατηγορία:Κύρια ονόματα 1ης κλίσης αρσενικά χωρίς ενικό (αρχαία ελληνικά)]]
different_lemma = args['lemma2'] or '' -- read a different title - link to different lemma but show the title as it is
-- similar used as other_lemma at affixes
-- if different_lemma ~= '' and different_lemma ~= nil then
if args['lemma2'] ~= '' and args['lemma2'] ~= nil then
page_text = args['lemma2']
end
-- text = "\n" .. frame:expandTemplate{ title = 'auto cat', args = {'differect_lemma'} } .. "\n"
-- text = "\n" .. frame:expandTemplate{ title = 'auto cat', args = {'lemma2'} } .. "\n" -- template loop detected
 
-- https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual#frame:expandTemplate
-- if cat_title == 'Προέλευση λέξεων' then
-- text_plus = "\n" .. frame:expandTemplate{ title = 'δείτε', args = {':Κατηγορία:Δανεισμοί'} } .. "\n"
-- .. descr_der
-- end
 
-- if page_text == 'Κύρια ονόματα 1ης κλίσης αρσενικά χωρίς ενικό (αρχαία ελληνικά)' then
-- text = frame:expandTemplate{ title = 'auto cat', args = { text = 'κατη', cat = 'Σύνδεσμοι' } } .. "\n"
-- .. frame:expandTemplate{ title = 'δείτε', args = {':Κατηγορία:Μεταφραστικά δάνεια ' .. apota_text} } .. "\n"
-- end
 
different_cat = args['cat2'] or args['κατ2'] or '' -- Category for different lemma
-- similar used as other_cat at affixes
if args['cat2'] ~= '' and args['cat2'] ~= nil then
cat = "[[Κατηγορία:" .. different_cat .. "]]"
end
-- ========================================== OUTPUT