require('strict')local data = mw.loadData('Module:Sandbox/Nardog/14d')local p =
function p._main(args) local code = args.code local doc = args.doc local name = args.name local desc = args.desc if not code and not doc then return mw.html.create('tr'):tag('td'):attr('colspan', 4) :tag('span') :addClass('error') :wikitext('Error: |code=
or |doc=
must be specified') :allDone end if not code and not args.instruction then code = doc .. '.js' end if not doc then local title = code:match('^(.+)%.[CJcj][Ss][Ss]?$') if title then title = mw.title.new(title) if not title.isExternal and title.exists then doc = title.fullText end end end if not name then name = doc and mw.ustring.match(doc, '[^/]+$') or mw.ustring.match(code, '([^/]+)%.js') end local row = mw.html.create('tr') local instruction if args.instruction ~= 'no' then instruction = args.instruction if not instruction then local isGlobal = args.skin
'meta' and code:sub(6) or interwiki