יחידה:Navbar: הבדלים בין גרסאות בדף

יצירת דף עם התוכן "local p = {} local getArgs function p._navbar(args) local titleArg = 1 if args.collapsible then titleArg = 2 if not args.plain then args.mini = 1 e..."
מ 2 גרסאות של הדף wikipedia:he:יחידה:Navbar יובאו
 
(13 גרסאות ביניים של 7 משתמשים אינן מוצגות)
שורה 60: שורה 60:
:wikitext('[[' .. title.fullText .. '|')
:wikitext('[[' .. title.fullText .. '|')
:tag(args.mini and 'abbr' or 'span')
:tag(args.mini and 'abbr' or 'span')
:attr('title', 'View this template')
:attr('title', 'צפייה בתבנית זו')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(args.mini and 'v' or 'view')
:wikitext(args.mini and 'צ' or 'צפייה')
:done()
:done()
:wikitext(']]')
:wikitext(']]')
שורה 70: שורה 70:
:wikitext('[[' .. talkpage .. '|')
:wikitext('[[' .. talkpage .. '|')
:tag(args.mini and 'abbr' or 'span')
:tag(args.mini and 'abbr' or 'span')
:attr('title', 'Discuss this template')
:attr('title', 'שיחה על תבנית זו')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(args.mini and 't' or 'talk')
:wikitext(args.mini and 'ש' or 'שיחה')
:done()
:done()
:wikitext(']]');
:wikitext(']]');
שורה 82: שורה 82:
:wikitext('[' .. title:fullUrl('action=edit') .. ' ')
:wikitext('[' .. title:fullUrl('action=edit') .. ' ')
:tag(args.mini and 'abbr' or 'span')
:tag(args.mini and 'abbr' or 'span')
:attr('title', 'Edit this template')
:attr('title', 'עריכת תבנית זו')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(args.mini and 'e' or 'edit')
:wikitext(args.mini and 'ע' or 'עריכה')
:done()
:done()
:wikitext(']');
:wikitext(']');
שורה 106: שורה 106:
:wikitext(args[1])
:wikitext(args[1])
end
end
 
local templateStyle = mw.getCurrentFrame():extensionTag( 'templatestyles', '', { src = 'יחידה:Navbar/styles.css' } );
return tostring(div:done())
return tostring(div:done()) .. templateStyle
end
end