-- This module implements [[Template:London ward populations]].localp={}functionp._main(args,frame)ifnotargs[1]thenreturnnilelseifargs[1]=='year'thenreturn2011elseifargs[1]=='reference'thenframe=frameormw.getCurrentFrame()localcite=frame:expandTemplate{title='Cite web',args={title='2011 Census Ward Population Estimates',url='http://data.london.gov.uk/2011-census-ward-pop',publisher='Greater London Authority',author='Census Information Scheme',year=2012,accessdate='30 January 2013'}}returnframe:extensionTag{name='ref',args={name='pop_ref_london'},content=cite,}elseifnotargs[2]thenreturnnilelselocaldata=mw.loadData('Module:London ward populations/data')localboroughData=data[args[1]]ifboroughDatathenreturnboroughData[args[2]]elsereturnnilendendendfunctionp.main(frame)localargs=require('Module:Arguments').getArgs(frame,{wrappers='Template:London ward populations'})returnp._main(args,frame)endreturnp