---------- Forwarded message ---------- From: Fredrik Josefsson fred_chessplayer@yahoo.se Date: 11-Jan-2007 05:06 Subject: [Commons-l] We'd like a better template message transclusion. To: Commons-l@wikimedia.org
Please throw your suggestions on how the current template translation could be better. Take http://commons.wikimedia.org/wiki/Template:GFDL . One click should show the GFDL message in the desired language, without bringing out a whole new page. Ideally, the template message should change to show whatever language the image in included into; {{GFDL/es}} for Spanish Wikipedia, etc. Is it possible? Or does it require complicated changes to MediaWiki?
Are there other ways to improve this template situation?
/ Fredrik
_________________________________________________________ Flyger tiden iväg? Fånga dagen med Yahoo! Mails inbyggda kalender. Dessutom 250 MB gratis, virusscanning och antispam. Få den på: http://se.mail.yahoo.com
_______________________________________________ Commons-l mailing list Commons-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/commons-l
On 10/01/07, Brianna Laugher brianna.laugher@gmail.com wrote:
Please throw your suggestions on how the current template translation could be better. Take http://commons.wikimedia.org/wiki/Template:GFDL . One click should show the GFDL message in the desired language, without bringing out a whole new page. Ideally, the template message should change to show whatever language the image in included into; {{GFDL/es}} for Spanish Wikipedia, etc. Is it possible? Or does it require complicated changes to MediaWiki?
Sounds like it might be possible in a similar form using the Multilang extension, if it's tweaked up a bit; I adapted Arnomane's work into something that behaves a little more like Cite (multiple blocks of <language code="en">Some text</language> for instance, with a <multilang /> for output) - the latter uses the language preference.
The extension works and is currently cache compatible, at least - I've checked that version into Subversion. It needs some tweaking; I used a bit of a dirty hack to get the language preference, when I'd rather that was just in the ParserOptions with a simple accessor. Also, the problem where parser hook extensions are returning a lot of extraneous whitespace is a bit of an issue here, since we're getting some hideous blank lines where the <language> tags were, and then the content where the <multilang /> tag is.
Rob Church
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Rob Church wrote:
Sounds like it might be possible in a similar form using the Multilang extension, if it's tweaked up a bit; I adapted Arnomane's work into something that behaves a little more like Cite (multiple blocks of <language code="en">Some text</language> for instance, with a <multilang /> for output) - the latter uses the language preference. [snip]
What about http://meta.wikimedia.org/wiki/Meta:Language_select ?
wikitech-l@lists.wikimedia.org