50 756
редагувань
м (оформлення) Мітка: Скасовано |
м (оформлення) Мітка: Скасовано |
||
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('Категорія:Незавершені статті ' .. cat).exists then
code = code or mw.html.create'code':wikitext'|category'
table.insert(stubCats.missing, tostring(mw.clone(code):wikitext(v)))
--Shows population of categories found by catStub(). Outputs demo values if none
local function population()
local wikitext, base = {}, '* [[:Категорія:Незавершені статті %s]] (вміст: %s)\n'
if not args.category and stubCats[1] ~= false then
table.insert(stubCats, 1, false)
Otherwise, any non-nil p.demo will emulate article space categories (plus any error cats unless set to 'art')
]]
if page.namespace ==
catStub()
elseif p.demo then
|