Content deleted Content added
categorise live templates Tag: Reverted |
Rvt edits that caused Wikipedia:Village pump (technical)#Template-generated redlinked categories Tags: Manual revert Reverted |
||
Line 364:
local category = mw.title.new('Category:' .. (cat_name or ''))
if category and not category.exists then
if pages_in_category>0 then
red_other_cats_in_use = true
Line 425:
if (args.PROJECT_NAME=='WikiProject '..project or not args.PROJECT_NAME) and current_page.rootPageTitle.prefixedText~='Template:WikiProject ' .. project then
add_tracking(cfg_tp.template_categories.non_standard)
end▼
else▼
end
end
Line 556 ⟶ 550:
table.insert(_table, tostring(mw.html.create(hl):wikitext(title)) .. '\n')
end
--if raw_args.importance then
-- show_param('importance', true)
-- show_param('priority', true)
local showSection = function(list, title)
if param[list] then
Line 843 ⟶ 842:
addTitle('Basic usage', 3)
table.insert(auto_doc, 'Place this on the talk page of relevant articles:'
.. '<br><code>{{' .. banner_name.text .. ' '
.. table.concat(basic)
.. '}}</code>')
addTitle('Full usage', 3)
table.insert(auto_doc, 'It is usual to remove any unused parameters from the template call.'
.. '<br><code>{{' .. banner_name.text .. ' '
.. table.concat(full)
.. '}}</code>')
addTitle('Parameters')
showSection('general')
|