![]() | This module does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
Please add hCard microformat markup, like that in {{
EH listed building row}}; specifically the classes vcard
, fn org
, label
, category
, note
, uid
.
Andy Mabbett (Pigsonthewing);
Talk to Andy;
Andy's edits
13:38, 26 June 2014 (UTC)
I tried to separate the above column into two columns, one for OS grid refs, and one for Lat/Lon co-ordinates. I don't know my way around Lua scripts well enough to succeed, so I undid the edits I made here and to Template:HS_listed_building_header. There is no good reason why two distinct items of data should be in one cell. Presenting the data in this way makes it a real PITA to copy/paste the data to a spreadsheet or CSV file. I will make the effort to learn a bit more Lua and sandbox a better solution, but if anyone else can make the edit, go ahead. Thanks. AJRussell ( talk) 23:20, 5 August 2014 (UTC)
Hi, the
current revision I'm seeing calls a parser function at line 26, i.e. frame:callParserFunction('#coordinates', {args.lat, args.lon, name = delinkedName})
. Wouldn't it be safer to wrap it in a pcall
instead?
local success, result = pcall(mw.ext.ParserFunctions.coordinates, {args.lat, args.lon, name = delinkedName})
Just a comment about safety, because I was working on improvement on
Module:Roman. Before
Special:Diff/717026907/717124504, some templates could not recognize the existence of #expr
and was failing. Similarly, there have been
edit requests suggesting similar pcall
changes. I'm currently holding off on this, as I see this module's already been put in place for about 2 years already. —
Andy W. (
talk ·
contrib)
03:24, 26 April 2016 (UTC)
The result of the move request was: Moved. ( non-admin closure) Cwmhiraeth ( talk) 11:41, 26 November 2019 (UTC)
Module:HS listed building →
Module:HS listed building row – Match name with template
* Pppery *
it has begun... 21:38, 8 November 2019 (UTC) —Relisting. ~~
CAPTAIN MEDUSA
talk
13:32, 16 November 2019 (UTC)
An odd bug appears when an normal bracketed interlanguage wikilink is used at the end of the |name=
parameter. See "Former Sun Life Building" at
List of Category A listed buildings in Glasgow for an example. A stray )]
appear after the coordinates, and Linter reports problems with mismatched span tags. –
Jonesey95 (
talk)
21:17, 12 March 2024 (UTC)
![]() | This module does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
Please add hCard microformat markup, like that in {{
EH listed building row}}; specifically the classes vcard
, fn org
, label
, category
, note
, uid
.
Andy Mabbett (Pigsonthewing);
Talk to Andy;
Andy's edits
13:38, 26 June 2014 (UTC)
I tried to separate the above column into two columns, one for OS grid refs, and one for Lat/Lon co-ordinates. I don't know my way around Lua scripts well enough to succeed, so I undid the edits I made here and to Template:HS_listed_building_header. There is no good reason why two distinct items of data should be in one cell. Presenting the data in this way makes it a real PITA to copy/paste the data to a spreadsheet or CSV file. I will make the effort to learn a bit more Lua and sandbox a better solution, but if anyone else can make the edit, go ahead. Thanks. AJRussell ( talk) 23:20, 5 August 2014 (UTC)
Hi, the
current revision I'm seeing calls a parser function at line 26, i.e. frame:callParserFunction('#coordinates', {args.lat, args.lon, name = delinkedName})
. Wouldn't it be safer to wrap it in a pcall
instead?
local success, result = pcall(mw.ext.ParserFunctions.coordinates, {args.lat, args.lon, name = delinkedName})
Just a comment about safety, because I was working on improvement on
Module:Roman. Before
Special:Diff/717026907/717124504, some templates could not recognize the existence of #expr
and was failing. Similarly, there have been
edit requests suggesting similar pcall
changes. I'm currently holding off on this, as I see this module's already been put in place for about 2 years already. —
Andy W. (
talk ·
contrib)
03:24, 26 April 2016 (UTC)
The result of the move request was: Moved. ( non-admin closure) Cwmhiraeth ( talk) 11:41, 26 November 2019 (UTC)
Module:HS listed building →
Module:HS listed building row – Match name with template
* Pppery *
it has begun... 21:38, 8 November 2019 (UTC) —Relisting. ~~
CAPTAIN MEDUSA
talk
13:32, 16 November 2019 (UTC)
An odd bug appears when an normal bracketed interlanguage wikilink is used at the end of the |name=
parameter. See "Former Sun Life Building" at
List of Category A listed buildings in Glasgow for an example. A stray )]
appear after the coordinates, and Linter reports problems with mismatched span tags. –
Jonesey95 (
talk)
21:17, 12 March 2024 (UTC)