[openstreetmap-website] Fixed wikipedia link reference to specific sections (#712)

João G. Packer notifications at github.com
Fri Feb 28 11:25:38 UTC 2014


> @@ -114,16 +114,24 @@ def wikipedia_link(key, value)
>          lang = 'en'
>        end
>      elsif key =~ /^wikipedia:(\S+)$/
> -      # Language is in the key, so assume value is a simple title
> +      # Language is in the key, so assume value is the title

Since `value` can be the article's title and the section's title, I felt that it couldn't be considered a *simple* title.

Also, I made no mention of the section's title here because I thought this was better explained in a later block.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/712/files#r10161015
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20140228/9e68a511/attachment.html>


More information about the rails-dev mailing list