MediaWiki talk:InterWikiTransclusion.js

From Wikisource
Jump to navigation Jump to search

From oldwikisource[edit]

Could it be added this for allowing transclusion from oldwikisource to other domains, when importing the script? (or any other better way):

if (lang=="oldwikisource") {
url = 'http://wikisource.org/w/api.php?blablabla...
}
else {
url = 'http://'+lang+'.wikisource.org/w/api.php?blablab...
}

-Aleator (talk) 00:33, 3 March 2010 (UTC)[reply]

Different behaviour in la.source[edit]

Forgive my ignorance in javascript. I'm stuck: while working in la.source I'm trying a crosswiki (la-it) proofread transcription: please have a look at s:la:Pagina:Hymnus in Romam.djvu/61 and let me understand what should I do to have

{{Iwpages|it}}

working instead of a partially failing

{{Iwpages|it|Hymnus in Romam.djvu|61|61}}

Where should I go to find the css class "Iwpages"? Thank you in advance for any kind answer. - εΔω 19:55, 10 April 2010 (UTC)

Hi, OrbilliusMagister. I think it's now fixed: template iwpage was needed instead of iwpages; see page s:la:Pagina:Hymnus in Romam.djvu/62. -Aleator (talk) 22:16, 10 April 2010 (UTC)[reply]
It worked! Thank you very much, Aleator! - εΔω 19:55, 11 April 2010 (UTC)

References[edit]

Hi. This could be a todo or a bug, or just a curiosity. It's about references tag. Two situations, both not working fine:

-Aleator (talk) 16:46, 11 April 2010 (UTC)[reply]

Another example: s:fr:Malbrough, which transcludes text with one reference from ca.source shows the parser message, whatever you type. Any ideas to bypass it? Avoiding the use of the reference tag? -Aleator (talk) 23:10, 20 May 2010 (UTC)[reply]
Vigneron has solved the problem on FR.WS. If I understand it correctly, the references tag was working twice because it was in the transcluded section and it was in the page where it was transcluded too, so Vigneron has removed the tag from the transcluded section. --Zyephyrus 22:34, 21 May 2010 (UTC)[reply]

How to have a page pointing to another subdomain[edit]

Dear friends,

I'd like to reproduce the "Its text comes from...'" line in this js as appearing there in English and French, but translated into italian ("Il testo proviene da..."), or Latin ("Hic textus visibils est in ...") - Is it possible to add these lines in the script? εΔω 20:36, 13 April 2010 (UTC)

By the way, also Spanish-es ("Su texto procede de...") and Catalan-ca ("El seu text procedeix de...")? A future "todo" could be implement it on translatewiki.net? Thanks. -Aleator (talk) 18:53, 18 April 2010 (UTC)[reply]
<some months after>Ehm... forgive me but I have another problem both in la. and it.source: the current wording of the standard message is the following:
  • Here: {{Iwpage|fr}} produces "This page does not need to be proofread" (and nothing else)
  • it.source: {{Iwpage|la}} produces "Questa pagina non richiede alcuna rilettura. iwtrans la.wikisource.org."
  • la.source: {{Iwpage|la}} produces "Haec pagina emendanda non est. iwtrans it.wikisource.org."
  • fr:source: {{iwpage|la}} produces the right message: "Cette page n'est pas destinée à être corrigée. Son texte vient de la.wikisource.org."
Where should I look to replace iwtrans with a proper text? - εΔω 18:51, 1 September 2010 (UTC)
I discovered it: I had to edit Mediawiki:common.js and add
	'iwtrans':'Its text comes from', 
	'iwtrans2':'Its text comes from other Wikisource subdomains.',
Under
self.ws_messages = {
obviously translating the English text into your language. - εΔω 19:53, 1 September 2010 (UTC)

Episode two[edit]

Unfortunately the problem seems to persist even after thomas intervention... and there seems to be another one.

I tried a partial interwiki transclusion at la:s:Pagina:Canti_(Sole).pdf/338 and Mediawiki looks for an inexistent Template:Lst without redirecting to Formula:Lst... I'm stuck. - εΔω 15:52, 9 May 2010 (UTC)

Yes, I found that problem at old.source vs es.source. I've created at it.source the {{Lst}} template, and la.source page works :) -Aleator (talk) 16:24, 9 May 2010 (UTC)[reply]
Muchas gracias, amigoMoltes gràcies, Aleator! - εΔω 21:01, 9 May 2010 (UTC)

Dosn't work at el[edit]

I created the lst template at el but the message about where the text originates still does not appear. el:Σελίδα:The New Testament in the original Greek - 1881.djvu/9 AndreasJS 22:34, 20 January 2012 (UTC)[reply]

Hi, you need to customize MediaWiki:Proofreadpage quality0 message from 0 to 4, by adding a span id="corr-info" to the message, see how it is implemented on this wiki. — Phe 00:20, 21 January 2012 (UTC)[reply]
Thanks so much, it works OK now. AndreasJS 02:29, 21 January 2012 (UTC)[reply]

Iwpage and Internet Explorer[edit]

Maybe it's an already known bug, but template:Iwpage doesn't work with Micro$oft Internet Explorer. Pages with that template appear empty and without any redirection. I temporarily devised a "mock up", but that isn't thought as a solution. - εΔω 15:51, 9 May 2010 (UTC)

So for me: IE v.8 cannot load oldsource javascripts, so its functions (e.g. interwiki transclusion) cannot be performed, so page appears empty:


Mensaje: Object doesn't support this action
Línea: 36
Carácter: 15
Código: 0
URI: http://wikisource.org/w/index.php?title=MediaWiki:InterWikiTransclusion.js&action=raw&ctype=text/javascript

A solution could be the localization of every javascript instead of importing it from oldsource.- Aleator (talk) 17:13, 9 May 2010 (UTC)[reply]

  • This is still a problem, [[1]] is blank on IE and IE indicates "done but with errors on page" (unknown runtime error at line 85 char 4) - unsure if that's the same issue. I'm also having a strange problem staying logged in on IE. Better just not to use IE.  :-).--Doug.(talk contribs) 15:08, 20 August 2011 (UTC)[reply]
  • That was from my son's laptop running IE(8 I think) on Windows Vista; I just checked and get the same error from my office computer, using IE8 on Windows Vista Enterprise.--Doug.(talk contribs) 10:33, 5 October 2011 (UTC)[reply]

Yes, I think it's a new one. I get "Unknown runtime error. Line 90, char 4" when clicking on s:it:La profezia di Giona volgarizzata in dialetto sardo cagliaritano with IE 8. -Aleator 14:23, 16 October 2011 (UTC)[reply]

I fixed it. There were 2 related errors, one here and the other on it.source, both with using "something.innerHTML = " not working in IE. Thank you all for noticing. Candalua 10:19, 17 October 2011 (UTC)[reply]

Category: Interwiki link templates[edit]

Hi. The templates from Category: Interwiki link templates have stopped working. I'm trying to guess how to fix but if anyboy knows howto, please tell. Now I cannot see the text at those three examples:

  1. {{iwpage}}: e.g. Page:Barzaz Breiz, huitième édition.djvu/13
  2. {{iwpageSection}}: e.g. Il corsale
  3. {{iwtrans}}: e.g. Lou carlamusaire de Llobregat

-Aleator (talk) 22:31, 2 September 2010 (UTC)[reply]

Mmmm... this seems a bug related to this. I'm waiting for the flag, then I will fix it. Candalua 15:52, 3 September 2010 (UTC)[reply]

Great! Thanks, now it works again. -Aleator (talk) 11:07, 4 September 2010 (UTC)[reply]

Help: it.source fix[edit]

