Extension:Cargo/zh

Cargo是MediaWiki的一项扩展，可以提供轻量的方式来存储和查询数据，这些数据是通常通过信息框（infobox）等模板调用的. Cargo在概念上类似于Semantic MediaWiki扩展，但是有许多有点，比如容易安装，容易使用.

Cargo将所有的数据存在数据库表中，而这些表可以被MediaWiki自己的数据库（默认）或分开的数据替换. For the most part, each stored template gets its data stored in a single DB table, with a column for each relevant template parameter. There are a few exceptions to this: the handling of template fields that hold arrays/lists of values, and of fields that hold geographical coordinates, is more complex, due to poor native handling of those data types in most DB systems. And multiple templates can be set to all store their data in one DB table.

这个扩展定义了许多解析器函数，以下三个最为重要：
 * - 位于模板的部分，为表定义概要.
 * - 为Cargo的表存储一行，通常位于模板的部分.
 * - 查询一个或多个Cargo数据表，使用SQL组件.

还定义了以下解析器函数：
 * - 定义一个模板加入其他模板声明的行.
 * - 在一个位置显示多次查询结果.
 * - 显示一个单点的地图.
 * - 输出反复发生时间的日期，为了#cargo_store使用.

Cargo also defines various interfaces for viewing and drilling down through this stored data.

Cargo has been tested, and works, with the MySQL, PostgreSQL and SQL Server database systems. In theory, it also supports SQLite and Oracle, but it has not been tested with these systems and may not work.

This version of the Cargo extension requires MediaWiki 1.23 or higher.

Click through the pages in the navigation bar above to learn more about Cargo, how it works, how to use it, and how to install it.