[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pragma supplementation-page



On Mon Sep 8, 2025 at 4:39 PM BST, Andrew Sayers wrote:
That's a good point, but relative links in <<Include>>d blocks are interpreted relative to the original page - for example, the discussion link on it/Aptitude points to Aptitude/Discussion, but the same link on es/Aptitude points to es/Aptitude/Discussion, because the former uses an <<Include>> while the latter copy/pastes.

Of the two behaviours, I think language-namespaced discussion is probably preferable, e.g., es/Aptitude/Discussion. So that's a drawback of including a Discussion link in the english-pages translation header and transcluding it. The pragma results in a language-namespaced discussion link.

The current translation header (in DefaultTemplate) doesn't have the link at all, because I removed it and added the pragma (outside of the translation header bit) Yesterday.

If we're editing the translation header in a translated page to address a discussion link, we should probably update the translation header to the current version from DefaultTemplate, i.e., replace it with just

	<<Include(BASEPAGE, ,from="^##TAG:TRANSLATION-HEADER-START",to="^##TAG:TRANSLATION-HEADER-END")>>

(substituting BASEPAGE); and probably add the pragma as well.

Short answer - the first is more pragmatic, but will need a different approach.

OK.

WRT bulk and machine-assisted edits. I recall a long time ago a Perl module for interacting with Mediawiki like a VCS¹. It was very useful for these kind of operations.

Has anyone surveyed for something similar for MoinMoin? If not I will take a look. There's at least moin-cli² which I haven't tried, it depends on XML-RPC being enabled, which it isn't, but perhaps we can get it turned on (possibly locked down in some way if necessary)

[1] https://metacpan.org/dist/WWW-Mediawiki-Client
[2] https://github.com/toracle/moin-cli


--

Jonathan Dowland
jmtd@debian.org
https://jmtd.net


Reply to: