MediaWiki talk:Gadget-ReferenceTooltips.js: Difference between revisions

Content deleted Content added
Add support for directionality of ref tags: enwiki's is different i think
Line 169:
== Add support for directionality of ref tags ==
 
{{editprotected|answered=yes}}
[https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Cite/+/7738/ Since May 2018] we have the ability to use the <code>dir</code> attribute in the <code>&lt;ref&gt;</code> tags to specify the directionality of ref tags as right-to-left (RTL) or left-to-right (LTR). This is widely used in pages that cite both RTL and LTR sources, for example on Persian Wikipedia (fawiki, see [[:fa:مقام (موسیقی)|example]]). Since the ReferenceTooltips code is used on many wikis, it is ideal to add support for directionality in its enwiki version so that all others who copy it would also benefit from it.
 
Line 181:
::{{ping|Yair rand}} correct; I updated the diff link above [[User:Huji|huji]]—[[User_talk:Huji|<small>TALK</small>]] 16:46, 1 July 2019 (UTC)
:The structure of the surrounding code context appears to be substantially different in enwiki's version of this script; I'm not sure it would be a straightforward cut-and-paste. [[User:Writ Keeper|Writ&nbsp;Keeper]]&nbsp;[[User Talk: Writ Keeper|&#9863;]][[Special:Contributions/Writ_Keeper|&#9812;]] 14:54, 2 July 2019 (UTC)
::{{not done}} this would need to be thoroughly tested here first, feel free to mock it up as a user script here on wiki and gain some testers. — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 19:50, 15 July 2019 (UTC)