"ഘടകം:Navbox" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

Content deleted Content added
(ചെ.) en:Module:Navbox എന്നതിൽ നിന്ന് 4 പതിപ്പുകൾ ഇറക്കുമതി ചെയ്തു
imported>Matt Fitzpatrick
navigation div instead of single-cell table wrapper
വരി 49:
-- also no show/hide link, then we need a spacer on the right to achieve the left shift.
if args.state == 'plain' then spacerSide = 'right' end
elseif args.navbar == 'plain' or (not args.name and mw.getCurrentFrame():getParent():getTitle():gsub('/sandbox$', '') == 'ഫലകംTemplate:Navbox') then
-- No navbar. Need a spacer on the left to balance out the width of the show/hide link.
if args.state ~= 'plain' then spacerSide = 'left' end
വരി 116:
 
titleCell
:tag('div')
:addClassattr('id', mw.uri.anchorEncode(args.titleclasstitle))
:cssaddClass('font-size', '114%'args.titleclass)
:wikitextcss(addNewline(args.title)'font-size', '114%')
:wikitext(addNewline(args.title))
end
 
Line 360 ⟶ 361:
local res = mw.html.create()
if border == 'none' then
local nav = res:nodetag(tbl'div')
:attr('role', 'navigation')
:node(tbl)
if args.title then
nav:attr('aria-labelledby', mw.uri.anchorEncode(args.title))
else
nav:attr('aria-label', 'Navbox')
end
elseif border == 'subgroup' or border == 'child' then
-- We assume that this navbox is being rendered in a list cell of a parent navbox, and is
Line 370 ⟶ 378:
:wikitext('<div>') -- XXX: hack due to lack of unclosed support in mw.html.
else
local nav = res:tag('div')
:tagattr('tablerole', 'navigation')
:addClass('navbox')
:csscssText('border-spacing', 0args.bodystyle)
:cssText(args.bodystylestyle)
:cssTextcss(args.style'padding', '3px')
:tagnode('tr'tbl)
if args.title :tag('td')then
nav:cssattr('paddingaria-labelledby', '2px'mw.uri.anchorEncode(args.title))
:node(tbl)else
nav:attr('aria-label', 'Navbox')
end
end
 
Line 391 ⟶ 401:
getArgs = require('Module:Arguments').getArgs
end
args = getArgs(frame, {wrappers = 'ഫലകംTemplate:Navbox'})
 
-- Read the arguments in the order they'll be output in, to make references number in the right order.
"https://ml.wikipedia.org/wiki/ഘടകം:Navbox" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്