社保局是干什么的| 绿色属于五行属什么| 囊肿是什么原因造成的| 受凉肚子疼吃什么药| k金是什么| 三点水卖读什么| 黄瓜与什么相克| 胃寒胃痛吃什么食物好| bally什么牌子| 投胎什么意思| 做b超需要挂什么科| 复方石韦胶囊治什么病| 口腔溃疡什么药最管用| 黄芪丹参山楂泡水有什么功效| marisfrolg是什么牌子| 骨钙素低是什么原因| 给产妇送什么礼物好| 窝沟封闭什么意思| 毛血旺是什么菜| 小孩爱吃手指头是什么原因| 明天有什么考试| 羽立念什么| 明月几时有的下一句是什么| 杀生电影讲的什么意思| 魔怔什么意思| 程门立雪是什么意思| 肉筋是什么| mop是什么意思| 流金铄石是什么意思| 什么茶助眠| 雾化是什么| 出去玩带什么| 皮肤过敏吃什么药好| mens是什么意思| 肚子腹泻是什么原因| 座驾是什么意思| 扌字旁的字和什么有关| 11月2号是什么星座| 肝脾肿大是什么症状| 什么还珠| 什么叫环比什么叫同比| 一个万一个足念什么| 清风明月是什么意思| 刷题是什么意思| 一到晚上就饿什么原因| bq是什么意思啊| 淋巴结有什么症状| 什么地问| 鼻炎是什么症状| 什么人不能吃人参| 普惠性幼儿园是什么意思| 禁欲有什么好处| 凉虾是什么| 乳房里面有硬块是什么原因| 齁不住是什么意思| 菩提根是什么材质| 全身抽筋吃什么药| 什么叫稽留流产| 斩金念什么| 茶色尿是什么原因引起的| hcv是什么病毒| 人流挂什么科| 什么中药可以减肥| 中专属于什么学历| 定期是什么意思| 处理是什么意思| 抑郁症是什么病| 脑缺血有什么症状| 尖酸刻薄什么意思| ptp是什么意思| 儿童多动症挂什么科| 大便常规检查能查出什么| 蛋白粉有什么作用| 什么越来越什么什么越来越什么| 乙肝二四五阳性什么意思| 女子胞指的是什么| 女人吃山竹有什么好处| 未成年喝酒有什么危害| 内热外寒感冒用什么药| 晚上吃什么菜| 什么是富氢水| 打封闭针是什么意思| 毓字五行属什么| 为什么血压低| 三头六臂是什么意思| 风疹吃什么药好得快| 喝白糖水有什么好处和坏处| 拔掉智齿有什么影响| 胃疼可以吃什么| 前胸后背长痘痘是什么原因| 主动脉硬化是什么意思| 稍高回声是什么意思| 睡醒手麻是什么原因引起的| 卢字五行属什么| 头部紧绷感是什么原因| 一个虫一个离念什么| 手上有湿疹是什么原因引起的| 什么叫女人味| rh血型是什么意思| 阴蒂瘙痒是什么原因| 科目一和科目四有什么区别| 十一月七号是什么星座| 肺纤维化什么意思| 小腹痛是什么原因| 什么是胆红素| 吴孟达什么时候去世的| 樱桃跟车厘子有什么区别| 黄历修造是什么意思| 青筋暴起是什么原因| 吃什么补胶原蛋白最快| 拉肚子是什么原因| 用盐泡脚有什么好处| 坐骨神经痛吃什么药好得快| 蚊子最怕什么气味| 送向日葵代表什么意思| 亡羊补牢的寓意是什么| 茶话会是什么意思| 猎头是干什么的| 有什么好听的名字| 草莓什么季节种植| 肾虚什么症状| 指数是什么| 消渴病是什么病| 鱼露是什么东西| 发烧拉肚子是什么原因| 凌晨一点多是什么时辰| 儿童干咳吃什么药效果好| 热痱子是什么原因引起的| 年轻人血压高是什么原因引起的| aa是什么意思| 抽血抽不出来是什么原因| 血压是什么意思| 足贴为什么变黑出油| 增生期子宫内膜是什么意思| 负面影响是什么意思| 睡不着觉是什么原因| 叶黄素有什么功效| 食管息肉的症状是什么| 连衣裙配什么鞋子好看| 月经不调是什么症状| 尖锐湿疣吃什么药| 双子座女和什么星座最配| 亮剑是什么意思| 1979属什么生肖| 吃什么水果对子宫和卵巢好| tao是什么意思| 翔字五行属什么| 艾灸痒痒的是什么原因| 肺部硬结灶是什么意思| 胚芽米是什么米| 属猪的贵人属相是什么| 孩子上火吃什么药| 东莞有什么厂| 眼白有黄斑是什么原因| 天那水是什么| 咳嗽痰多是什么原因| 心慌什么感觉| 为什么要当兵| 开放性神经管缺陷是什么意思| 孕妇零食可以吃什么| 凯字五行属什么| 区教育局局长是什么级别| 儿童热感冒吃什么药| 心脏病是什么原因引起的| 外阴白斑是什么症状| 手脱皮用什么药膏最好| 骨质疏松吃什么药| 班门弄斧什么意思| 左卵巢内囊性结构什么意思| 多汗症是什么原因引起的| 肝外胆管扩张什么意思| 献血有什么危害| 燥是什么意思| 红萝卜不能和什么一起吃| 为什么会呕吐| 遗精是什么意思啊| 尿频繁吃什么药最见效| 月光像什么| 梦见棉花是什么意思| 怀孕为什么会流血| 出库是什么意思| 七七年属什么生肖| 寒是什么生肖| 狂躁症是什么| vup是什么意思| 盆腔炎要做什么检查| 铺天盖地的意思是什么| 补气血喝什么汤| 肛门松弛吃什么药| 额是什么意思| 两个束念什么| 变更是什么意思| 糖类抗原什么意思| 副乡长是什么级别| 脚踝水肿是什么原因| 猴子是什么颜色| 粗鄙什么意思| 夏季吃什么菜最好菜谱| 脊柱侧弯拍什么片子| 5月7日是什么星座| 医学ns是什么意思| 给男人补身体煲什么汤| 竹节虫吃什么| 生源是什么意思| 三教九流代表什么生肖| 10.8号是什么星座| 血红蛋白是查什么的| 低压108有什么危险| rio是什么酒| 班长是什么军衔| 吃饭容易出汗是什么原因| 什么的雷锋| st是什么单位| 阴虚体质是什么症状| 芯字五行属什么| 女人生气容易得什么病| 手臂长斑是什么原因| 做什么生意好挣钱| 工匠精神的核心是什么| 女人戴什么手串辟邪| xy是什么意思| 隐翅虫怕什么| 耳朵大代表什么| 睡觉流口水什么原因| 头皮脂溢性皮炎用什么药| 喝黄芪水有什么好处| 圣罗兰是什么档次| 血压低有什么危险| 什么药可以延长时间| 流口水是什么病| 为什么身上痒一抓就起疙瘩| esr医学上是什么意思| 蚰蜒吃什么| 不想要孩子用什么办法最好| 平均血小板体积偏低是什么原因| 糖尿病早餐吃什么好| 什么是呆账| 舌苔厚腻吃什么中成药| 什么是鸡胸| punk什么意思| 山本耀司的品牌叫什么| 阴茎进入阴道什么感觉| 得艾滋病的前兆是什么| 人瘦肚子大是什么原因| 低钾有什么症状和危害| 拔罐是什么意思| 烧心胃酸吃什么药| 什么是孽缘| 什么样的小鱼| 经常口腔溃疡是什么原因| crp高是什么意思| 试纸一条红杠是什么意思| 0101是什么意思| who是什么组织| bata鞋属于什么档次| 脊椎炎有什么症状| 强的松又叫什么| dragon是什么意思| 悬钟为什么叫绝骨| 桃胶和什么相克| 胃癌手术后吃什么补品| 花胶和什么煲汤最适合| 脑委缩吃什么药能空制| 腹部b超可以检查什么| 百度Jump to content

