Module:auto cat/data: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 403: Line 403:
     -- Topic subcategories  
     -- Topic subcategories  
     -- World specificity
     -- World specificity
    {"%l in-world terms", {"%l topics", "In-world terms by language"}},
    {"%l in-world terms", {"%l topics| ", "In-world terms by language"}},
    {"%l out-of-world terms", {"%l topics", "Out-of-world terms by language"}},
    {"%l out-of-world terms", {"%l topics| ", "Out-of-world terms by language"}},
    -- Names
    -- Names
    {"%l names", {"%l topics", "Names by language| "}},
    {"%l names", {"%l topics| ", "Names by language| "}},
    {"%l given names", {"%l topics", "Given names by language", "%l names"}},
    {"%l given names", {"%l topics| ", "Given names by language", "%l names"}},
    {"%l surnames", {"%l topics", "Surnames by language", "%l names"}},
    {"%l surnames", {"%l topics| ", "Surnames by language", "%l names"}},
   
   
-- Sort other term descriptors as lemma subcategories (needs to be at the end)
-- Sort other term descriptors as lemma subcategories (needs to be at the end)
Line 432: Line 432:


for subtopic, supertopics in pairs(subtopics) do
for subtopic, supertopics in pairs(subtopics) do
local subcats = {}
local subcats = {"%l topics| ", capitalize(subtopic) .. " topic by language"}
table.insert(subcats, "%l topics")
table.insert(subcats, capitalize(subtopic) .. " topic by language")
if type(supertopics) == "string" then
if type(supertopics) == "string" then
table.insert(subcats, "%c:" .. capitalize(supertopics))
table.insert(subcats, "%c:" .. capitalize(supertopics))
Line 444: Line 442:
table.insert(cats, {"%c:" .. capitalize(subtopic), subcats})
table.insert(cats, {"%c:" .. capitalize(subtopic), subcats})
end
end
table.insert(cats, {"%c:%s", {"%l topics", "%s topic by language"}})
table.insert(cats, {"%c:%s", {"%l topics| ", "%s topic by language"}})