Расширение:Cargo
![]() Статус релиза: стабильно |
|
---|---|
![]() |
|
Реализация | Служебная страница , API , Функция парсера |
Описание | An extension that allows for the storage and querying of data contained within templates. |
Автор(ы) | Yaron Koren <yaron57@gmail.com> (Yaron Korenобсуждение) |
Последняя версия | 3.4.3 (июль 2023) |
Политика совместимости | Master maintains backward compatibility. |
MediaWiki | 1.35+ |
Изменения в БД | Да |
Composer | mediawiki/cargo |
Таблицы | cargo_tables cargo_pages cargo_backlinks |
Лицензия | GNU General Public License 2.0 или позднее |
Скачать | |
Пример | A page containing various calls to #cargo_query |
|
|
|
|
Ежеквартальные загрузки | 128 (Ranked 66th) |
Переведите расширение Cargo | |
Проблемы | Открытые задачи · Сообщить об ошибке |
Cargo is an extension to MediaWiki that provides a lightweight way to store and query the data contained within the calls to templates, such as infoboxes. It is similar in concept to the Расширение:Semantic MediaWiki extension, but offers a number of advantages, including ease of installation and ease of use.
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
- defines a template as adding rows to a table declared elsewhere.#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.35+.
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.
![]() | Это расширение включено в следующие вики-фермы/хостинги и/или пакеты: Это не исчерпывающий список. Некоторые вики-фермы/хостинги и/или пакеты могут содержать это расширение, даже если они не перечислены здесь. Всегда сверяйтесь со своими вики-фермами/хостингами или комплектами/бандлами для подтверждения. |
- Stable extensions/ru
- Special page extensions/ru
- API extensions/ru
- Parser function extensions/ru
- Extensions supporting Composer/ru
- GPL licensed extensions/ru
- Extensions in Wikimedia version control/ru
- AdminLinks extensions/ru
- ApprovedRevsRevisionApproved extensions/ru
- ApprovedRevsRevisionUnapproved extensions/ru
- CategoryAfterPageAdded extensions/ru
- CategoryAfterPageRemoved extensions/ru
- LinksUpdate extensions/ru
- LoadExtensionSchemaUpdates extensions/ru
- MakeGlobalVariablesScript extensions/ru
- PageForms::TemplateFieldEnd extensions/ru
- PageForms::TemplateFieldStart extensions/ru
- PageMoveComplete extensions/ru
- PageSaveComplete extensions/ru
- PageSchemasRegisterHandlers extensions/ru
- ParserFirstCallInit extensions/ru
- ResourceLoaderGetConfigVars extensions/ru
- ScribuntoExternalLibraries extensions/ru
- SidebarBeforeOutput extensions/ru
- SkinTemplateNavigation::Universal extensions/ru
- UploadComplete extensions/ru
- All extensions/ru
- Extensions included in Canasta/ru
- Extensions included in Fandom/ru
- Extensions included in Miraheze/ru
- Extensions included in MyWikis/ru
- Extensions included in wiki.gg/ru
- Extensions included in WikiForge/ru
- Extensions included in WikiTide/ru
- Data extraction extensions/ru
- Database extensions/ru
- Table extensions/ru
- Calendar extensions/ru
- Map extensions/ru
- Google Maps extensions/ru
- OpenLayers extensions/ru
- Leaflet extensions/ru
- Graphical Timelines/ru
- Graph extensions/ru
- Math extensions/ru
- Search extensions/ru