66 689
contributi
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 205: | Riga 205: | ||
-- @return Wikitext to inject in template | -- @return Wikitext to inject in template | ||
function p.SecBoxBuilder(frame) | function p.SecBoxBuilder(frame) | ||
local TemplateName | |||
local SeriesQ | local SeriesQ | ||
local Series | local Series | ||
Riga 220: | Riga 222: | ||
local FullOutput = true | local FullOutput = true | ||
local Output = {} | local Output = {} | ||
-- Get page name and clean to get the name | |||
TemplateName = string.gsub(frame:getParent():getTitle(), "Template:", "") | |||
--Series | --Series | ||
Riga 245: | Riga 250: | ||
--]=] | --]=] | ||
return frame:expandTemplate{title = 'BoxSecondario', args = {Titolo = 'Title', Contenuto = "Content<br />" .. | return frame:expandTemplate{title = 'BoxSecondario', args = {Titolo = 'Title', Contenuto = "Content<br />" .. TemplateName, Nome = TemplateName}} | ||
end | end | ||