Hello. At ca.source we're transcluding text from other domains when necessary. E.g., ca:s:Llengua i cultura a l'Alguer durant el segle XVIII: Bartomeu Simon/APÈNDIX 3 from it:s:Lettera di Bartomeu Simon a Domenico Simon (14 febbraio 1790). Now it doesn't work (whatever the "it.source page" it is), but any other page from any other Wikisource works fine. I'm lost with complex scripting but I see a "it fix" that may be related. Any help will be welcome. Thank you! -Aleator 23:52, 19 August 2011 (UTC)[reply]


Very funny, I did't even know it was possibile to transclude from ns0 to ns0. The problem is that on it.source we have an invisible "data section" enclosed between <onlyinclude>, so this section is all that it's being transcluded. Now I can't remember, but I'm sure there was a good reason for doing so! :-) A solution is to manually add onlyinclude around the text that you want to transclude (like this Candalua 10:46, 20 August 2011 (UTC)[reply]

This break because we pass to the parser text="{{:title page}}<references />" not the wikicode itself, this is why also we can't try to remove the includeonly in js, the script never see the wikicode, only the title and in the callback function only the html where it's too late to try to fixup the thing. The old way to do that was to call the parser with title="page _title" rather than text="{{:page title}}<references />" I'm unsure why we need to add a < references /> forcing us to parse a tranclusion of the page rather to parse the page itself. — Phe 12:34, 20 August 2011 (UTC)[reply]
Great! I added the onlyinclude in other 2 more pages. Thanks! -Aleator 13:40, 20 August 2011 (UTC)[reply]

Thanks Phe, after trying the js solution I came to the same conclusion :-) Candalua 16:24, 20 August 2011 (UTC)[reply]

add fa[edit]

Hi, please add

'fa':'صفحه',

to this codeReza1615 13:27, 3 October 2011 (UTC)[reply]

Done. — Phe 13:45, 3 October 2011 (UTC)[reply]
I am so sorry according to https://bugzilla.wikimedia.org/show_bug.cgi?id=31242 they changed this name,so it should be change to 'fa':'برگه', thank you for your timeReza1615 18:50, 4 October 2011 (UTC)[reply]
Done. — Phe 17:28, 5 October 2011 (UTC)[reply]

Comparison with mw:ScaryTransclusion[edit]

Can this system be exported on other wikis? Can you document it a bit? What's the difference with scary transclusion? Could you add some info about it on its page as well? Thank you, Nemo 19:39, 14 November 2011 (UTC)[reply]


I was thinking about it recently, and now I've generalized it to make it work for other projects (at least wikipedia, news, books, quote, wiktionary should work). To try it:

  • include the scripts on your user javascript:
mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:Base.js&action=raw&ctype=text/javascript');
mw.loader.load('//wikisource.org/w/index.php?title=MediaWiki:InterWikiTransclusion.js&action=raw&ctype=text/javascript');
<span class="iwtrans" title="language code|name of the page|name of the project" id="language code|name of the page|name of the project"></span>

for example:

<span class="iwtrans" title="it|Ted Nelson|wikipedia" id="it|Ted Nelson|wikipedia"></span>

