Module:WikiProject banner/sandbox: Difference between revisions

Content deleted Content added
fix
tidy up taskforce text
Line 406:
end
if args[tf_prefix .. 'TEXT']~='none' then
textlocal portal = args[tf_prefix..'PORTAL'] and frame:expandTemplate{title='Portal', args={args[tf_prefix .. 'PORTAL'], height='15', margin='0'}} or ''
local text = ''
if args[tf_prefix..'PORTAL'] then
text = frame:expandTemplate{title='Portal', args={args[tf_prefix .. 'PORTAL'], height='15', margin='0'}}
end
if args[tf_prefix..'TEXT'] then
text = textportal .. parse_text(args[tf_prefix..'TEXT'])
else
iflocal tf_importance_text = tf_importance and tf_importance~='NA' and tf_importance~='Unknown' thenand string.format(
text = text .. 'This ' .. pagetype .. ' is supported by <b>' .. wikilink(args[tf_prefix .. 'LINK'],args[tf_prefix .. 'NAME']) .. '</b>'
cfg.task_force.importance,
if tf_importance and tf_importance~='NA' and tf_importance~='Unknown' then
text = text .. ' (marked as ' .. wikilink(':Category:' .. tf_importance .. '-' .. importance_name .. ' ' .. tf_assessment_cat, tf_importance .. '-' .. importance_name)
) ..or ')'
text = text portal .. 'string.'format(
end
cfg.task_force.text,
text = text .. '.'
pagetype,
text = text .. 'This ' .. pagetype .. ' is supported by <b>' .. wikilink(args[tf_prefix .. 'LINK'], args[tf_prefix .. 'NAME']) .. '</b>',
tf_importance_text
end)
end
local tf_size = args[tf_prefix..'SIZE'] or tf_default_size