开发者

What is the meaning of -{ }- in MediaWiki wikitext?

开发者 https://www.devze.com 2023-03-07 22:52 出处:网络
In my MediaWi开发者_Python百科ki wiki, any wikitext containing -{ }- is not parsed correctly. Do I need some extension?

In my MediaWi开发者_Python百科ki wiki, any wikitext containing -{ }- is not parsed correctly. Do I need some extension?

Example:

-{Computer}-


The -{}- syntax is used by the rather poorly documented (but widely used, at least in some regions!) MediaWiki automatic language variant conversion feature (LanguageConverter), which converts text between different writing systems and local variants of a language, such as between simplified and tradition Chinese characters, or between Cyrillic and Latin alphabets in Serbian language.

Specifically, -{}- is used to manually override the automatic conversion, either for literal text (such as names or quotations) that should not be converted, or for special cases where the automatic conversion gets it wrong and needs to be overridden. The syntax for the latter case looks something like -{var1: Some text; var2: Something else}-, possibly with some flags at the beginning that change the behavior in various ways.

Alas, short of reading the code itself, I was unable to find any comprehensive documentation on what all these flags and such actually do. I do believe that there's some decent documentation available if you can read Chinese, but I can't, and the output of Google Translate leaves much to be desired.

0

精彩评论

暂无评论...
验证码 换一张
取 消