枕秃是什么意思

From Wikipedia, the free encyclopedia
百度 特别是在火箭的死亡五小阵容当中,巴莫特的存在不仅仅是作为防守球员的存在,更是成为这个小阵容里的一把尖刀。

A Wikipedia gadget is a JavaScript program and/or a CSS snippet that can be enabled simply by checking an option in your preferences. The gadget's function is provided by the MediaWiki extension Gadgets.

Many gadgets started out as user scripts. Once a user script is approved as a gadget, it is removed from Wikipedia:User scripts/List. The currently installed gadgets are listed at Special:Gadgets.

General criteria for gadgets

[edit]

In order to be deployed on the English language Wikipedia, gadgets should generally pass the following conditions:

  1. Gadgets must work if just included with no further configuration. They can be configurable via personal common.js, but must work unconfigured.
  2. Gadgets must be compatible with all major browsers, i.e., they must not terminate with errors.
  3. Gadgets should be functional in most major browsers (cross-browser compatibility). Exceptions must be clearly stated.
  4. Duplication of gadgets should only be made if it is reasonable.
  5. Collections of scripts should be split if they have disparate functions.
  6. Gadgets requiring permissions must be marked and must fail gracefully if the permissions aren't present.
  7. Gadgets only working in some skins must be marked as such if that data is available.

Gadgets that are marked as default and load for large groups of users have additional criteria they need to conform to.

Proposals

[edit]

New gadgets should be proposed at the technical Village Pump.

Historically, new gadgets were proposed at a subpage of this page, but that page was marked historical due to low participation. Also, existing WikiProject User scripts used to be evaluated for conversion to gadgets, but that process has also been marked historical.

Installation

[edit]

Gadgets can be installed after discussion at the technical section of the village pump by interface administrators in the following way:

  1. Add the header below and the script code to MediaWiki:Gadget-scriptname.js
  2. Optionally, add the header below and CSS code to MediaWiki:Gadget-scriptname.css
  3. Add a script description to MediaWiki:Gadget-scriptname. Please link to the script home and/or help page and state browser requirements if needed.
  4. Add to MediaWiki:Gadgets-definition under the appropriate heading
     * scriptname|scriptname.js[|scriptname.css|otherscript.js|...]
    

The gadget should now appear on Special:Gadgets.

Comments

[edit]

Comments or warnings can be added to the gadget description templates in two ways:

  • noinclude tag (visible on description page with links): <noinclude> comment </noinclude>
  • HTML comments (visible in source text only): <!-- comment -->

Comments added in this way will be automatically discarded during the page creation process.

[edit]

The following header is to be added to the gadget files:

/*  _____________________________________________________________________________
 * |                                                                             |
 * |                    === WARNING: GLOBAL GADGET FILE ===                      |
 * |                  Changes to this page affect many users.                    |
 * | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
 * |_____________________________________________________________________________|
 * 
 * Imported from version XXXX as of DATE from [[SCRIPT_SOURCE]]
 * SHORT_DESCRIPTION, see [[SCRIPT_HOME_PAGE]]
 */

Default gadgets

[edit]

A gadget with default keyword is enabled for all Wikipedia visitors and only registered users can disable it. A gadget with [default|rights=minoredit] description would be automatically enabled only for registered users.

Criteria

[edit]

Gadgets that are enabled by default for all users have to comply with stricter rules. These are essentially the same rules that apply to all default shipped code. This is because users have no active choice in them being enabled and the gadgets can impact the performance, security and stability of the entire website. These gadgets should:

  • Have been reviewed by an experienced JavaScript developer (generally an interface admin).
  • Be "well maintained".
  • Conform with the Third-party resources policy.
  • Be written to run efficiently, i.e. with as little code as required. If full functionality of the gadget requires a lot of JavaScript code, then this code should be loaded conditionally and lazily, or only on demand (click to load).
  • Cause no accessibility problems.
  • Not be required for content to be readable, except for styles-only gadgets.
  • Not interfere with printing pages.
  • Comply with the current security and privacy standards.

