Редактирование: Модуль:Navbar

Перейти к навигации Перейти к поиску

Примечание. Ваши правки будут показаны в статье только после их проверки участником с соответствующими правами.

Правка может быть отменена. Проверьте сравнение версий ниже и нажмите «Записать страницу».
Если отменяемые вами изменения не вандализм, пожалуйста, допишите причину в описании правки.

Текущая версия Ваш текст
Строка 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; white-space:nowrap;'
end
if args[titleArg] == 'off' then
return
end
end


Строка 25: Строка 29:


local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or '';
local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or '';
 
local div = mw.html.create():tag('div')
if args.nodiv then
tag = 'span'
else
tag = 'div'
end
local div = mw.html.create():tag(tag)
div
div
:addClass('plainlinks')
:addClass('plainlinks')
:addClass('hlist')
:addClass('noprint')
:addClass('navbar')
:addClass('navbar')
:cssText(args.style)
:cssText(args.style or 'text-align:left; white-space:nowrap;')


if args.mini then div:addClass('mini') end
if args.mini then div:addClass('mini') end
Строка 40: Строка 50:
: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
Строка 49: Строка 59:
:css('margin-right', '-0.125em')
:css('margin-right', '-0.125em')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext('[ ')
:wikitext('[')
--:newline();
end
end


local ul = div:tag('ul');
local ul = div:tag('span');


ul
ul
:tag('li')
:tag('span')
:addClass('nv-view')
:addClass('nv-view')
:wikitext('[[' .. title.fullText .. '|')
:wikitext('[[' .. title.fullText .. '|')
Строка 65: Строка 76:
:wikitext(']]')
:wikitext(']]')
:done()
:done()
:tag('li')
:tag('span')
:addClass('nv-talk')
:addClass('nv-talk')
:wikitext(' • ')
:wikitext('[[' .. talkpage .. '|')
:wikitext('[[' .. talkpage .. '|')
:tag(args.mini and 'abbr' or 'span')
:tag(args.mini and 'abbr' or 'span')
Строка 77: Строка 90:
if not args.noedit then
if not args.noedit then
ul
ul
:tag('li')
:tag('span')
:addClass('nv-edit')
:addClass('nv-edit')
:wikitext(' • ')
:wikitext('[' .. title:fullUrl('action=edit') .. ' ')
:wikitext('[' .. title:fullUrl('action=edit') .. ' ')
:tag(args.mini and 'abbr' or 'span')
:tag(args.mini and 'abbr' or 'span')
Строка 93: Строка 108:
:css('margin-left', '-0.125em')
:css('margin-left', '-0.125em')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(' ]')
:wikitext(']')
--:newline();
end
end


Строка 99: Строка 115:
div
div
:done()
:done()
:tag('div')
:tag('span')
:css('font-size', '114%')
:css('font-size', '110%')
:css('margin', args.mini and '0 4em' or '0 7em')
:cssText(args.fontstyle)
:cssText(args.fontstyle)
:wikitext(args[1])
:wikitext(args[1])

Быстрая вставка: «» „“ | {{}} [[]] [] [[|]] {{|}} {{подст:}} <br> &nbsp; #перенаправление [[]] [[Категория:]] {{DEFAULTSORT:}} [[Участник:]] {{u|}} {{userlinks|}} {{ping|}} {{pagelinks|}} {{D-|}} [[d:|]] ~~~~

__NOTOC__ __TOC__ __FORCETOC__   [[ ()|]] [[ (фильм)|]] {{commonscat|}} [[wikt:]] [[Special:Diff/|]] [[Special:Permalink/|]] [[Special:Contributions/]]

Теги: <></>   <!-- -->   <blockquote></blockquote>   <code></code>   <code><nowiki></nowiki></code>   <nowiki></nowiki>   <includeonly></includeonly>   <noinclude></noinclude>   <onlyinclude></onlyinclude>   <poem></poem>   <pre></pre>   <s></s>   <small></small>   <syntaxhighlight lang=""></syntaxhighlight>   <sub></sub>   <sup></sup>

Теги галереи файлов: <gallery></gallery>   <gallery class="center" caption=""></gallery>   <gallery mode="packed" heights="" caption=""></gallery>

Разделы: == ==   === ===   == См. также ==   == Примечания == {{примечания}}   == Литература ==   == Ссылки ==

Шаблоны: {{tl|}}   {{cl|}}   {{clear}}   {{lang-en|}}   {{ref-en}}   {{s|}}   {{неоднозначность}}   {{колонки}}{{колонки|конец}}   {{подст:L}}   {{начало цитаты}}{{конец цитаты|источник=}}   {{hello}}~~~~  

Источники: <ref></ref>   <ref name=""></ref>   <ref name="" />   <ref group=""></ref>   {{ref+||group=""}}  

Символы: Ё ё ~ # @ § · ¡ ¿ \ ½ ¼ ¾ ± × ÷ ° ^ ¹ ² ³ £ ¥ $ ¢ © ® {{подст:ударение}}

Греческий алфавит: Α α Β β Γ γ Δ δ Ε ε Ζ ζ Η η Θ θ Ι Ϊ ι ϊ Κ κ Λ λ Μ μ Ν ν Ξ ξ Ο ο Π π Ρ ρ Σ σ ς Τ τ Υ Ϋ υ ϋ Φ φ Χ χ Ψ ψ Ω ω