PHPackages                             mediawiki/cargo - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mediawiki/cargo

ActiveMediawiki-extension[Utility &amp; Helpers](/categories/utility)

mediawiki/cargo
===============

A MediaWiki extension that allows for the storage and querying of data contained within templates.

3.9.2(2w ago)354.0k↑321.4%23GPL-2.0-or-laterJavaScript

Since Sep 29Pushed 1w ago14 watchersCompare

[ Source](https://github.com/wikimedia/mediawiki-extensions-Cargo)[ Packagist](https://packagist.org/packages/mediawiki/cargo)[ Docs](https://www.mediawiki.org/wiki/Extension:Cargo)[ RSS](/packages/mediawiki-cargo/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (20)Versions (75)Used By (0)Security (3)

```
Cargo extension

        Version 3.9.2
        Yaron Koren

This is free software licensed under the GNU General Public License. Please
see http://www.gnu.org/copyleft/gpl.html for further details, including the
full text and terms of the license.

== Overview ==

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.

The extension defines the following parser functions:

* #cargo_declare - placed within the  part of a template; it
defines the schema for a table.

* #cargo_attach - also placed within the  part of a template;
specifies that a template adds rows to a table declared elsewhere.

* #cargo_store - stores one row to a Cargo table; usually placed within
the  part of a template.

* #cargo_query - queries one or more Cargo data tables, using SQL
components.

* #cargo_compound_query - calls multiple queries, and displays the
results together.

* #cargo_display_map - displays a map showing a single point.

* #recurring_event - outputs a string holding a list of dates for a
recurring event, for use by #cargo_store.

It also defines Lua functions equivalent to some of these parser
functions, for use within the Scribunto extension.

For more information, see the extension homepage at:
https://www.mediawiki.org/wiki/Extension:Cargo

== Requirements ==

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

== Installation ==

To install the extension, place the entire 'Cargo' directory within
your MediaWiki 'extensions' directory, then add the following line to
your 'LocalSettings.php' file:

     wfLoadExtension( 'Cargo' );

Then, go to core MediaWiki's /maintenance directory, and call the
following:

     php update.php

== Credits ==

Cargo was created, and mostly written by, Yaron Koren.

Query formats were also added by Cindy Cicalese, Luis Morillas, StasR,
Kris Field, Anjali Kumari and Sam Wilson.

Support for hierarchy fields was added by Feroz Ahmed as a project for
the 2017 Google Summer of Code.

Substantial improvements to the Special:Drilldown page, including
support for "parent tables", were done by Nikhil Kumar as part of the
2018 Google Summer of Code.

Substantial improvements to the Special:CargoQuery page were done by
Ankita Mandal as part of the 2019 Google Summer of Code.

Important code contributions were also made by Ad Strack van Schijndel,
Cody3647, Derick Alangi, Duncan Crane, Ed Hoo, IijimaYun, Namit Ohri,
Paladox, Priyanshu Varshney, Tomás Bolaño, Sahaj Khandelwal, Vivek
Ghaisas, Megan Cutrofello, Yash Varshney, Naresh Kumar, Thiemo Kreuz,
Máté Szabó, Umherirrender and others.

== Contact ==

Comments, questions, suggestions and bug reports can be sent to the
MediaWiki mailing list:

 https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

If possible, please add "[Cargo]" at the beginning of the subject line, to
clarify the subject matter.

== Credits to other projects ==

Cargo contains the following JavaScript libraries:

* bpmn-js (https://bpmn.io/toolkit/bpmn-js/), available under a custom
open source license.

* dagre (https://github.com/dagrejs/dagre), available under the MIT
License.

* DataTables (https://datatables.net), available under the MIT License.

* DHTMLX Gantt (https://dhtmlx.com/docs/products/dhtmlxGantt/), available
under the GNU General Public License.

* FullCalendar (https://fullcalendar.io), available under the MIT License.

* markerclusterer.js, available under the Apache License.

* slick (http://kenwheeler.github.io/slick/), available under the MIT
License.

Cargo makes the following additional uses of outside code:

* A significant portion of the drill-down code was copied from the
Semantic Drilldown extension, also written (for the most part) by Yaron
Koren.

* Much of the map display code was copied from the Miga JavaScript library
(http://migadv.com), also written by Yaron Koren.

* Various of the display formats include elements from the code of their
corresponding formats in Semantic MediaWiki and other extensions, notably
the 'outline' format.
```

###  Health Score

63

—

FairBetter than 99% of packages

Maintenance97

Actively maintained with recent releases

Popularity36

Limited adoption so far

Community29

Small or concentrated contributor base

Maturity78

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~75 days

Recently: every ~38 days

Total

53

Last Release

18d ago

Major Versions

0.11 → 1.02016-04-19

1.7 → 2.02018-10-19

2.8 → 3.02021-09-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/451bd4039d530fed8f9c3da91bfa519233a397d2182cdfdcad700f6cfea19b7f?d=identicon)[Jeroen De Dauw](/maintainers/Jeroen%20De%20Dauw)

