On Tue, Nov 10, 2015 at 4:39 PM, Brian Wolff <bawolff(a)gmail.com> wrote:
Maybe we should have something like:
{{#langswitch:
en=foo
fr=le foo
..
}}
which works like normal #switch, except without dead-branch
elimination. (And for bonus points, implements language fallback
sanely).
That might work in itself. But then {{foo|var={{#langswitch:...}}}} would
probably still have potential issues, and the same sort of thing in
Scribunto however it's implemented there.
Or maybe an in-core feature {{#langtransclude:foo}},
which works like
normal {{foo}}, except it translcudes the language subpage instead
(and does smart fallback, and records a transclusion link record for
all the 2-3 letter subpages of the template).
You'd also have to parse all those 2-3 letter subpages to get their links,
categories, subtemplates, and so on.
--
Brad Jorsch (Anomie)
Senior Software Engineer
Wikimedia Foundation