This list should not be considered exhaustive.

Template gadgets

[edit]

Template gadgets are a special category of default gadgets. These gadgets only run on pages in explicit trigger categories, generally controlled by adding a template to a page. Trigger categories should be move-protected as they are integrated with the definition.

Currently installed gadgets

[edit]

Users can browse a list of all available gadgets in the gadgets section of their preferences page:

Preferences → Gadgets

See Special:Gadgets for a list of all active gadgets and links to their script files.

Pros and cons of changing a user script to a gadget

[edit]

Pros

[edit]
  • Adds the script to Special:Preferences, which makes installing it much easier.
  • Adds the script to Special:Preferences, which will help with marketing the script and boost install counts over time.
  • Gives the user script to the community, making interface administrators more likely to grant edit requests from other users, reducing the need to fork the user script if the maintainer goes inactive.
  • Ability to mark it as a "default gadget", which will load for everyone.
  • The ResourceLoader modules and CSS the script depends on load on page load, allowing the script to be ready faster.

Especially once a user script has a lot of users...

  • Gadgets provide minification and bundling with other gadgets, which reduces file sizes and HTTP traffic.
  • Possible protection against hacking. Interface administrators all have two factor authentication, and are removed if they become inactive. A regular maintainer might go inactive then have their account compromised at a later date.
  • Possible protection against a rogue user script developer. Interface administrators have gone through RFA and are possibly less likely to go rogue.

Cons

[edit]
  • Allows use of JavaScript features up to ES7 only. A few ES8 features like async–await can be used with the requiresES6 flag.
  • If the maintainer is not an interface administrator, they will now need to make {{Edit interface-protected}} requests in order to make any code changes, slowing down development.
  • Lots of steps. Need to make sure the maintainer is OK with it, get consensus at WP:VPT, then get an interface administrator to set everything up. May need a plan to switch everyone over from the old user script to the gadget. If there is any concern about bugs, may need to do a staggered rollout.

See also

[edit]
福州有什么好玩的地方 狗吃什么 小姨是什么 拜阿司匹林什么时间吃最好 丝状疣长什么样
半夜两点是什么时辰 血糖仪什么牌子的好用又准确 裂帛是什么意思 5月15日什么星座 小孩肚子疼吃什么药好
太多的理由太多的借口是什么歌 凤辇是什么意思 佛灯火命是什么意思 九月三号是什么星座 黄磊为什么不娶刘若英
办理暂住证需要什么材料 胃溃疡a1期是什么意思 蓝莓对身体有什么好处 ebay什么意思 月经每个月都推迟是什么原因
明天是什么节日hcv7jop9ns3r.cn 血压低什么原因hcv9jop1ns1r.cn 身体抱恙是什么意思hcv9jop7ns5r.cn 早上吃什么最有营养hcv9jop7ns5r.cn 吃什么对眼睛近视好jingluanji.com
缺铁吃什么药hcv7jop5ns0r.cn 什么茶适合煮着喝hcv9jop2ns2r.cn 肚子响是什么原因hcv9jop2ns9r.cn ct和b超有什么区别hcv9jop1ns7r.cn 酒量越来越差什么原因hcv8jop4ns9r.cn
首长是什么意思hcv8jop7ns5r.cn 肺纤维化有什么症状hcv7jop6ns2r.cn 练深蹲有什么好处hcv8jop7ns6r.cn 尿激酶的作用及功效是什么aiwuzhiyu.com 范仲淹是什么朝代的hcv8jop3ns0r.cn
小脑梗塞会出现什么症状hcv7jop6ns4r.cn 使婢差奴过一生是什么意思hcv9jop4ns4r.cn 1960年是什么年hcv8jop6ns0r.cn 晚上吃什么容易入睡hcv8jop9ns1r.cn 油茶是什么huizhijixie.com
百度