forked from wikimedia/mediawiki-extensions-Cargo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
100 lines (65 loc) · 3.29 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Cargo extension
Version 1.7
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 <noinclude> part of a template; it
defines the schema for a table.
* #cargo_attach - also placed within the <noinclude> 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 <includeonly> 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.
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.23 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:
require_once( "$IP/extensions/Cargo/Cargo.php" );
== Credits ==
Cargo was created, and mostly written by, Yaron Koren.
Query formats were also added by Cindy Cicalese, Luis Morillas and StasR.
Support for hierarchy fields was added by Feroz Ahmed as a project for
the 2017 Google Summer of Code.
Important code contributions were also made by Ad Strack van Schijndel,
Duncan Crane, Ed Hoo, Namit Ohri, Paladox, Vivek Ghaisas and others.
== Contact ==
Comments, questions, suggestions and bug reports can be sent to either the
MediaWiki or the Semantic MediaWiki mailing lists:
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Although the Cargo extension does not make use of Semantic MediaWiki, and
in fact can be considered an alternative to it, it still fits within the
same family of extensions that take a data-centric approach to MediaWiki.
If possible, please add "[Cargo]" at the beginning of the subject line, to
clarify the subject matter.
== Credits to other projects ==
* Cargo includes the DataTables JavaScript library (http:/datatables.net),
available under the MIT License.
* Cargo includes the FullCalendar JavaScript library (http://fullcalendar.io),
available under the MIT License.
* Cargo includes the markerclusterer.js file, available under the Apache
License.
* 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.