الفرق بين المراجعتين لصفحة: «وحدة:Navbar»

another local
 
لا ملخص تعديل
 
(٣ مراجعات متوسطة بواسطة مستخدمين اثنين آخرين غير معروضة)
سطر ١٥: سطر ١٥:
:wikitext(l[1] .. link .. l[2])
:wikitext(l[1] .. link .. l[2])
:tag(args.mini and 'abbr' or 'span')
:tag(args.mini and 'abbr' or 'span')
:attr('title', descrip..' this template')
:attr('title', descrip..' هذا القالب')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(args.mini and mini or full)
:wikitext(args.mini and mini or full)
سطر ٤٢: سطر ٤٢:
args.fontstyle = 'color:' .. args.fontcolor .. ';'
args.fontstyle = 'color:' .. args.fontcolor .. ';'
end
end
args.style = 'float:left; text-align:left'
--args.style = 'float:left; text-align:left'
args.style = 'float:left; text-align:left; width:6em;'
end
end
سطر ٦٢: سطر ٦٣:
error('Invalid title ' .. titleText)
error('Invalid title ' .. titleText)
end
end
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or ''
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or ''
سطر ٧٨: سطر ٨٠:
:css('word-spacing', 0)
:css('word-spacing', 0)
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(args.text or 'This box:')
:wikitext(args.text or 'هذا الصندوق:')
:wikitext(' ')
:wikitext(' ')
end
end
سطر ٨٥: سطر ٨٧:
ul = div:tag('ul')
ul = div:tag('ul')
if show[1] then p.addItem('v', 'view', title.fullText, 'View', args) end
if show[1] then p.addItem('ع', 'عرض', title.fullText, 'عرض',args) end
if show[2] then p.addItem('t', 'talk', talkpage, 'Discuss', args) end
if show[2] then p.addItem('ن', 'ناقش', talkpage, 'ناقش', args) end
if show[3] then p.addItem('e', 'edit', title:fullUrl('action=edit'), 'Edit', args, true) end
if show[3] then p.addItem('ت', 'عدل', title:fullUrl('action=edit'), 'عدل', args, true) end
if show[4] then p.addItem('h', 'hist', title:fullUrl('action=history'), 'History of', args, true) end
if show[4] then p.addItem('ت', 'تاريخ', title:fullUrl('action=history'), 'تاريخ', args, true) end
if show[5] then
if show[5] then
local move = mw.title.new ('Special:Movepage')
local move = mw.title.new ('Special:Movepage')
p.addItem('m', 'move', move:fullUrl('target='..title.fullText), 'Move', args, true) end
p.addItem('ن', 'نقل', move:fullUrl('target='..title.fullText), 'نقل', args, true) end
if show[6] then p.addItem('w', 'watch', title:fullUrl('action=watch'), 'Watch', args, true) end
if show[6] then p.addItem('ر', 'راقب', title:fullUrl('action=watch'), 'راقب', args, true) end
p.brackets('left', ' ]', args, div)
p.brackets('left', ' ]', args, div)