Module:Infobox mapframe: Difference between revisions

Content deleted Content added
New auto and autocaption functions to make this easier to use in infoboxes
fix picking up unprefixed args
Line 118:
if fixedName then
fixedArgs[fixedName] = val
-- allow coord, coordinates, idetc to be unprefixed
elseif name == "coordinates" or name == "coord" or name == "idcoordinate" and not fixedArgs.coord then
fixedArgs[name].coord = val
-- allow id, qid to be unprefixed, map to id (if not already present)
elseif name == "id" or name == "qid" and not fixedArgs.id then
fixedArgs.id = val
end