Modul:Navbar: Perbedaan antara revisi

Loncat ke navigasi Loncat ke pencarian
178 bita ditambahkan ,  1 tahun yang lalu
add templatestyles for hlist
dw>Hidayatsrf
(sejarah > riwayat)
 
dw>Izno
(add templatestyles for hlist)
Baris 63: Baris 63:
-- link_descriptions should be easier...
-- link_descriptions should be easier...
local link_descriptions = {
local link_descriptions = {
{ ['mini'] = 'l', ['full'] = 'lihat', ['html_title'] = 'Lihat templat ini',
{ ['mini'] = 'v', ['full'] = 'view', ['html_title'] = 'View this template',
['link'] = title.fullText, ['url'] = false },
['link'] = title.fullText, ['url'] = false },
{ ['mini'] = 'b', ['full'] = 'bicara', ['html_title'] = 'Diskusikan templat ini',
{ ['mini'] = 't', ['full'] = 'talk', ['html_title'] = 'Discuss this template',
['link'] = talkpage, ['url'] = false },
['link'] = talkpage, ['url'] = false },
{ ['mini'] = 's', ['full'] = 'sunting', ['html_title'] = 'Sunting templat ini',
{ ['mini'] = 'e', ['full'] = 'edit', ['html_title'] = 'Edit this template',
['link'] = title:fullUrl('action=edit'), ['url'] = true },
['link'] = title:fullUrl('action=edit'), ['url'] = true },
{ ['mini'] = 'r', ['full'] = 'riwayat', ['html_title'] = 'Riwayat templat ini',
{ ['mini'] = 'h', ['full'] = 'hist', ['html_title'] = 'History of this template',
['link'] = title:fullUrl('action=history'), ['url'] = true },
['link'] = title:fullUrl('action=history'), ['url'] = true },
{ ['mini'] = 'm', ['full'] = 'pindah', ['html_title'] = 'Pindahkan templat ini',
{ ['mini'] = 'm', ['full'] = 'move', ['html_title'] = 'Move this template',
['link'] = mw.title.new('Special:Movepage'):fullUrl('target='..title.fullText), ['url'] = true },
['link'] = mw.title.new('Special:Movepage'):fullUrl('target='..title.fullText), ['url'] = true },
{ ['mini'] = 'w', ['full'] = 'pantau', ['html_title'] = 'Pantau templat ini',  
{ ['mini'] = 'w', ['full'] = 'watch', ['html_title'] = 'Watch this template',  
['link'] = title:fullUrl('action=watch'), ['url'] = true }
['link'] = title:fullUrl('action=watch'), ['url'] = true }
}
}
Baris 151: Baris 151:
end
end
return mw.getCurrentFrame():extensionTag{
local frame = mw.getCurrentFrame()
-- hlist -> navbar is best-effort to preserve old Common.css ordering.
return frame:extensionTag{
name = 'templatestyles', args = { src = cfg.hlist_templatestyles }
} .. frame:extensionTag{
name = 'templatestyles', args = { src = cfg.templatestyles }
name = 'templatestyles', args = { src = cfg.templatestyles }
} .. tostring(div:done())
} .. tostring(div:done())
Pengguna anonim

Menu navigasi