Content deleted Content added
mNo edit summary |
mNo edit summary |
||
Line 5:
-- 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
local shortcuts = ""
if args and args.shortcut and subpage == args.type then
Line 11:
header = frame:expandTemplate{ title = 'Wikipedia:Good articles/header', args = { shortcuts = shortcuts } }
end
local text = args.text or args[1] or ""
local footer = [===[
</div>
</div>
<!-- end of list -->]===]
local output = header .. [===[{{#ifeq: {{SUBPAGENAME}} | History | <!-- only include header on this page -->
__NOTOC__
<div style="clear:both;">
|