and it gives this (I've put it in a box just for readability):

Candalua 20:41, 14 November 2011 (UTC)[reply]

Thank you! So, it seems pretty simple (I see that you only had to change the URL pattern, and everyone can import the script from here). But, how efficient and flexible is this solution compared to scary transclusion? Can it replace scary transclusion completely, putting all the load on the client's end? Nemo 20:57, 14 November 2011 (UTC)[reply]

Yes, well, it's still not perfect (links in the trascluded texts are wrong) but it can be fixed (I did it in 5 minutes :-). I never tried ScaryTransclusion. If it's really "scarily" inefficient as they say, InterWikiTransclusion should be better (it just calls the APIs to get a page, more or less like the "usual" way). I think it's very good for visualization; on the other side, you have to wait the ajax call to complete, and the trascluded portion is not really "inside" your page, I mean: you cannot use the other page like it was a template. Candalua 21:25, 14 November 2011 (UTC)[reply]

Hmm, interesting. As an aside (Since the question was asked above) this isn't anymore efficient than ScaryTransclusion [from the perspective of the wiki where the transcluded template is hosted on, its actually slightly less efficient, since its akin to hotlinking]. However, provided you're just transcluding stuff from Wikimedia wikis, I wouldn't worry about that. However, one thing that is concerning is that the list of projects isn't a whitelist. Someone could specify an arbitrary url, which could be controlled by an evil person. This could be exploited (XSS) to do evil things. Bawolff 15:08, 7 December 2011 (UTC)[reply]

Broken?[edit]

Something broken? en:Page:The gloria d'amor of Fra Rocabertí (1916).djvu/78 or Lou carlamusaire de Llobregat. -Aleator 01:16, 18 November 2011 (UTC)[reply]

Fixed, sorry for the inconvenient. Candalua 08:45, 18 November 2011 (UTC)[reply]
Thanks, I saw the fix. Another one now ("txt" is not defined) when clicking at en:Page:The gloria d'amor of Fra Rocabertí (1916).djvu/78. I think that the delaration "var txt = etc..." should be sufficient. -Aleator 23:11, 21 November 2011 (UTC)[reply]
Ooops! In the eagerness to make it work for all projects, I did a couple of errors. I solemnly promise not to touch it for a while! :-) Candalua 08:58, 22 November 2011 (UTC)[reply]

el.wikisource addition[edit]

I'm working on a Book written in Greek and Italian language. I notice that in InterWikiTransclusion.js there's no code for the Page word in Greek... I'd suggest to modify this script adding

        'el':'Σελίδα'

Thank you. - εΔω 21:21, 16 January 2012 (UTC)

Done. I'm not sure why it was done this way: "Page" should be a valid alias on every subdomain, so there's probably no specific reason to use the localized name. Candalua 23:06, 16 January 2012 (UTC)[reply]
Some wiki lacked the canonized name Page: for page namespace, nowadays it should safe to use it. — Phe 16:14, 2 February 2016 (UTC)[reply]

Link does not appear on some pages[edit]

Why does the link to the Greek page not appear here it:page:Manussos.djvu/222, wheres here it:page:Manussos.djvu/5 it appears OK? Is it beacuse there are some Italian pages in between? AndreasJS 16:58, 22 January 2012 (UTC)[reply]

Works OK now. AndreasJS 18:40, 22 January 2012 (UTC)[reply]

et.wikisource[edit]

This doesn't work on Estonian Wikisource, for example [2]? InterWikiTransclusion.js is included in http://et.wikisource.org/wiki/MediaWiki:Common.js --WikedKentaur (talk) 16:38, 1 December 2012 (UTC)[reply]

bn.wikisource[edit]

@Candalua, Phe:,

1) I'm working on a Book written both in Bengali and English language. I notice that in InterWikiTransclusion.js there's no code for the Page word in Bengali... I'd suggest to modify this script adding

        'bn':'পাতা'

2) And also please see bn:পাতা:Dialogues, Intended to Facilitate the Acquiring of the Bengali Language.djvu/২২, Here I have used {{iwpage|en}}, but looks like it is looking for en:Page:Dialogues, Intended to Facilitate the Acquiring of the Bengali Language.djvu/২২ instead of en:Page:Dialogues, Intended to Facilitate the Acquiring of the Bengali Language.djvu/22. FYI, ২২ is the Bengali version of 22. Can this be fixed?

Thanks. -- Bodhisattwa (talk) 09:28, 21 January 2016 (UTC)[reply]

