50 909
редагувань
м (оформлення) Мітка: Скасовано |
(оформлення) Мітка: Скасовано |
||
or a table of strings and/or tables containing parts. (See below)
]]
local attention, catTag, catKey = Buffer'Шаблони повідомлень про заготовки, що потребують уваги', '[[Категорія:Незавершені статті %s]]', '%s|%s%s'
local function category(cat)
for _, v in ipairs((tostring(cat) == cat or cat.t) and {cat} or cat) do
--Check category existance only if on the template page (i.e. stub documentation)
if page then
if not mw.title.new('Категорія:
code = code or mw.html.create'code':wikitext'|category'
table.insert(stubCats.missing, tostring(mw.clone(code):wikitext(v)))
]]
if page.namespace == 0 then -- Main namespace
catStub()
elseif p.demo then
:tag'small':wikitext(
'Demo categories: ',
(category{done = true}:gsub('(%[%[)(Категорія:
):done()
:wikitext(p.demo == 'doc' and p.demodoc or nil)
|