Modul:TemplateStyles

Från Järnvägsdata

local p = {}

function p.templatestyles( frame ) local pframe = frame:getParent() local args = pframe.args local arg1 = args[ 1 ] if arg1 and arg1 ~= then return frame:preprocess( '' .. arg1 .. '' ) else return frame:preprocess( '' .. mw.title.new( mw.title.getCurrentTitle().fullText .. '/styles.css' ).fullText .. '' ) end end

return p