Module:ColorParse: Difference between revisions

172 bytes added ,  22:42, 24 May 2020
unbolding
(add template arg processing)
(unbolding)
Line 146: Line 146:
function p.shadermain(frame)
function p.shadermain(frame)
     local args = process_args.merge(true)
     local args = process_args.merge(true)
     return p.shader(args['text'], args['colors'], args['type'])
     if args['unbolded'] and args['unbolded'] == 'true' then
      return p.shader(args['text'], args['colors'], args['type'])
    else
      return '<b>' .. p.shader(args['text'], args['colors'], args['type']) or '' .. '</b>'
    end
end
end