Project

General

Profile

Bug #202

[wiki] i18n template shouldn't be displayed with action=render (plain text wikipages)

alfplayer - over 11 years ago - . Updated almost 11 years ago.

Status:
open
Priority:
bug
Assignee:
% Done:

0%


Description

ArchISO (iso builder) uses this URL to get the Installation Guide, but the URL doesn't work as it does in ArchWiki or Wikipedia because action=render doesn't work as it should.

https://wiki.parabolagnulinux.org/Installation_Guide?action=render

This URL works:

https://wiki.parabolagnulinux.org/index.php?title=Installation_Guide&action=render

The issue with this URL is that the MediaWiki template https://wiki.parabolagnulinux.org/Template:I18n appears at the top (it shouldn't).

The template does not appear using action=render on ArchWiki, which uses "interlanguage links" (https://wiki.archlinux.org/index.php/Help:I18n#Interlanguage_links) and not the template (thanks ovruni for pointing this out).

Can action=render be fixed to avoid displaying the template, as in ArchWiki?

History

#2

Updated by ovruni over 11 years ago

I've tried the extension TranslatedPages (created by me) and shown in the same way that Arch wiki, also synchronizes language translations. See [[https://www.mediawiki.org/wiki/Extension:TranslatedPages]] :D

#3

Updated by alfplayer over 11 years ago

Thanks. Can this be installed on our wiki to solve the bug?

Correction about the title: action=render does not output plain text (it's HTML), but is used by ArchISO (lynx -dump -nolist) to create /root/install.txt in the ISOs.

#5

Updated by alfplayer over 11 years ago

Using sed '1,9d' on ArchISO I now remove the garbage block of i18n text left out by lynx. It's an ugly hack because it's necessary to manually check that install.txt is created properly, as text block may take a different number of lines in the future, e.g. by adding or removing languages on the wikipage. So now this is not urgent for me because I can build Parabola official ISOs.

#6

Updated by alfplayer almost 11 years ago

Now that MediaWiki is updated, it may be possible to install interlanguage links like Arch or use ovruni's extension, to stop using the ugly i18n template.

Also available in: Atom PDF