I think this could do the job (I cannot check it properly because of interferences between similar javascrits). For (1) what about deleting page_ns_prefixes declaration, and replacing this line:
title = page_ns_prefixes[lang]+":"+m[1];
, with this other line:
title = "Page:"+m[1];
, as suggested above.
For (2), I suggest splitting the pagename and replacing Bengali numbers with latin ones. One suggestion could be, instead of this line:
title = page_ns_prefixes[lang]+":"+m[1];
, change in this way:
wpagina=m[1].split("/");
wwpagina=wpagina[1].replace(/০/g,'0');
wwpagina=wpagina[1].replace(/১/g,'1');
wwpagina=wpagina[1].replace(/২/g,'2'); //page:book.djvu/২২ becomes page:book.djvu/22
wwpagina=wpagina[1].replace(/৩/g,'3');
wwpagina=wpagina[1].replace(/৪/g,'4');
wwpagina=wpagina[1].replace(/৫/g,'5');
wwpagina=wpagina[1].replace(/৬/g,'6');
wwpagina=wpagina[1].replace(/৭/g,'7');
wwpagina=wpagina[1].replace(/৮/g,'8');
wwpagina=wpagina[1].replace(/৯/g,'9');
title = "Page:"+wpagina[0]+"/"+wwpagina;
I'm not keen on "replace" function, so it should contain replacement for all 10 Bengali numbers. Remember the declaration of new variables :) Best regards! -Aleator 03:05, 23 January 2016 (UTC) edited -Aleator 18:31, 30 January 2016 (UTC)[reply]


Thanks Aleator for the reply. Can you please do what you have told. I will test and let you know if it helps in bn.ws. Regards, Bodhisattwa (talk) 15:02, 27 January 2016 (UTC)[reply]
Hi, @Bodhisattwa: I have no rights to edit tha MediaWiki page. Also I would prefer more opinions about how to deal with this bugg (perhaps it can be hardcoded somehow in the Proofread Extension?). Regards -Aleator 18:31, 30 January 2016 (UTC)[reply]
I added the suggestion to remove page_ns_prefixes[] and to use the canonical Page: namespace instead. For the second problem, it's a bit more difficult because we need bi-directional translation, from en to bn number script and from bn to en we need the reverse translation. — Phe 16:44, 2 February 2016 (UTC)[reply]
Done, it works to transclude from fr.ws to bn.ws, it doesn't from bn.ws to en.ws but I think it's an unrelated problem, in the js console I get "ReferenceError: init_setting is not defined" when testing this script on bn:. That error come from bn:PageNumber.js, it'll need to be fixed before checking if InterWikiTransclusion.js works now on bn. — Phe 18:03, 2 February 2016 (UTC)[reply]
Thanks Phe, Can you please suggest, how I can fix the bn:PageNumber.js ? What changes should I make there? -- Bodhisattwa (talk) 07:07, 3 February 2016 (UTC)[reply]
no idea what you did exactly to PageNumber.js, you could try first to revert it to the wikisource.org version or to the en.wikisource.org version of it. — Phe 15:30, 3 February 2016 (UTC)[reply]
@Bodhisattwa: Some possible solutions suggested:
(a) updating bn:MediaWiki:PageNumbers.js with just the functions missing at bn and contained in the English MediaWiki[s] (e.g. init_setting function is present at en:MediaWiki:PageNumbers.js).
(b) at bn:MediaWiki:Common.js importing the oldwikisource version instead of the bn.version, also moving bn.translations (like self.ws_messages) to Common.js. Then delete the unnecessary bn.Pagenumbers.js.
(c) updating the whole bn.Pagenumbers.js as the en.Pagenumbers.js; or importing at Common.js the en.version instead of bn.version. Also will need to move bn.translations (like self.ws_messages) to Common.js. And finally delete bn.PageNumbers.js.
(d)others :)
Best regards! -Aleator 16:08, 3 February 2016 (UTC)[reply]
@Bodhisattwa:. I cannot see javascript errors now :) I've copied MediaWiki:InterWikiTransclusion.js in my bn.userpage.common.js and it works! I think you have to delete bn:মিডিয়াউইকি:InterWikiTransclusion.js (because the "good", fixed, one is captured from bn:মিডিয়াউইকি:Common.js) and then fill again bn:পাতা:Dialogues, Intended to Facilitate the Acquiring of the Bengali Language.djvu/২২ with {{iwpage|en}}. Hope it finally works! -Aleator 22:22, 18 March 2016 (UTC)[reply]
@Aleator, Phe:, Thanks a lot, it is fixed in bn wikisource now. The English Wikisource needs updatation also in en:MediaWiki:InterWikiTransclusion.js as per the new addition of the script here. -- Bodhisattwa (talk) 03:13, 19 March 2016 (UTC)[reply]

