为什么智齿老是发炎| rf医学上是什么意思| 怀孕了有什么征兆| 吃什么爱放屁| 如何查自己是什么命格| 肺部有空洞是什么病症| 大便是黑色的是什么原因| 拉黑粑粑是什么原因啊| 像蜈蚣一样的虫子叫什么| 健字五行属什么| 为什么会生化| 感冒发烧吃什么药比较好| 2.20什么星座| 什么时候吃饺子| 56年属什么生肖| 跖疣是什么| 牙齿脱矿是什么原因| 法西斯是什么意思啊| 胺试验阳性是什么意思| 夏至是什么意思| 2016属什么生肖| 健身吃蛋白粉有什么好处和坏处| 脑内多发缺血灶是什么意思| 头晕晕的是什么原因| adem是什么病| 裂隙灯能查出什么眼病| 下肢静脉曲张挂什么科| 小孩便秘吃什么药| LOP是什么胎位| 农历六月十八是什么星座| 夹腿什么意思| 戴银首饰对身体有什么好处| 李子和什么不能一起吃| 便秘了吃什么容易排便| 慢性病都包括什么病| 近水楼台先得月是什么生肖| 金今念什么| 可见一什么| 1月份是什么星座| 钯金和铂金有什么区别| 一片哗然是什么意思| otc代表什么| 数不胜数是什么生肖| 神助攻什么意思| 大便出血是什么原因引起的| 冬占生男是什么意思| 天行健的下一句是什么| 重塑是什么意思| suan是什么意思| 养胃喝什么| 原发性高血压什么意思| 1996年什么命| 拍拖是什么意思| 不寐病属于什么病症| 胯骨在什么位置图片| 尿检查什么| 减肥为什么会口臭| 地球是什么生肖| 什么牌子奶粉最好| 什么情况下做喉镜| 黄体回声是什么意思| 左胸上方隐痛什么原因| 开铲车需要什么证件| 全身瘙痒要警惕什么病| DDP是什么| 极光是什么意思| 1992年属猴的是什么命| 熊猫血有什么好处| joseph是什么意思| 为什么叫黄瓜| 七月十七是什么星座| 时兴是什么意思| 1972年属什么| 美背是什么| 长痔疮是什么引起的| ems什么意思| 哈密瓜苦是什么原因| 坠积效应是什么意思| 胰腺炎吃什么药见效快| edifice是什么牌子手表| 八月13号是什么星座| 田螺姑娘是什么意思| 吃火龙果有什么好处和坏处| 助听器什么价位| 球镜柱镜是什么意思| 什么人容易得白塞氏病| 9.23什么星座| 姜对头发有什么作用| 喉咙干是什么病的前兆| 开塞露有什么功效| br是什么意思| 消化不好吃什么药| 眼袋青色什么原因| 我想知道为什么| 党参泡酒有什么功效| 古埃及是什么人种| 家奴是什么生肖| 2月13号是什么星座| 结婚27年是什么婚| 步步生花是什么意思| 糖尿病能喝什么饮料| 郭靖属什么生肖| 职业暴露是什么意思| 摊手是什么意思| 看甲沟炎挂什么科| 六畜兴旺是什么意思| 贴黄瓜片对皮肤有什么好处| 生气发抖是什么原因| 阴茎硬不起来吃什么药| 心脾两虚吃什么食物补最快| 寅时属什么生肖| 省政协常委是什么级别| 普洱茶是属于什么茶| 脆皖鱼是什么鱼| 1990属什么生肖| 紫癜是什么病 严重吗| 白切鸡用什么鸡| 公积金缴存基数是什么| 女生不来大姨妈是什么原因| 为什么会缺乏维生素d| 胰腺炎是什么病严重吗| 请丧假需要什么证明| 恩裳是什么档次的衣服| 吃什么药| 蝉是什么生肖| 366是什么意思| 松脂是什么| 春天是什么颜色的| 深海鱼都有什么鱼| 云南白药里面的保险子有什么用| 看痔疮挂什么科| 什么面什么方| 韩国买什么东西划算| 04属什么生肖| 气血虚吃什么药| 牙周炎有什么症状| sport什么品牌| 为什么会得脑梗| 兔头是什么意思| mlf是什么意思| 心脏供血不足用什么药| 碳足迹是什么| 先天是什么意思| 甲功不正常有什么表现| 眼镜pd是什么意思| 梦见和老公结婚是什么意思| 情志病是什么意思| 2009年五行属什么| 什么地赶来| 什么是四环素牙| 上四休二是什么意思| 什么鸡| 吃什么可以减肥| 清真食品是什么意思| 什么是配速| 手术室为什么在三楼| 生男生女取决于什么| 烫伤涂什么| 三金片有什么副作用| 壑是什么意思| 放任是什么意思| 瘦肉是什么肉| 什么是陈述句| 二型血糖高吃什么药好| 红色的海鱼是什么鱼| 鲶鱼是什么鱼| 五彩斑斓是什么意思| 七月十一日是什么日子| 手机电池为什么会鼓包| 什么叫热射病| 贤淑是什么意思| 放屁臭什么原因| 球蛋白是什么| 原浆酒是什么意思| 母亲节送给妈妈什么礼物| 红烧肉可以放什么配菜| 隔应是什么意思| 氯读什么拼音| NT是什么钱| 梦见剪头发是什么意思| 做完人流需要注意什么| 藏红花有什么作用和功效| add是什么意思| 癌变是什么意思| 净身是什么意思| 异常出汗是什么原因| 竖心旁的字有什么| 处女座前面是什么星座| 拔牙后喝酒有什么危害| 什么酒不能喝| 胎儿左心室点状强回声是什么意思| 平痛新又叫什么| 睾酮素低了有什么症状| 喝生鸡蛋有什么好处| 割痔疮后吃什么恢复快| resp是什么| 螺子黛是什么| 梦见栽树是什么预兆| 吃白糖有什么好处和坏处| 什么是嗳气有何症状| 什么是体制内的工作| 脑梗的人适合吃什么食物| 开背是什么意思| 芊芊是什么意思| 婴儿八个月可以吃什么辅食| 梦见好多老鼠是什么意思| 一国两制是什么时候提出的| 双休什么意思| 戈美其鞋子是什么档次| dcr是什么| 网红是什么意思| 落花生是什么意思| 发扬什么词语搭配| 吃什么有饱腹感还减肥| biubiubiu是什么意思| 肝病吃什么药好得快| 男人经常熬夜炖什么汤| 舌苔发白是什么原因引起的| 屁股眼痒是什么原因| 九月份有什么节日| 头晕到医院看什么科| 转移酶偏高是什么原因| 梦见别人家盖房子是什么意思| 怀孕40天有什么症状| 受惊吓吃什么药| 头发斑秃是什么原因引起的| 什么东西最补心脏| navy什么意思| 喝酒脸红是什么原因| 补体c3偏高说明什么| 苹果煮水喝有什么好处和坏处| 老凤祥银楼和老凤祥有什么区别| 做梦梦到鬼是什么意思| 后背疼是什么病的前兆| 解脲脲原体是什么意思| 澄面是什么面粉| 脚趾缝脱皮是什么原因| 新生儿湿肺是什么意思| 药占比什么意思| 杨利伟什么军衔| 发烧想吐是什么原因| 为什么一躺下就头晕目眩| 女人要矜持是什么意思| 低俗是什么意思| 三宫六院是什么意思| 麻腮风疫苗什么时候打| 涨价是什么意思| taco什么意思| 田七蒸瘦肉有什么功效| 什么水果补钙| 汗疱疹是什么原因引起| hope是什么意思啊| 铁剂不能与什么同服| 膑是什么意思| 凌波仙子是什么花| 阶段性是什么意思| 蒙圈什么意思| 指甲起层是什么原因| 心肌炎是什么病| 肾虚腰疼吃什么药最有效| 上眼皮痒是什么原因| 不敢苟同是什么意思| 玉兰油适合什么年龄| 胶囊壳是什么原料做的| 百度

