Last modified: 2014-06-09 18:03:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26742, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24742 - Use lang, hreflang and rel="alternate" attributes in variant links
Use lang, hreflang and rel="alternate" attributes in variant links
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Language converter (Other open bugs)
1.17.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-10 15:35 UTC by Liangent
Modified: 2014-06-09 18:03 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
lang and hreflang (1.34 KB, patch)
2011-02-12 15:15 UTC, Derk-Jan Hartman
Details

Description Liangent 2010-08-10 15:35:38 UTC
Variant links are currently:

<a href="/zh-tw/Wikipedia:%E4%BA%92%E5%8A%A9%E5%AE%A2%E6%A0%88/%E6%B6%88%E6%81%AF" >台灣正體</a>

Changing them to the following style may be better (eg. better Google results):

<a href="/zh-tw/A" lang="zh-tw" hreflang="zh-tw" rel="alternate">台灣正體</a>

See also bug 24741.
Comment 1 Andy Mabbett 2011-02-12 13:42:28 UTC
I have raised Bug 27362 which is similar, but proposes <link rel="alternate"> elements in the document's <head> section.
Comment 2 Derk-Jan Hartman 2011-02-12 15:15:04 UTC
Created attachment 8133 [details]
lang and hreflang

It would be relatively easy to do this for Vector, patch attached.

And this once again shows, why we need to cleanup the skin system i guess. having to hardcode this into every skin seems terribly inefficient.
Comment 3 Bugmeister Bot 2011-08-19 19:12:14 UTC
Unassigning default assignments. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 4 Derk-Jan Hartman 2012-02-26 16:58:57 UTC
Added lang and hreflang to the variant links in the variant menu with r112442. Did not add alternate for now, since I wans't sure about possible clashes with the alternate in Bug 27363.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links