Hi,
I'm trying to get the same output for the references, from the Parsoid
as with the PHP Parser. I use to make tests with the first reference of
the following article:
https://en.wikipedia.org/wiki/Kiwix
== Call ==
* PHP: 100+ languages<sup id="cite_ref-sourceforge_1-0"
class="reference"><a
href="#cite_note-sourceforge-1"><span>[</span>1<span>]</span></sup>
* Parsoid (simplified): 100+ languages<span class="reference"
id="cite_ref-sourceforge-1-0"><a href="#cite_note-sourceforge-1">[1]</a>
Parsoid uses a <span> tag instead a <sup> tag, I guess this is normal,
but I'm not sure...
== References (multiple calls in this example) ==
* PHP: ^ <a
href="#cite_ref-sourceforge_1-0"><sup><i><b>a</b></i></sup></a> <a
href="#cite_ref-sourceforge_1-1"><sup><i><b>b</b></i></sup></a></span>
<span class="reference-text"><span class="citation web"><a
rel="nofollow" class="external text"
href="http://sourceforge.net/projects/kiwix/">"Kiwix"</a>
* Parsoid (simplified): ↑ <a href="#cite_ref-sourceforge-1-0">1.0</a> <a
href="#cite_ref-sourceforge-1-1">1.1</a></span><span><span
class="citation web"><a href="http://sourceforge.net/projects/kiwix/"
class="external">"Kiwix"</a>
The differences:
* "↑", "^", seems to me strange... Why?
* Each reference content is a number instead of a letter, for example
"1.0" instead of "a". In Arabic this is not "a". BTW, in the arabic
language the letter shouldn't be "a", but the first letter of the arabic
alphabet. Here again I don't know if this is normal...
* No styling for the references, for example "1.0" instead of
<sup><i><b>a</b></i></sup>. Normal?
* It seems to me the parsoid forgets to put a space just behind de "1.1"
reference, so the text of reference is "stick/concatenated" visually.
Seems to me to be a small bug.
Could you please tell me which of these things are features, and which
one are bugs, so I can know what I should fix on my side?
Kind regards
Emmanuel
--
Kiwix - Wikipedia Offline & more
* Web: http://www.kiwix.org
* Twitter: https://twitter.com/KiwixOffline
* more: http://www.kiwix.org/wiki/Communication
Hi,
Try the following code at:
http://parsoid.wmflabs.org/_rtform/
=====================
{{Geobox|River
| country = Kyrgyzstan
| mouth_lat_d = 46| mouth_lat_m = 09| mouth_lat_s = 15| mouth_lat_NS =N
| mouth_long_d =60 | mouth_long_m =52 | mouth_long_s =25 | mouth_long_EW =E
| discharge = 1180
| discharge_note = foobar1<ref>http://myref.url</ref>
}}
foobar2<ref>http://myref.url</ref>
== References ==
<references/>
=====================
As a result, I get a click-able link only for the second reference, not
for first, although both are absolutely identical: "http://myref.url.
Looks like a small bug to me.
Emmanuel
--
Kiwix - Wikipedia Offline & more
* Web: http://www.kiwix.org
* Twitter: https://twitter.com/KiwixOffline
* more: http://www.kiwix.org/wiki/Communication