Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
fix
defined check already in add_category
Line 110:
local rows, collapsed, nested_ratings, task_forces, notes, categories = {}, {}, {}, {}, {}, {}
local add_category = function(category, key)
if category and category~='none' and not demo then
local cat_link = wikilink('Category:' .. category, key)
table.insert(categories, cat_link)
Line 467:
local note_default_size = args.NOTE_SIZE or args.NOTE_1_SIZE or 'x25px'
local render_note = function(note_args)--text, image_name, size, category, sort_prefix
iflocal sort = note_args.categorysort_prefix and note_args.category~='none'sort_prefix then.. current_title.text
add_category(note_args.category2category, sort)
local sort = note_args.sort_prefix and note_args.sort_prefix .. current_title.text
add_category(note_args.categorycategory2, sort)
end
if note_args.category2 and note_args.category2~='none' then
add_category(note_args.category2)
end
if note_args.text then
local note_image = note_args.image_name and image{