---

Top Contributors

[![yaronkoren](https://avatars.githubusercontent.com/u/1278687?v=4)](https://github.com/yaronkoren "yaronkoren (1033 commits)")[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (807 commits)")[![umherirrender](https://avatars.githubusercontent.com/u/1174884?v=4)](https://github.com/umherirrender "umherirrender (48 commits)")[![samwilson](https://avatars.githubusercontent.com/u/213655?v=4)](https://github.com/samwilson "samwilson (38 commits)")[![fz-29](https://avatars.githubusercontent.com/u/7783452?v=4)](https://github.com/fz-29 "fz-29 (23 commits)")[![paladox](https://avatars.githubusercontent.com/u/5727000?v=4)](https://github.com/paladox "paladox (22 commits)")[![nikhil-nk](https://avatars.githubusercontent.com/u/30752164?v=4)](https://github.com/nikhil-nk "nikhil-nk (21 commits)")[![mszabo-wikia](https://avatars.githubusercontent.com/u/2721291?v=4)](https://github.com/mszabo-wikia "mszabo-wikia (21 commits)")[![sanjay-thiyagarajan](https://avatars.githubusercontent.com/u/42594454?v=4)](https://github.com/sanjay-thiyagarajan "sanjay-thiyagarajan (21 commits)")[![RheingoldRiver](https://avatars.githubusercontent.com/u/18037011?v=4)](https://github.com/RheingoldRiver "RheingoldRiver (20 commits)")[![alex4401](https://avatars.githubusercontent.com/u/33527044?v=4)](https://github.com/alex4401 "alex4401 (16 commits)")[![xSavitar](https://avatars.githubusercontent.com/u/4872561?v=4)](https://github.com/xSavitar "xSavitar (15 commits)")[![legoktm](https://avatars.githubusercontent.com/u/81392?v=4)](https://github.com/legoktm "legoktm (14 commits)")[![thiemowmde](https://avatars.githubusercontent.com/u/6576639?v=4)](https://github.com/thiemowmde "thiemowmde (11 commits)")[![sahajk21](https://avatars.githubusercontent.com/u/42210678?v=4)](https://github.com/sahajk21 "sahajk21 (11 commits)")[![naresh-kumar-babu](https://avatars.githubusercontent.com/u/60980410?v=4)](https://github.com/naresh-kumar-babu "naresh-kumar-babu (9 commits)")[![DannyS712](https://avatars.githubusercontent.com/u/46829944?v=4)](https://github.com/DannyS712 "DannyS712 (6 commits)")[![oetterer](https://avatars.githubusercontent.com/u/9444462?v=4)](https://github.com/oetterer "oetterer (6 commits)")[![anysite](https://avatars.githubusercontent.com/u/5819263?v=4)](https://github.com/anysite "anysite (6 commits)")[![JayanthVikashS](https://avatars.githubusercontent.com/u/70621058?v=4)](https://github.com/JayanthVikashS "JayanthVikashS (5 commits)")

---

Tags

mediawiki

### Embed Badge

![Health badge](/badges/mediawiki-cargo/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-cargo/health.svg)](https://phpackages.com/packages/mediawiki-cargo)
```

###  Alternatives

[mediawiki/mediawiki-codesniffer

MediaWiki CodeSniffer Standards

343.2M444](/packages/mediawiki-mediawiki-codesniffer)[mediawiki/chameleon-skin

A highly flexible MediaWiki skin using Bootstrap 5

12585.7k2](/packages/mediawiki-chameleon-skin)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[mediawiki/semantic-result-formats

Provides additional result formats for queries using Semantic MediaWiki

56188.7k1](/packages/mediawiki-semantic-result-formats)[mediawiki/mermaid

Provides a parser function to generate diagrams and charts with the help of the mermaid script language

4667.7k1](/packages/mediawiki-mermaid)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
