Module:Mapframe: Difference between revisions

Undo revision 129278 by WikiDwarf (talk)
No edit summary
(Undo revision 129278 by WikiDwarf (talk))
Tag: Undo
Line 694: Line 694:
end
end


data.properties = {
if util.getParameterValue(contentArgs, 'id') then
data.ids = util.getParameterValue(contentArgs, 'id')
else
data.title = util.getParameterValue(contentArgs, 'from')
end
 
data.properties = {
stroke = util.getParameterValue(contentArgs, 'strokeColor') or L10n.defaults.strokeColor,
stroke = util.getParameterValue(contentArgs, 'strokeColor') or L10n.defaults.strokeColor,
["stroke-width"] = tonumber(util.getParameterValue(contentArgs, 'strokeWidth')) or L10n.defaults.strokeWidth
["stroke-width"] = tonumber(util.getParameterValue(contentArgs, 'strokeWidth')) or L10n.defaults.strokeWidth