Anonimo

Modulo:FunzioniGeneriche: differenze tra le versioni

Da Wikitrek.
m
nessun oggetto della modifica
mNessun oggetto della modifica
mNessun oggetto della modifica
 
(4 versioni intermedie di uno stesso utente non sono mostrate)
Riga 79: Riga 79:
Cell:node(List)
Cell:node(List)
else
else
Cell
if type(Field[1]) == "table" then
:wikitext(Field[1])
Cell
:wikitext(Field[1][1])
else
Cell
:wikitext(Field[1])
end
end
end
end
end
Riga 241: Riga 246:
end
end
--Removes suffix
--Removes suffix year or number specification
FullName = FullName:gsub("%s%(%d+%)", "")
FullName = FullName:gsub("%s%(%d+%)", "")
--Removes suffix registry number
FullName = FullName:gsub("%s[^%s]+$", "")
FullName = FullName:gsub("%s[^%s]+$", "")
Riga 286: Riga 292:
         end
         end
        
        
         --[=[
         if string.find(ParaString, "%[%[") == nil then
        -- Determine if property is Assignment
        -- There is no wikilink, plain text
    if PropName == "Assegnazione" then
        LIPattern = "<li>(.-)</li>"
    -- Look for <i> to get the object of assignment
        else
    LIPattern = "<li>.-<i>%[%[(.-)%]%]</i>.-</li>"
        -- A wikilink is present, discard surrounding text
    else
        LIPattern = "<li>.-%[%[(.-)%]%].-</li>"
    LIPattern = "<li>.-%[%[(.-)%]%].-</li>"
        end
    end
    ]=]
   
    LIPattern = "<li>.-%[%[(.-)%]%].-</li>"
    
    
     -- Determine if property is Assignment, so process a string like:
     -- Determine if property is Assignment, so process a string like: