Extensión:Cargo
![]() Estado de lanzamiento estable |
|
---|---|
![]() |
|
Implementación | Página especial , API , Parser Función |
Descripción | Una extensión que permite el almacenamiento y la consulta de datos contenidos en plantillas. |
Autor(es) | Yaron Koren <yaron57@gmail.com> (Yaron Korendiscusión) |
Última versión | 3.2 (abril de 2022) |
Política de compatibilidad | Master maintains backward compatibility. |
MediaWiki | 1.32+ |
Cambios de la base de datos | Sí |
Composer | mediawiki/cargo |
Tablas | cargo_tables cargo_pages |
Licencia | GNU Licencia Pública general 2.0 o más tarde |
Descarga | See Extension:Cargo/Download and installation |
Ejemplo | A page containing various calls to #cargo_query |
|
|
|
|
|
|
Traduce el Cargo extensión | |
Asuntos | Tareas abiertas · Reportar un bug |
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 Extensión:SemanticMediaWiki 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. Hay unas cuantas excepciones a esto: el manejando de campos de plantilla que listas de variedades/el control de valores, y de campos que control coordenadas geográficas, es más complejo, debido a pobre nativo manejando de aquellos tipos de dato en más DB sistemas. 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.32+.
Clic a través de las páginas en la barra de navegación encima para aprender más sobre Cargo, cómo trabaja, cómo para utilizarlo, y cómo para instalarlo.
Véase también
- Manual:Managing data in 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 extension is included in the following packages and/or wiki farms: |