纳囊是什么妇科病| 38岁适合什么护肤品| 晚上7点到9点是什么时辰| 胸痛吃什么药| 丑土代表什么| 来例假吃什么好| 逸事是什么意思| 痛经吃什么止疼药| 淋巴细胞百分比高是什么意思| 生男生女取决于什么| 心如所愿的意思是什么| 李小龙是什么生肖| 惊喜的英文是什么| 甲亢是什么意思| 金童玉女指什么生肖| rose是什么意思| 肠道菌群失调吃什么药| 水瓶座是什么性格| 烤乳猪用的是什么猪| RHD血型阳性什么意思| 叉烧是什么肉做的| 鸡蛋炒什么菜谱大全| 红斑狼疮是什么病| 脚崴了挂什么科| 你什么都没看见| 嗜酸性肉芽肿是什么病| 五十知天命是什么意思| 梦见大蜘蛛是什么预兆| 口干舌燥吃点什么药| 什么是中位数| 睡觉打呼噜什么原因| 铁皮石斛能治什么病| 神经根型颈椎病吃什么药| 2月2号是什么星座| 吃什么补充维生素b| 孕妇不能吃什么食物| 什么歌最好听| 什么然而至| 红对什么| 心衰的症状是什么| 舌苔腻是什么意思| 肾结石是什么引起的| 广肚是什么| 什么的池塘| 尿素高是什么原因| 骆驼是什么牌子| 泌乳素高有什么影响| 国树是什么树| 七匹狼男装是什么档次| 伏羲是什么意思| 额头长痘痘是什么原因| 狗舔人是什么意思| 下肢静脉曲张挂什么科| 吃什么东西排酸最快| 老放屁是什么情况| 28岁属相是什么生肖| 火镰是什么意思| 孔雀鱼吃什么| 唏嘘不已的意思是什么| 柠檬有什么功效| 黄发指什么| 7.14是什么日子| sry什么意思| 女人盗汗吃什么好得快| 五险都有什么| veromoda是什么牌子| 为什么有钱人不去植发| 做完胃镜可以吃什么| 尿频尿量少是什么原因| 红艳煞是什么意思| 怒发冲冠是什么意思| 血糖高早餐吃什么好| 丁亥年五行属什么| 什么是边界感| 产前筛查是检查什么| 小孩缺锌吃什么补的快| 水瓶座和什么座最配对| 皮肤变白是什么原因| 快穿是什么意思| 草酸是干什么用的| 酥油是什么| 梦见吃西红柿是什么意思| 龋齿挂什么科| 待客是什么意思| ra是什么意思| 品名什么意思| 息肉样增生是什么意思| feel是什么意思| 南昌有什么好玩的| 鱼油不能和什么一起吃| 为什么吃芒果会过敏| 师范类是什么意思| 直肠炎吃什么药效果好| 血糖高的人适合吃什么水果| 人为什么有两个鼻孔| 酸碱度偏高是什么意思| 脾虚湿盛吃什么中成药| 宫内感染有什么症状| 蒂是什么意思| 猪肝补什么| 小朋友口臭是什么原因| 纯棉是什么面料| 三观是什么| 打碎碗是什么预兆| 肛门瘙痒用什么药最好| 正事是什么意思| 蚕吃什么| 日本是什么时候投降的| 小王子讲了什么故事| 各生欢喜什么意思| 尿蛋白1十是什么意思| 葡萄糖偏低是什么意思| 大海是什么颜色| 怀孕后的分泌物是什么样的| 偏头痛挂什么科| 猪笼入水是什么意思| 舌头疼痛吃什么药| 摩拳擦掌是什么意思| whan是什么意思| 老蒯是什么意思| 金字旁的字与什么有关| 拉不出来屎是什么原因| ed50是什么意思| 巫山云雨是什么意思| 德国人是什么人种| 掏耳朵咳嗽是什么原因| 轻浮的女人是什么意思| 胃肠功能紊乱吃什么药| 酒不能和什么一起吃| 甲状腺结节吃什么药好| 三月14号是什么星座| 无名指麻木是什么原因| 振水音阳性提示什么| 7月30日什么星座| 鸽子配什么煲汤最好| 什么是值机| 清秋是什么意思| 漠漠什么意思| 长智齿是什么原因引起的| 灵性是什么意思| 桑葚和什么泡酒壮阳| 心形脸适合什么发型| 柠檬加蜂蜜泡水喝有什么功效| biemlfdlkk是什么牌子| 传奇是什么意思| 夜咳嗽是什么原因| 什么程度下病危通知书| 生命科学专业学什么| 咳出痰带血是什么原因| 教诲的意思是什么| 月黑见渔灯的见读什么| 蒽是什么意思| 嘴巴淡而无味是什么原因| 水痘有什么症状| 尿肌酐低说明什么原因| 青钱柳有什么功效与作用| 精神是什么意思| 个子矮吃什么才能长高| 吃什么食物可以降尿酸| fbi是什么| 白藜芦醇是什么东西| 对眼是什么意思| 喝三七粉有什么好处| 肝胆湿热吃什么药| 41岁属什么| 瑶浴是什么意思| 开心是什么意思| 脚出汗用什么药| 发蜡和发泥有什么区别| 什么地说话| 狗尾续貂什么意思| 狗是什么时辰| 饱的偏旁叫什么| 肝火旺盛喝什么茶| 考试紧张吃什么药可缓解| 半夏微凉是什么意思| 柳下惠姓什么| sid是什么意思| 男人阴囊潮湿吃什么药| 生理盐水有什么用| 螃蟹吃什么食物| 心五行属什么| 199是什么意思| 阅后即焚什么意思| 什么药和酒一起吃必死| 吃什么有奶| 什么情况下需要做胃镜| apgar评分是什么意思| 猫驱虫药什么牌子好| 感冒鼻塞吃什么药| 包皮过长挂什么科| 全身抽筋吃什么药| 形容高兴的词语有什么| 水马是什么| 吉祥如意是什么意思| 胃疼吃什么药效果好| 什么叫人格| 尿酸高去医院挂什么科| 嘴角长痘痘是什么原因| 总是打哈欠是什么原因| 钢铁侠是什么意思| 台湾什么时候收复| 十万个为什么作者是谁| 春天的花开秋天的风是什么歌| 特朗普是什么星座| 梦到甘蔗代表什么预兆| 氧氟沙星和诺氟沙星有什么区别| 痛风是什么原因引起的| 月经9天了还没干净是什么原因| 妇科千金片主要治什么| 足度念什么| 为什么会近视| 喝水多尿多是什么原因男性| 中位数什么意思| 拔火罐起水泡是什么原因| 头汗特别多是什么原因| 灵魂伴侣是指什么意思| 江西有什么好玩的| 腹腔气体多是什么原因| 小孩感冒流鼻涕吃什么药| 高血糖不能吃什么| 属虎的守护神是什么菩萨| 红色尿液是什么原因| 五指毛桃不能和什么一起吃| 葡萄像什么| 骨痂是什么意思| 什么书比较好| 心理素质是什么意思| 日食是什么现象| 大便很臭什么原因| 慢性胃炎吃什么药好| 癖是什么意思| 右胸是什么器官| 证过二是什么意思| 助听器什么牌子最好| 11.20是什么星座| cho是什么意思| Zucchini是什么意思| 9.9是什么星座| 袁绍和袁术是什么关系| 恐龙生活在什么时代| 今天出生的男宝宝取什么名字好| 武五行属什么| 吃什么升白细胞| 结婚10周年是什么婚| 吃氨糖有什么副作用| 月经准时来说明什么| 棉花代表什么生肖| 灶王爷叫什么名字| 10月9日什么星座| 擦汗的表情是什么意思| 硫磺是什么东西| 右肾钙化灶是什么意思| 梦到死人了有什么兆头| 吕布的坐骑是什么| 正规医院减肥挂什么科| 玛尼石是什么意思| 脑供血不足有什么危害| 哀莫大于心死什么意思| q12h医学上是什么意思| 血液发黑是什么原因| 阴道口发白是什么原因| 贴膏药发热是什么原因| 东施效颦是什么意思| 百度Jump to content

