Cambios

Saltar a: navegación, buscar

Módulo:Sprite

142 bytes añadidos, 10:34 8 jul 2014
sin resumen de edición
local styles = {}
if args.stylesheet or default.stylesheet then
class = ( className or mw.ustring.lower( name :gsub( ' ', '-' ) ) .. '-sprite ' ) .. class
else
table.insert( styles, 'background-image:{{FileUrl|' .. ( args.image or default.image or name .. 'Sprite.png' ) .. '}}' )
else
-- Internal link
local linkPrefix = args.linkprefix or default.linkprefix or '' return '[[' .. linkPrefix .. link .. '|' .. sprite .. text .. ']]'
end
else
local id = mw.text.trim( args[1] or '' )
local pos = ids[id] or ids[mw.ustring.lower( id ):gsub( '[%s%+]', '-' )]
if not pos and not mw.title.getCurrentTitle().isSubpage then
category = '[[Category:Pages with missing sprites]]'
end
2712
ediciones

Menú de navegación