Module:Ref: Difference between revisions
Created page with "local p = {} local SOURCES = { loading_screens = 'Module:Ref/LoadingScreens', } function getSourceData(source) local sourcePath = SOURCES[source] assert(sourcePath, 'Unknown source type') return mw.loadData(sourcePath) end function p.findPage(frame) return p._findPage(frame.args.source or frame.args[1], frame.args.name or frame.args[2]) end function p._findPage(source, name) local sourceData = getSourceData(source) return sourceData[name:gsub('—', '—')..." |
mNo edit summary |
||
| Line 60: | Line 60: | ||
return out | return out | ||
end | end | ||
return p | return p | ||