Page MenuHomePhabricator

CX2: Support adaption of {{coord}} template
Open, MediumPublic

Description

In CX1 there were problems adapting "coord" templates. Adaption of template like,

{{coord|display=title|13.0125|80.2759}}

is mostly messed up in CX1 and gives result like,

<span id="coordinates">[[અક્ષાંશ-રેખાંશ]]: <span class="plainlinks nourlexpansion">[//tools.wmflabs.org/geohack/geohack.php?pagename=%E0%A4%AC%E0%A5%8D%E0%A4%B0%E0%A5%8B%E0%A4%95%E0%A4%A8_%E0%A4%AC%E0%A5%8D%E0%A4%B0%E0%A4%BF%E0%A4%9C%2C_%E0%A4%9A%E0%A5%87%E0%A4%A8%E0%A5%8D%E0%A4%A8%E0%A4%88&params=13.0125_N_80.2759_E_ <span class="geo-nondefault"><span class="geo-dms" title="इस जगह के लिए मानचित्र, हवाई छायाचित्र एवं अन्य आँकड़े"><span class="latitude">13°00′45″N</span> <span class="longitude">80°16′33″E</span></span></span><span class="geo-multi-punct">&#xFEFF; / &#xFEFF;</span><span class="geo-default"><span class="geo-dec" title="इस जगह के लिए मानचित्र, हवाई छायाचित्र एवं अन्य आँकड़े">13.0125°N 80.2759°E</span><span style="display:none">&#xFEFF; / <span class="geo">13.0125; 80.2759</span></span></span>]</span></span>{{coord|13.0125|80.2759|display=title}}

Example of above case:

https://gu.wikipedia.org/w/index.php?title=%E0%AA%AC%E0%AB%8D%E0%AA%B0%E0%AB%8B%E0%AA%95%E0%AA%A8_%E0%AA%AC%E0%AB%8D%E0%AA%B0%E0%AB%80%E0%AA%9C%2C_%E0%AA%9A%E0%AB%87%E0%AA%A8%E0%AB%8D%E0%AA%A8%E0%AA%88&type=revision&diff=485514&oldid=485509

We want to make sure those issues don't happen in CX2, and these templates can be adapted properly.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 20 2017, 4:50 AM
Pginer-WMF triaged this task as Medium priority.Apr 11 2018, 9:18 AM
Pginer-WMF moved this task from Template Improvements to CX2 on the ContentTranslation board.
Pginer-WMF added a subscriber: Pginer-WMF.

I'd propose to focus on checking whether coordinate templates work on CX2 (and fix them there if they don't). So I'll adjust the title of the task accordingly.

Pginer-WMF renamed this task from ContentTranslation adaption of {{coord}} template is broken to CX2: Support adaption of {{coord}} template.Apr 11 2018, 9:20 AM
Pginer-WMF updated the task description. (Show Details)

@KartikMistry, can you check if this is an issue for CX2 now that coordinate support was improved in T203243?