Same Index with different title[edit]

Hi @Aleator, Phe:, this bilingual book has a Bengali title (মঙ্গল সমাচার মাতিউ রচিত আর মঙ্গল সমাচার য়োহন রচিত) and a English title (The Gospels according to St. Matthew and St. John, in English and Bengalee). Now, we have already created the Index file in BnWS with the Bengali title. Now, is it possible to create the Index file in EnWS with the English title and use the InterWikiTransclusion.js for proofreading? -- Bodhisattwa (talk) 17:41, 12 July 2016 (UTC)[reply]

Hi, @Bodhisattwa:! I think it is not possible.
Test: I've temporarily created ca:Index:মঙ্গল সমাচার মাতিউ রচিত আর মঙ্গল সমাচার য়োহন রচিত.djvu and 2 pages. When I made a redirect of the index to ca:Index:The Gospels according to St. Matthew and St. John, in English and Bengalee, the index page broke (pages missing and one error message noticing that the file didn't exist). Then I reverted, and tried to rename one page (ca:Page:মঙ্গল সমাচার মাতিউ রচিত আর মঙ্গল সমাচার য়োহন রচিত.djvu/31 to ca:Page:Test/31); the text from ca:Page:Test/31 can be captured from bn.source with {{iwpage|ca}}, but ca:Page:Test/31 is missing navigation buttons (next page, prev. page, index) so it's also broken for me. (I'll delete those test pages at ca.source in a week or so).
Suggestion: I think there has to be no problem for creating a Bengali Index in English Wikisource. So you could proofread English pages at en.source, and transcluding English text at English Wikisource (e.g. en:The Gospels according to St. Matthew and St. John, in English and Bengalee); or the full text in whatever Wikisource you prefer.
Tip: For bilingual books with alternating pages (e.g. page 10 in Bengali, page 11 in English, page 12 in Bengali, page 13 in English, and so on) it is very useful to use "step" keyword; e.g. <pages index="মঙ্গল সমাচার মাতিউ রচিত আর মঙ্গল সমাচার য়োহন রচিত.djvu" from=10 to=20 step=2 /> will transclude pages 10, 12, 14, 16, 18 and 20.
Best regards! -Aleator 17:46, 13 July 2016 (UTC)[reply]

How to specify "onlysection"?[edit]

Hello, how can I specify "onlysection" using template:iwpages the same way I can by using the <pages/> tag? Thank you! --dapal(write me @) 21:59, 11 February 2018 (UTC)[reply]

