Module:Ordnance Survey coordinates: Difference between revisions

wiki>Hike395
make link always wrapped in span with nowrap and nourlexpansion class. When geohack link, add plainlinks class
 
m 1 revision imported
 
(2 intermediate revisions by 2 users not shown)
Line 468: Line 468:
   end
   end
   if not rawurl then
   if not rawurl then
url = mw.ustring.format('<span class="%snourlexpansion" style="white-space: nowrap">[%s %s]</span>',
url = mw.ustring.format('<span class="nourlexpansion%s" style="white-space:nowrap">[%s %s]</span>%s',
direct and '' or 'plainlinks ',url,linktitle)
direct and '' or ' plainlinks',
url,linktitle,
namespace == 0 and '[[Category:Articles with OS grid coordinates]]' or '')
   end
   end
   return url
   return url