Module:Navbar: திருத்தங்களுக்கு இடையிலான வேறுபாடு
உள்ளடக்கம் நீக்கப்பட்டது உள்ளடக்கம் சேர்க்கப்பட்டது
சிNo edit summary |
inherit line height on the ul to override the 1.6 default, so that it doesn't take up 2 lines and cause off-centeredness in navboxes like Template:Grand Armee Corps |
||
வரிசை 69:
local viewLink, talkLink, editLink = 'view', 'talk', 'edit'
if args.mini then
viewLink, talkLink, editLink = '
end
வரிசை 99:
end
local ul = div.tag('ul')
.css('line-height', 'inherit'); -- otherwise, the default ul line height makes this take up 2 lines in navboxes, and makes the second line off-center
ul
வரி 106 ⟶ 107:
.wikitext('[[' .. mainpage .. '|')
.tag('span')
.attr('title', '
.cssText(args.fontstyle or '')
.wikitext(viewLink)
வரி 116 ⟶ 117:
.wikitext('[[' .. talkpage .. '|')
.tag('span')
.attr('title', '
.cssText(args.fontstyle or '')
.wikitext(talkLink)
வரி 128 ⟶ 129:
.wikitext('[' .. editurl .. ' ')
.tag('span')
.attr('title', '
.cssText(args.fontstyle or '')
.wikitext(editLink)
| |||