Module:topos/functions: Διαφορά μεταξύ των αναθεωρήσεων

Περιεχόμενο που διαγράφηκε Περιεχόμενο που προστέθηκε
test if nil
+IF IT EXISTS
Γραμμή 10:
-- write one keyword - get another
 
--- ============ write first keyword - get name of category ============== -- word_cat ALWAYS EXISTS
-- I wish to get the keyword 'word_cat' if I write the first keyword, which is called 'kind'
-- I need word_cat, because it matches the name of Categories, the cat_title.
Γραμμή 35:
end
 
--- ========== write word_cat - get the sorting key ============= -- key ALWAYS EXISTS
-- i need three keywordss, the third keyword i choose is: word
function p.catword_to_catkey(word_cat) -- word_cat is the name of the Category.
Γραμμή 57:
end
 
--- ========== write word_cat - get parent ============= -- IF IT EXISTS
-- i need three keywords, the third keyword i choose is: word
function p.catword_to_catparent(word_cat) -- word_cat is the name of the Category.
Γραμμή 81:
end
 
--- ========== write word_cat - get parent2 ============= -- IF IT EXISTS
-- i need three keywords, the third keyword i choose is: word
function p.catword_to_catparent2(word_cat) -- word_cat is the name of the Category.
Γραμμή 100:
end
if parent2 == '' or parent2 == nil then return '' else
return table.concat(ret)
end
end
 
--- ========== write word_cat - get parent3 ============= -- IF IT EXISTS
-- i need three keywords, the third keyword i choose is: word
function p.catword_to_catparent3(word_cat) -- word_cat is the name of the Category.
Γραμμή 122 ⟶ 124 :
end
if parent3 == '' or parent3 == nil then return '' else
return table.concat(ret)
end
end
 
 
--- ========== write word_cat - get parent4 ============= -- IF IT EXISTS
-- i need three keywords, the third keyword i choose is: word
function p.catword_to_catparent4(word_cat) -- word_cat is the name of the Category.
Γραμμή 145 ⟶ 149 :
end
if parent4 == '' or parent4 == nil then return '' else
return table.concat(ret)
end
end
 
 
--- ========== write word_cat - get extra1 ============= -- IF IT EXISTS
-- i need three keywords, the third keyword i choose is: word
function p.catword_to_catextra1(word_cat) -- word_cat is the name of the Category.
Γραμμή 168 ⟶ 174 :
end
if extra1 == '' or extra1 == nil then return '' else
return table.concat(ret)
end
end
 
--- ========== write word_cat - get extra2 ============= -- IF IT EXISTS
-- i need three keywords, the third keyword i choose is: word
function p.catword_to_catextra2(word_cat) -- word_cat is the name of the Category.
Γραμμή 190 ⟶ 198 :
end
if extra2 == '' or extra2 == nil then return '' else
return table.concat(ret)
end
end
 
 
--- ========== write word_cat - get extra3 ============= -- IF IT EXISTS
-- i need three keywords, the third keyword i choose is: word
function p.catword_to_catextra3(word_cat) -- word_cat is the name of the Category.
Γραμμή 213 ⟶ 223 :
end
if extra3 == '' or extra3 == nil then return '' else
return table.concat(ret)
end
end