localp={}-- List of default title texts.localdefaultTitleTextlist={["TBA"]="To be announced",["TBD"]="To be determined",["N/A"]="Not available"}-- Local function which is used to retrieve the title text.localfunctiongetTitleText(args,altText)localtitleText=args[2]orargs["title_text"]-- If the title text was manually added, return it.if(titleText)thenreturntitleTextend-- The title text was not set, get the correct default text which corresponds to the alt text.fork,vinpairs(defaultTitleTextlist)doif(altText==k)thenreturnvendendend-- Local function which is used to retrieve the alt text.localfunctiongetAltText(args)localaltText=args[1]orargs["alt_text"]if(altText==nil)thenaltText="TBA"endreturnaltTextend-- Local function which does the actual main process.functionp._main(args)localaltText=getAltText(args)localtitleText=getTitleText(args,altText)return"<small style=\"color: #2C2C2C\" title=\""..titleText.."\">"..altText.."</small>"end--[[Public function which is used to create information for an empty text cell.Parameters: -- |1= or |alt_text= — optional; The text which will be written in the cell. -- |2= or |title_text= — optional; The text which will be shown when hovering over the cell.--]]functionp.main(frame)localgetArgs=require('Module:Arguments').getArgs;localargs=getArgs(frame);returnp._main(args)endreturnp