Diferencia entre revisiones de «Módulo:Ficha»

Sin resumen de edición
Sin resumen de edición
Línea 42: Línea 42:
                 .tag('th')
                 .tag('th')
                     .attr('colspan', 2)
                     .attr('colspan', 2)
                     .addClass(rowArgs.class)
                     .addClass(rowArgs.clase)
                     .css('text-align', 'center')
                     .css('text-align', 'center')
                     .cssText(args.headerstyle)
                     .cssText(args.estilotitulo)
                     .wikitext(rowArgs.header)
                     .wikitext(rowArgs.cabecera)
     elseif rowArgs.data then
     elseif rowArgs.data then
         local row = root.tag('tr')
         local row = root.tag('tr')
Línea 73: Línea 73:


local function renderTitle()
local function renderTitle()
     if not args['titulo'] then return end
     if not args.titulo then return end


     root
     root
         .tag('caption')
         .tag('caption')
             .addClass(args['clasetitulo'])
             .addClass(args.clasetitulo)
             .cssText(args['estilotitulo'])
             .cssText(args.estilotitulo)
             .wikitext(args['titulo'])
             .wikitext(args.titulo)
end
end