能源舆情:四大电力集团上书发改委 业内热议新能源发展

MediaWiki extensions manual
Cargo
Release status: stable
Implementation Special page , API , Parser function
Description An extension that allows for the storage and querying of data contained within templates.
Author(s) Yaron Koren <yaron57@gmail.com> (Yaron Korentalk)
Latest version 3.8.2 (July 2025)
Compatibility policy Master maintains backward compatibility.
MediaWiki 1.40+
Database changes Yes
Composer mediawiki/cargo
Tables cargo_tables
cargo_pages
cargo_backlinks
License GNU General Public License 2.0 or later
Download
Example A page containing various calls to #cargo_query
  • $wgCargoFileDataColumns
  • $wgCargoDrilldownLargestFontSize
  • $wgCargoDecimalMark
  • $wgCargoDefaultStringBytes
  • $wgCargoAllowedSQLFunctions
  • $wgCargoMaxVisibleHierarchyDrilldownValues
  • $wgCargoDrilldownSmallestFontSize
  • $wgCargoHideNamespaceName
  • $wgCargoMaxQueryLimit
  • $wgCargoDefaultMapService
  • $wgCargoStoreUseTemplateArgsFallback
  • $wgCargoPageDataColumns
  • $wgCargoIgnoreBacklinks
  • $wgCargoDigitGroupingCharacter
  • $wgCargoDefaultQueryLimit
  • $wgCargoDrilldownNumRangesForNumbers
  • $wgCargo24HourTime
  • $wgCargoLegacyNullLuaFieldsAsEmptyString
  • $wgCargoTablesPrioritizeReplacements
  • $wgCargoRecurringEventMaxInstances
  • $wgCargoDrilldownUseTabs
  • $wgCargoDrilldownMinValuesForComboBox
  • $wgCargoMapClusteringMinimum
  • recreatecargodata
  • deletecargodata
  • runcargoqueries
Translate the Cargo extension
Issues Open tasks · Report a bug
百度 全新LvceaTubogas将光与时间紧密连接,将舒淇与宝格丽女性自信、优雅、精致、性感的气质动人演绎。

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. As such, it adds the following special pages:

  • Special:CargoQuery
  • Special:CargoTableDiagram
  • Special:CargoTables
  • Special:Drilldown

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.40+.

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.

Installation

edit

See Download and Installation .

Configuration

edit

Below are Cargo's global configuration settings along with their default values.

To configure Cargo to use a separate database instead of the MediaWiki database, the following settings are provided:

Separate database configuration settings
Setting Default Description
$wgCargoDBtype null Database type.
$wgCargoDBserver null Host name or IP address of database server.
$wgCargoDBname null Name of the database.
$wgCargoDBuser null Database username.
$wgCargoDBpassword null The password for $wgCargoDBuser.
$wgCargoDBprefix null Database table name prefix.
$wgCargoDBRowFormat null Data base row format.

For character configuration as related to numbers, the following configuring settings are provided:

Character configuration settings
Setting Default Description
$wgCargoDecimalMark . Decimal character for numbers.
$wgCargoDigitGroupingCharacter , Thousands digit separator.

The remaining global configuration settings are as follows:

Setting Default Description
$wgCargoAllowedSQLFunctions [] Sets allowed SQL functions. See Using SQL Functions for defaults.
$wgCargoRecurringEventMaxInstances 100 The number of max instances to store for recurring events with no set end date.
$wgCargoDefaultStringBytes 300 The default number of characters for fields of type Page, String, Wikitext string, File, URL, Email
$wgCargoDefaultQueryLimit 100 Number of results to show for #cargo_query if no limit is set
$wgCargoMaxQueryLimit 5000 The maximum allowed number of results for #cargo_query
$wgCargo24HourTime false If true uses 24-hour time for Datetime field types.
$wgCargoDefaultMapService OpenLayers Sets the default map service to Google Maps, if set to googlemaps, to Leaflet if set to leaflet, and to OpenLayers if set to openlayers.
$wgCargoGoogleMapsKey null API key for Google Maps, for the googlemaps display format.
$wgCargoMapClusteringMinimum 80 If the number of map points displayed is greater than the value of $wgCargoMapClusteringMinimum, the map displays the locations in "clusters" instead of individual points, for readability. If set to a very high number, does not display clustering.
$wgCargoDrilldownUseTabs true Displays Special:Drilldown table names as tabs at the top instead of a vertical list at the side.
$wgCargoDrilldownSmallestFontSize
If set to a positive number, sets the smallest font size, in pixels, for a tag-cloud-style display of filter values.
$wgCargoDrilldownLargestFontSize
If set to a positive number, sets the largest font size, in pixels, for a tag-cloud-style display of filter values.
$wgCargoDrilldownMinValuesForComboBox 40 Sets the minimum number of values before their display is converted to a combo box, instead of individual links.
$wgCargoDrilldownNumRangesForNumbers 5 For fields/filters of type Integer or Float, specifies the number of "buckets" into which values are divided.
$wgCargoMaxVisibleHierarchyDrilldownValues 30 If set to a positive integer, specifies the maximum number of values shown at a time for any hierarchy field (All the top-level values are shown irrespective of this value). The values are hidden beyond a certain depth of the hierarchy such that the count of total visible values is at most this number.
$wgCargoTablesPrioritizeReplacements false If true, all tables having a replacement appear at the top of the Special:CargoTables page, instead displaying them in alphabetical order.
$wgCargoPageDataColumns [] The set of fields to store in the _pageData Cargo table. See Storing page data .
$wgCargoFileDataColumns [] The set of fields to store in the _fileData Cargo table. See Storing file data .
$wgCargoHideNamespaceName [6] Array of namespaces to hide from query results.
$wgCargoLegacyNullLuaFieldsAsEmptyString false Null results to the Lua Cargo query function should return as string rather than nil. This allows you to rollback a breaking change from early 2022. New wikis created after this time should not enable this.
$wgCargoStoreUseTemplateArgsFallback true Enable the behavior that looks for template arguments that match the template's declared table to fill columns.

