Module documentation
This module implements Template:HS listed building row. Instructions for its use can be found on the template page.
require('Module:No globals')local genBuffer = require('Module:OutputBuffer')local getArgs = require('Module:Arguments').getArgslocal delink = require('Module:Delink')._delinklocal coord -- lazily loadedlocal p = {}function p.row(frame)local getBuffer, print, printf = genBuffer()local args = getArgs(frame, {wrappers = 'Template:HS listed building row'})local delinkedName = delink{args.name}printf('|- class="vcard %s;text-align:center"\n', args.image and 'with_image' or 'without_image')printf('| class="fn org" | %s\n', args.name or '')printf('| class="label" | %s\n', args.location or '')printf('| %s\n', args.date_listed or '')printf('| %s\n',args.grid_ref and frame:expandTemplate{title = 'Template:Gbmappingsmall', args = {args.grid_ref}} or '')local coordFrame, coordTextif args.lat thenif not coord thencoord = require('Module:Coordinates/sandbox').coordendcoordFrame = frame:newChild{title = 'Module:Coordinates/sandbox', args = {args.lat, args.lon, format = 'dms', display = 'inline', name = delinkedName}}coordText = coord(coordFrame)elsecoordText = ''endprintf('| %s\n', coordText)printf('| class="note" | %s\n', args.notes or '')printf('| class="uid" | [http://data.historic-scotland.gov.uk/pls/htmldb/f?p=2200:15:0::::BUILDING:%s %s]\n', args.hb or '', args.hb or '')if args.image thenprintf(' |[[File:%s|150x150px|%s]]<p class="plainlinks" style="margin: 0 auto;"><small>[//commons.wikimedia.org/w/index.php?title=Special:UploadWizard&campaign=wlm-gb-sct&id=%s&descriptionlang=en&description=%s&lat=%s&lon=%s&categories=%s Upload another image]</small><br><small>%s</small></p>\n',args.image or '',args.name or '',mw.uri.encode(args.hb or ''),mw.uri.encode(delinkedName),args.lat or '',args.lon or '',mw.uri.encode(args.commonscat or ''),args.commonscat and ('[[:commons:Category:' .. args.commonscat .. '|See more images]]') or '')elseprintf('| style="vertical-align:middle;text-align:center" | %s\n',frame:expandTemplate{title = 'Template:UploadCampaignLink', args = {campaign = 'wlm-gb-sct', id = args.hb, description = delinkedName, lat = args.lat, lon = args.lon}})endreturn getBuffer()endreturn p
🔥 Top keywords: Main PageSpecial:SearchPage 3Wikipedia:Featured picturesHouse of the DragonUEFA Euro 2024Bryson DeChambeauJuneteenthInside Out 2Eid al-AdhaCleopatraDeaths in 2024Merrily We Roll Along (musical)Jonathan GroffJude Bellingham.xxx77th Tony AwardsBridgertonGary PlauchéKylian MbappéDaniel RadcliffeUEFA European Championship2024 ICC Men's T20 World CupUnit 731The Boys (TV series)Rory McIlroyN'Golo KantéUEFA Euro 2020YouTubeRomelu LukakuOpinion polling for the 2024 United Kingdom general electionThe Boys season 4Romania national football teamNicola CoughlanStereophonic (play)Gene WilderErin DarkeAntoine GriezmannProject 2025