Content deleted Content added
No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
Line 8:
end
function p.
if mw.title.new(page).exists then return (frame.args['yes'] or 'yes') end
local isleft = frame.args['left']▼
function p.lists(frame)
s = mw.ustring.gsub(s, '([\r\n])%*([^\r\n]*)', '%1<ul><li>%2</li></ul>')
s = mw.ustring.gsub(s, '([\r\n])#([^\r\n]*)', '%1<ol><li>%2</li></ol>')
s = mw.ustring.gsub(s, '</ol>%s*([\r\n]*)<ol>', '%1')
s = mw.ustring.gsub(s, '</ul>%s*([\r\n]*)<ul>', '%1')
s = mw.ustring.gsub(s, '^[\r\n](.*)[\r\n]$', '%1')
return s
▲ end
end
Line 65 ⟶ 62:
function p.hasOSM(frame)
return getBestStatement(mw.wikibase.getEntityIdForCurrentPage(), 'P402') and 'yes' or 'no'
function p.chart(frame)
local chart = require('Module:Chart')['bar-chart']
return chart(frame)
end
|