Module:Handbook: Difference between revisions

Kuhlau (talk | contribs)
No edit summary
Kuhlau (talk | contribs)
No edit summary
 
(One intermediate revision by the same user not shown)
Line 37: Line 37:
if args.about then
if args.about then
args.about = lib.split(args.about, ';')
args.about = lib.split(args.about, ';')
if title.rootText == 'Handbook Entry' then
if title.rootText == 'Handbook' then
out:tag('i'):wikitext(require('Module:Hatnote').main(args.about))
out:tag('i'):wikitext(require('Module:Hatnote').main(args.about))
end
end
Line 43: Line 43:
local size = args.size or '200px'
local size = args.size or '200px'
if (title.rootText == 'Handbook Entry') then
if (title.rootText == 'Handbook') then
size = '400px'
size = '400px'
end
end
Line 140: Line 140:
count,
count,
"'''",
"'''",
(count == 1 and '[[Handbook Entry]] ' or '[[Handbook Entries]] '),
(count == 1 and ' [[Handbook Entry]] ' or ' [[Handbook Entries]] '),
(args[1] and ('that match' .. (count == 1 and 'es' or '') .. ' the category selection:') or ' are in ' .. title)
(args[1] and ('that match' .. (count == 1 and 'es' or '') .. ' the category selection:') or ' are in ' .. title)
)
)