5269
ediciones
m (1 revisión importada) |
Sin resumen de edición |
||
(No se muestran 10 ediciones intermedias de 4 usuarios) | |||
Línea 10: | Línea 10: | ||
local args | local args | ||
local root | local root | ||
local anchoImagen = ' | local anchoImagen = '320px' | ||
function union(t1, t2) | function union(t1, t2) | ||
-- devuelve la unión de los valores de dos tablas, como una secuencia | -- devuelve la unión de los valores de dos tablas, como una secuencia | ||
Línea 116: | Línea 116: | ||
.css('text-align', 'center') | .css('text-align', 'center') | ||
.css('background-color', args.colorfondo or args.colorfondotitulo or 'transparent') | .css('background-color', args.colorfondo or args.colorfondotitulo or 'transparent') | ||
.css('color', args.colortexto or ' | .css('color', args.colortexto or 'inherit') | ||
.cssText(args.estilotitulo) | .cssText(args.estilotitulo) | ||
.wikitext(args.titulo) | .wikitext(args.titulo) | ||
Línea 163: | Línea 163: | ||
.tag('td') | .tag('td') | ||
.attr('colspan', '3') | .attr('colspan', '3') | ||
.addClass(args.claseimageninferior) | .addClass('imagen ' .. (args.claseimageninferior or '') ) | ||
.css('text-align', 'center') | .css('text-align', 'center') | ||
.cssText(args.estiloimageninferior) | .cssText(args.estiloimageninferior) | ||
Línea 194: | Línea 194: | ||
.tag('td') | .tag('td') | ||
.attr('colspan', '3') | .attr('colspan', '3') | ||
.addClass(args.claseimagensuperior) | .addClass('imagen ' .. (args.claseimagensuperior or '') ) | ||
.css('text-align', 'center') | .css('text-align', 'center') | ||
.cssText(args.estiloimagensuperior) | .cssText(args.estiloimagensuperior) | ||
Línea 377: | Línea 377: | ||
datos = tostring(datos), | datos = tostring(datos), | ||
estilodatos = args.estiloimagen, | estilodatos = args.estiloimagen, | ||
clase = args.claseimagen, | clase = 'imagen ' .. (args.claseimagen or ''), | ||
clasefila = args['claseimagen' .. num] | clasefila = args['claseimagen' .. num] | ||
}) | }) | ||
Línea 561: | Línea 561: | ||
end | end | ||
local function hacerCategoriasSeguimiento() | local function hacerCategoriasSeguimiento() | ||
if args.decat ~= 'si' and #(getArgNums('datos')) == 0 and not args[1] and mw.title.getCurrentTitle().namespace == 0 then | if args.decat ~= 'si' and #(getArgNums('datos')) == 0 and not args[1] and mw.title.getCurrentTitle().namespace == 0 then | ||
Línea 636: | Línea 607: | ||
hacerPieDeTabla() | hacerPieDeTabla() | ||
hacerBarraDeNavegacion() | hacerBarraDeNavegacion() | ||
hacerCategoriasSeguimiento() | hacerCategoriasSeguimiento() | ||
return tostring(root) | return mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Plantilla:Ficha/imagelimit.css' } } .. tostring(root) | ||
end | end | ||
local function touchParameters(prefixTable, origArgs, step) | local function touchParameters(prefixTable, origArgs, step) |