Topic on Help talk:Extension:Translate

Translate Linktext of a Wikilink transcluded from a template

3
Patrick87 (talkcontribs)

Consider a template containing something like

[[Main Page|<translate>Go to main page</translate>]]

which becomes

[[Main Page|<translate><!--T:1-->
Go to main page</translate>]]

This looks good on the template page, but as soon as you transclude this template, the <translate> tags get visible on the transcluding page. Is there a way to translate the link text only and still be able to transclude the generated content onto another page?

Nemo bis (talkcontribs)
Patrick87 (talkcontribs)

Ah thanks, totally makes sense.

I skipped the paragraph since I knew how to translate templates using such mechanisms, but i didn't know it was a requirement. Will change the template transclusion then.

Reply to "Translate Linktext of a Wikilink transcluded from a template"