Anonimo

Modulo:FunzioniGeneriche: differenze tra le versioni

Da Wikitrek.
EsempioBreve prototype
(TItles in example output)
(EsempioBreve prototype)
Riga 33: Riga 33:
     return  Intro .. DoubleLF .. CodeString .. DoubleLF .. tostring(pre) .. DoubleLF  .. ReturnString .. DoubleLF .. frame:expandTemplate{ title = SubPageTitle }
     return  Intro .. DoubleLF .. CodeString .. DoubleLF .. tostring(pre) .. DoubleLF  .. ReturnString .. DoubleLF .. frame:expandTemplate{ title = SubPageTitle }
     end
     end
end
function p.EsempioBreve(frame)
--<code><nowiki>{{DTItem|Q11}}</nowiki></code> → {{DTItem|Q11}}
local ExampleText
if frame.args[1] == nil then
        Return "Error"
    else
        ExampleText=frame.args[1]
    end
return "<code><nowiki>" .. mw.text.nowiki(ExampleText) .. "</nowiki></code> → " .. frame:expandTemplate{ title = ExampleText }
end
end
function p.TableFromArray(AllRows)
function p.TableFromArray(AllRows)