See also

edit
白居易是诗什么 电解质是什么意思 义眼是什么意思 10月30日是什么星座 闷葫芦是什么意思
无限极是干什么的 mi是什么 热血病是什么病 先天性一个肾对人有什么影响 益生菌有什么好处
电脑pin是什么意思 泌尿系统由什么组成 孩子爱啃指甲是什么原因 黑色的蛇是什么蛇 身上长了好多红痣是什么原因
p.a.是什么意思 吃什么囊肿会消失 手足口病忌口什么食物 张杰属什么生肖 杜甫是什么朝代的
腿麻是什么原因hcv8jop7ns6r.cn 阳痿挂什么科hcv8jop9ns9r.cn 非礼什么意思hcv8jop6ns4r.cn 一月五日是什么星座96micro.com 梓树为什么叫梧桐树hcv8jop2ns5r.cn
楚楚动人是什么意思hcv9jop2ns0r.cn 睡觉吐气是什么原因hcv8jop4ns5r.cn ivf是什么意思hcv8jop4ns2r.cn 洗涤心灵是什么意思hcv9jop3ns2r.cn 什么是比喻hcv9jop5ns8r.cn
狗为什么怕猫hcv9jop0ns7r.cn 敏感肌是什么样的hcv8jop6ns5r.cn 三个龙是什么字hcv8jop2ns6r.cn 南京市长是什么级别dajiketang.com 摩羯座属于什么象星座hcv8jop1ns3r.cn
西凤酒是什么香型hcv8jop3ns7r.cn 吃什么生血dajiketang.com 脑出血什么原因引起的hcv9jop2ns1r.cn 不置可否什么意思hcv9jop6ns1r.cn 小二是什么意思hcv8jop3ns3r.cn
百度