יחידה:Navbar: הבדלים בין גרסאות בדף
update from sandbox per Special:Diff/771417737 |
מ 2 גרסאות של הדף wikipedia:he:יחידה:Navbar יובאו |
||
| (9 גרסאות ביניים של 6 משתמשים אינן מוצגות) | |||
| שורה 14: | שורה 14: | ||
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; width:6em;' | ||
end | end | ||
| שורה 49: | שורה 49: | ||
:css('margin-right', '-0.125em') | :css('margin-right', '-0.125em') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
:wikitext('[ ') | :wikitext('[') | ||
:newline(); | |||
end | end | ||
| שורה 59: | שורה 60: | ||
:wikitext('[[' .. title.fullText .. '|') | :wikitext('[[' .. title.fullText .. '|') | ||
:tag(args.mini and 'abbr' or 'span') | :tag(args.mini and 'abbr' or 'span') | ||
:attr('title', ' | :attr('title', 'צפייה בתבנית זו') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
:wikitext(args.mini and ' | :wikitext(args.mini and 'צ' or 'צפייה') | ||
:done() | :done() | ||
:wikitext(']]') | :wikitext(']]') | ||
| שורה 69: | שורה 70: | ||
:wikitext('[[' .. talkpage .. '|') | :wikitext('[[' .. talkpage .. '|') | ||
:tag(args.mini and 'abbr' or 'span') | :tag(args.mini and 'abbr' or 'span') | ||
:attr('title', ' | :attr('title', 'שיחה על תבנית זו') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
:wikitext(args.mini and ' | :wikitext(args.mini and 'ש' or 'שיחה') | ||
:done() | :done() | ||
:wikitext(']]'); | :wikitext(']]'); | ||
| שורה 81: | שורה 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', ' | :attr('title', 'עריכת תבנית זו') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
:wikitext(args.mini and ' | :wikitext(args.mini and 'ע' or 'עריכה') | ||
:done() | :done() | ||
:wikitext(']'); | :wikitext(']'); | ||
| שורה 93: | שורה 94: | ||
:css('margin-left', '-0.125em') | :css('margin-left', '-0.125em') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
:wikitext(' ]') | :wikitext(']') | ||
:newline(); | |||
end | end | ||
| שורה 99: | שורה 101: | ||
div | div | ||
:done() | :done() | ||
:tag(' | :tag('span') | ||
:css('font-size', ' | :css('font-size', '110%') | ||
:cssText(args.fontstyle) | :cssText(args.fontstyle) | ||
: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 | ||