扶贫不能“排排坐分果果”(话说新农村)

From mediawiki.org
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
百度 热点板块:近期腾讯成立了智慧零售战略合作部来推动能力的创新与整合,将多年积累的用户平台、大数据技术、优秀的产品体验和连接力进一步开放给合作伙伴。

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]
本是同根生相煎何太急是什么意思 什么叫做罹患疾病 什么叫有格局的人 noah是什么牌子 火华读什么
盆腔磁共振平扫能查出什么 6.20什么星座 玉米水喝了有什么好处 小鸡炖什么好吃 血塞通治什么病最好
胃间质瘤是什么性质的瘤 家里为什么会有蜈蚣 柴米油盐什么意思 为什么晚上血压比白天高 入肉是什么意思
什么是糙米 咽喉肿痛吃什么消炎药 宝宝眼屎多是什么原因 育婴师是干什么的 乏是什么单位
88年的属什么生肖hcv9jop4ns3r.cn 白介素2是治疗什么病的hcv9jop5ns8r.cn 阳虚吃什么药效果最好wuhaiwuya.com 骨折挂什么科hcv9jop2ns1r.cn 肝郁脾虚吃什么药效果最好xjhesheng.com
黑脸代表什么hcv7jop6ns0r.cn 次长是什么职位hcv9jop1ns6r.cn 贺喜是什么意思hcv7jop6ns4r.cn revive是什么意思hcv9jop7ns1r.cn 脐动脉2条是什么意思hcv8jop2ns2r.cn
winner什么意思helloaicloud.com 自然生化流产是什么意思hcv7jop9ns5r.cn 爱出者爱返福往者福来什么意思hcv9jop7ns0r.cn XX是什么意思hcv8jop5ns7r.cn 五七是什么意思hcv8jop1ns5r.cn
文化传媒是干什么的aiwuzhiyu.com 咳黄痰吃什么药好得快hcv9jop0ns3r.cn ppi是什么意思啊hcv7jop9ns3r.cn 尿里有泡沫是什么病hcv9jop3ns3r.cn 喝酒前吃什么不容易醉又不伤胃hcv7jop6ns8r.cn
百度