Extension:Cargo
![]() リリースの状態: 安定 |
|
---|---|
![]() |
|
実装 | 特別ページ , API , パーサー関数 |
説明 | テンプレートに含まれるデータを格納できるようにし、データのクエリを実行できるようにする拡張機能。 |
作者 | Yaron Koren <yaron57@gmail.com> (Yaron Korenトーク) |
最新バージョン | 3.4 (2022年11月) |
互換性の方針 | master は後方互換性を維持しています。 |
MediaWiki | 1.35+ |
データベースの変更 | はい |
Composer | mediawiki/cargo |
テーブル | cargo_tables cargo_pages |
ライセンス | GNU 一般公衆利用許諾書 2.0 以降 |
ダウンロード | Extension:Cargo/ダウンロードとインストール を参照してください |
例 | A page containing various calls to #cargo_query |
|
|
|
|
Quarterly downloads | 14 (Ranked 158th) |
Public wikis using | 207 (Ranked 405th) |
Cargo 拡張機能の翻訳にご協力ください | |
問題点 | 未解決のタスク · バグを報告 |
Cargo は MediaWiki 拡張機能であり、テンプレート呼び出しに含まれるデータを格納したり、データのクエリを実行したりできる軽量な方法を提供します。 概念は Semantic MediaWiki 拡張機能に似ていますが、インストールの容易さや使いやすさなど、多くの利点があります。
Cargo stores all its data in database tables, which can be placed in either MediaWiki's own database (the default) or a separate database. 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.
The extension defines a number of parser functions; these three are the most important:
#cargo_declare
- placed within the<noinclude>
part of a template; it defines the schema for a table.#cargo_store
- stores one row to a Cargo table; usually placed within the<includeonly>
part of a template.#cargo_query
- queries one or more Cargo data tables, using SQL components.
The other defined parser functions are:
#cargo_attach
- 他の場所で宣言されたテーブルに行を追加するようにテンプレートを定義します。#cargo_compound_query
- displays the results of multiple queries in one place.#cargo_display_map
- displays a map showing a single point.#recurring_event
- prints out the dates for a recurring event; for use by #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 and PostgreSQL database systems. In theory, it also supports SQLite, but it has not been well-tested with SQLite and may not work.
This version of the Cargo extension requires MediaWiki 1.33+.
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.
関連項目
- Manual:MediaWikiのデータ管理法 – An overview and comparison.
- DynamicPageList – Allows to extract data from pages.
- Semantic MediaWiki – Allows for the storage and querying of data within pages.
- WikiDB – Provides database features, somewhat similar to semantic properties.
- Wikibase – Allows to represent and manipulate structured data as part of the Wikidata project.
この拡張機能は以下のパッケージ/ウィキファームに含まれています: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |