Jump to content

Meta:通用消息

From Meta, a Wikimedia project coordination wiki
This page is a translated version of the page Meta:Common messages and the translation is 27% complete.

通用消息是国际化中频繁使用的单词或短语。

非常鼓励使用这些消息,这样可以减轻译者的工作量。

内置消息

您可使用{{int}}模板,以当前页面语言显示系统消息,译文由Translatewiki.net提供。这对自动翻译以下内容尤其有益:

  • 维基媒体全域项目名称,例如{{int|wikibase-otherprojects-commons}}显示为“维基共享资源”。
  • 维基媒体本地项目名称,例如{{int|project-localized-name-frwiki}}显示为“法语维基百科”。
  • 月份,例如{{int|September}}显示为“9月”。
  • {{#language:}} parser function allows you to display language names. E.g. {{#language:fr|ar}} will display “French” in Arabic.
    • {{Lg}} template allows you to display language names in current page language. E.g. {{lg|fr}} will display “French” in current page language.

维基数据

You can get common names from Wikidata thanks to {{Label}} template.

  • Country names are available through {{Country}} template.

Meta-Wiki translation system

Meta-Wiki uses the Translate extension to provide multilingual support to wiki pages and templates.

These templates make use of translations which have already been created within this system (database):

  • {{Int string}}: Provides common messages (strings) used in navigation, table headers, timelines, and related non-sentence usages.
  • {{Translated content}}: Displays translations already entered into the Meta-Wiki translation system from other pages or existing translations within the same page.
  • {{Tunit}}: Displays translations already entered into the Meta-Wiki translation system from the same page.

另见