I applied the patch you provided in https://phabricator.wikimedia.org/T188202Phe 11:56, 25 February 2018 (UTC)[reply]
@Dapal, Phe: the patch was breaking the fromsection/tosection: compare this (correct), with this (not working). Please check that onlysection still works after my edit (I don't have test cases for that scenario). Candalua (talk) 09:08, 28 February 2018 (UTC)[reply]
@Candalua: thank you, it works! I also fixed the template:iwpages both here and on it.wikisource, since the pipes inside the if parser function were messing things up. Compare this and this. --dapal(write me @) 16:06, 2 March 2018 (UTC)[reply]

Sortable tables[edit]

Added

mw.hook( 'wikipage.content' ).fire( $(item) )

in line 99 to activate sortable tables in transcluded code (thanks to Matma Rex and Saper). Ankry (talk) 18:16, 29 April 2019 (UTC)[reply]

fromsection / tosection / onlysection[edit]

@Candalua: I made fromsection / tosection parameters optional again. (Actually this hits only fromsection as empty/bogus value for tosection gives the same effect as no tosection). Requirement of a value for them had broken usage in en.ws.

BTW, maybe also an empty value of onlysection could by interpreted as no value and fromsection / tosection used in such a case (when the sixth parameter - onlysection - is present, but empty)? IMO, adopting this behaviour would simplify templates. But unsure about backward compatibility problems (if there was an intentional use of empty onlysection anywhere). @Candalua: Your opinion? Ankry (talk) 06:39, 30 April 2019 (UTC)[reply]

Transclusion of a page with footnotes from a named group[edit]

See Hüm Volapüka. Obviously, it works for <references />, but not for <references group=WS /> --Shruggy (talk) 22:27, 14 September 2019 (UTC)[reply]

Fixes[edit]

Hi all! I've tried to do some fixes (URL and HTML escaping) and here the patch available:

I'm testing it a bit together with User:Ruthven who reported the bugs and it seems to work but it would be nice to test it more. Thank you for your feedback :) --Valerio Bozzolan (talk) 13:49, 21 January 2022 (UTC)[reply]

Hi Ankry! Bringing this to your attention: we had issues with texts with special characters in the title (namely "), and Valerio found some security issues in the script. I wonder if in Polish there are no texts with problematic characters in the title that would potentially benefit from revising this script; for instance, I'm having issues in transcluding Indeks:„Jerzy” i „Fragment” which uses „ and ” Cheers Ruthven (talk) 15:07, 21 January 2022 (UTC)[reply]
@Valerio Bozzolan: Thanks for cleaning the code. I have merged your changes. Ankry (talk) 19:46, 21 January 2022 (UTC)[reply]

@Valerio Bozzolan: for your TODO: No, we can’t use the .done() method of the returned Promise, because mw.loader.load doesn’t return a Promise (it returns nothing). And even if it returned a Promise, that Promise couldn’t be fulfilled with the data due to cross-origin restrictions; this is why JSONP is used here instead of a usual JSON-based API request. —Tacsipacsi (talk) 20:56, 8 February 2022 (UTC)[reply]

Oki-doky thank you! Sadly I don't have enough privileges to add your useful inline-response to that inline-comment. --Valerio Bozzolan (talk) 00:07, 9 February 2022 (UTC)[reply]

Template:Iwpage has stopped working universally[edit]

@Ankry: Template {{Template:Iwpage}} has stopped trascluding pages from and to apparently all wikis, here are some examples: In a local page, in the english, french, greek, and italian Wikisources.
Αντιγόνη (talk) 16:04, 1 February 2022 (UTC)[reply]

Fixed. Hopefully. Thanks to @Peter Bowman. Ankry (talk) 16:35, 8 February 2022 (UTC)[reply]
Thank you so much for your fix on my regression Valerio Bozzolan (talk) 17:16, 8 February 2022 (UTC)[reply]

Not working on mobile, but en.source[edit]

Mobile views of pages that use {{iwpages}} work on en.source (e.g.). But for a reason I cannot understand, it doesn't work on other Wikisources: fr.source, it.source, es.source, la.source, pt.source, vec.source, ca.source... neither here, on mul.source.
For example, the following code {{Iwpages|fr|Revue catalane X.pdf|85|85|invadits|invadits}} works even in preview mobile on en.source (switching on the gadget that calls MediaWiki:InterWikiTransclusion.js), but not in others. Desktop views are OK. Any ideas? Aleator 18:25, 11 November 2023 (UTC)[reply]

Looking at frwikisource, I couldn’t find any gadget to turn on. The code is loaded from fr:MediaWiki:Common.js – Common.js isn’t loaded on the mobile domain. Either these wikis should also migrate InterWikiTransclusion to gadgets, or they should load it both from Common.js and Mobile.js (the latter is loaded only on the mobile domain). —Tacsipacsi (talk) 12:09, 12 November 2023 (UTC)[reply]
Yes! It works now on ca.source. Thanks! -Aleator 19:03, 13 November 2023 (UTC)[reply]