Re: Info request on new Wiki translations - any automatic handling of translation headers and translated pages?
On Sat, Aug 09, 2025 at 11:14:41AM +0800, Maytham Alsudany wrote:
> On Fri, 2025-08-08 at 17:15 +0100, Andrew Sayers wrote:
[...]
> > I haven't tried that extension before, but from the documentation I don't see a
> > way to e.g. create a "translations" header automatically. Here's a potential
> > solution - [0] and [1] show translated versions of a page,
> > [2] will automatically gain a header if someone creates [3].
> [...]
>
> It's not immediately obvious from the documentation, but it does support
> adding translation headers with the <languages /> tag.
> https://www.mediawiki.org/wiki/Help:Extension:Translate#:~:text=In%20addition%20you%20can%20easily%20add%20a%20language%20bar%20with%20the%20%E2%80%8E%3Clanguages%20/%3E%20tag
> You'll see on the source of MediaWiki wiki pages that they have this tag
> at the top.
Ah yes, silly me. I would still recommend wrapping <languages /> in a
{{PageHeader}} template though, in case we add more boilerplate,
or switch to some other solution with a different tag in future.
And whether it's <languages /> or {{PageHeader}}, it will need to be added
to every page. That's another argument in favour of an editor bot.
[...]
> The name that MW use is "ll" (for "localized link"). Result:
> {{ll|MyPage}} or {{ll|MyPage|anchor text}}.
> See also: https://www.mediawiki.org/wiki/Template:Localized_link
> ("ll" can be used because Template:Ll redirects to this.)
I've moved Template:Lang to Template:Ll, but left it and the other templates
on the wiki for now.
Aside: my working assumption is that the DB will need to be reset
when the content is imported, so I'm keeping track of pages I edit,
and expect to manually import anything that's still worthwhile.
I've updated the WikiRevamp page[0] based on this and other recent discussions.
[0] https://wiki.debian.org/DebianWiki/WikiRevamp
Reply to: