Anonimo

Modulo:FunzioniGeneriche: differenze tra le versioni

Da Wikitrek.
First version of ParameterToSemantic to process UL
mNessun oggetto della modifica
(First version of ParameterToSemantic to process UL)
Riga 237: Riga 237:
-- @return Sanitized string representing one or more property values
-- @return Sanitized string representing one or more property values
function p.ParameterToSemantic(frame)
function p.ParameterToSemantic(frame)
local Separator = ";"
local SepDeclaration = "|+sep=" .. Separator
local ParaString --= "<ul><li>[[Michael Perricone]]</li><li>[[Greg Elliot]]</li></ul>"
local FinalArray = {}
if frame.args[1] == nil then
        Return "Error"
    else
        ParaString = frame.args[1]
    end
for Item in string.gmatch(TestString, "<li>(.-)</li>") do
table.insert(FinalArray, Item)
end
return mw.text.nowiki(table.concat(FinalArray, Separator) .. SepDeclaration)
end
function p.ParameterToSemanticTest(frame)
local Separator = ";"
local Separator = ";"
local SepDeclaration = "|+sep=" .. Separator
local SepDeclaration = "|+sep=" .. Separator