Module:Good Articles: Difference between revisions

Content deleted Content added
Wikipedia:Good articles/Summary
 
(2 intermediate revisions by 2 users not shown)
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
shortcuts = frame:expandTemplate{ title = 'shortcut', args = { args.shortcut } }
header = frame:expandTemplate{ title = 'Wikipedia:Good articles/headerSummary', args = { shortcuts = shortcuts } }
end
local introtext = args.text or ''
Line 64 ⟶ 62:
image = '' -- make section without an image
end
output = output .. [===[<div class="mw-collapsible" style="clear:both;"padding: class="NavFrame4px;border: 1px solid #a2a9b1;font-size: 95%;">
<span id="World history"></span>
<div class="NavHead" style="padding:2px 2px 2px 30px; background-color:#FFFAF0; textfont-alignsize:leftlarger; font-sizeweight:larger bold;">]===] .. image .. title .. [===[</div>
<div class="NavContentmw-collapsible-content" style="textfont-alignsize:left; 100%">
 
==&shy;&nbsp;==