Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

In a MediaWiki instance of mine, I found myself using many English terms' Chinese translation repeatedly.

Is there a way to centralize a glossary of such English terms and their Chinese translation such that, in an arbitrary MediaWiki article, primarily written in Chinese, one could display a term's Chinese translation by using some reference that only involves the English term?

That way, i can avoid having to remember the exact Chinese translation, and just specially tag the terms for them to show up translated in the result formatted page.

share|improve this question

migrated from webapps.stackexchange.com Jul 27 '13 at 19:33

This question came from our site for power users of web applications.

1 Answer 1

up vote 1 down vote accepted

How about making templates like Template:English word with its contents looking like this?

中文<noinclude>[[Category:Glossary]]</noinclude>

In your wiki pages, write, for example,

当前的{{English word}}维基

which should result in

当前的中文维基

The noinclude portion in the template code is optional, but would allow you to maintain a glossary page at Category:Glossary that lists all the English terms. (However, this "glossary" only works in English-Chinese direction, not the other way around.)

share|improve this answer
1  
I ended up using this exact solution, i.e. using Template. The <noinclude> trick is good! –  Meng Lu Aug 4 '13 at 3:28
    
Great! Of course, there could always be better solutions (extension-based, perhaps?), but you're welcome to accept my answer to indicate that this question is resolved. –  Asa Aug 4 '13 at 22:12

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.