Module:Good Articles: Difference between revisions

Content deleted Content added
remove navframe
m slight simplification
Line 6:
-- expect args.shortcut e.g. GA/H, args.type e.g. History, args.text a long list
local subpage = frame:preprocess("{{SUBPAGENAME}}") -- I never did look up if there's a better way to do this...
local header, shortcuts = ""'', ''
local shortcuts = ""
local type = args.type or "error: specify type = Good Articles type"
local image = args.image and '[[' .. args.image .. '|22px|left]]' or ''
if args.image then image = '[[' .. args.image .. '|22px|left]]' end
local sectioncount = 0
if (subpage == type or args.override) then -- I haven't figured out how to deal with missing shortcut so why pretend