Extensão:Cargo
![]() Estado de lançamento: estável |
|
---|---|
![]() |
|
Implementação | Página espacial , API , Função do analisador |
Descrição | Uma extensão que permite o armazenamento e a consulta de dados contidos nas predefinições. |
Autor(es) | Yaron Koren <yaron57@gmail.com> (Yaron Korendiscussão) |
Última versão | 3.4.2 (abril de 2023) |
Política de compatibilidade | Original mantém a compatibilidade com versões anteriores. |
MediaWiki | 1.35+ |
Alterações à base de dados | Sim |
Composer | mediawiki/cargo |
Tabelas | cargo_tables cargo_pages |
Licença | GNU - Licença Pública Geral 2.0 ou superior |
Transferência | |
Exemplo | Uma página contendo várias chamadas para #cargo_query |
|
|
|
|
Quarterly downloads | 175 (Ranked 61st) |
Traduza a extensão Cargo | |
Problemas | Tarefas em aberto · Reportar um erro |
Cargo é uma extensão para MediaWiki que fornece uma maneira leve de armazenar e consultar os dados contidos nas chamadas para predefinições, como infoboxes. É um conceito similar ao da extensão [$url MediaWiki Semântica], mas oferece um número de vantagens, incluindo facilidade de instalação e uso.
O Cargo armazena todos os seus dados em tabelas de banco de dados, que podem ser colocadas no próprio banco de dados do MediaWiki (o padrão) ou em um banco de dados separado. 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.
See also
- Manual:Gerir dados no 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: 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. |
- Stable extensions/pt
- Special page extensions/pt
- API extensions/pt
- Parser function extensions/pt
- Extensions supporting Composer/pt
- GPL licensed extensions/pt
- Extensions in Wikimedia version control/pt
- AdminLinks extensions/pt
- ApprovedRevsRevisionApproved extensions/pt
- ApprovedRevsRevisionUnapproved extensions/pt
- CategoryAfterPageAdded extensions/pt
- CategoryAfterPageRemoved extensions/pt
- LinksUpdate extensions/pt
- LoadExtensionSchemaUpdates extensions/pt
- MakeGlobalVariablesScript extensions/pt
- PageForms::TemplateFieldEnd extensions/pt
- PageForms::TemplateFieldStart extensions/pt
- PageMoveComplete extensions/pt
- PageSaveComplete extensions/pt
- PageSchemasRegisterHandlers extensions/pt
- ParserFirstCallInit extensions/pt
- ResourceLoaderGetConfigVars extensions/pt
- ScribuntoExternalLibraries extensions/pt
- SidebarBeforeOutput extensions/pt
- SkinTemplateNavigation::Universal extensions/pt
- UploadComplete extensions/pt
- All extensions/pt
- Extensions included in Canasta/pt
- Extensions included in Fandom/pt
- Extensions included in Miraheze/pt
- Extensions included in MyWikis/pt
- Extensions included in wiki.gg/pt
- Extensions included in WikiForge/pt
- Data extraction extensions/pt
- Database extensions/pt
- Table extensions/pt
- Calendar extensions/pt
- Map extensions/pt
- Google Maps extensions/pt
- OpenLayers extensions/pt
- Leaflet extensions/pt
- Graphical Timelines/pt
- Graph extensions/pt
- Math extensions/pt
- Search extensions/pt