跳转到内容

MediaWiki:Gadget-displayname-both.js

来自萌娘共享

注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。

  • Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5Ctrl-R(Mac为⌘-R
  • Google Chrome:Ctrl-Shift-R(Mac为⌘-Shift-R
  • Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5
/**
 * -------------------------------------------------------------------------
 * !!! DON'T MODIFY THIS PAGE MANUALLY, YOUR CHANGES WILL BE OVERWRITTEN !!!
 * -------------------------------------------------------------------------
 */
var _addText = '{{GHIACode|page=GHIA:MoegirlPediaInterfaceCodes/blob/master/src/gadgets/displayname-both/Gadget-displayname-both.js|user=[[U:星海子]]|co-authors=|longId=a20f5ea33c32c10469fd4177d03f282f88dcaa42|shortId=a20f5ea3|summary=feat: Add displayname gadgets (default & both)|body=<nowiki>Introduce two gadgets to control user display names. Adds Gadget-displayname-default which replaces link text matching a username with the user✌s nickname (or "username {{!}} nickname" when in both-display mode), skipping links inside .moe-displayname-none and honoring a .moe-displayname-both class plus a user option or sysop override. Also adds a minimal Gadget-displayname-both entry and ResourceLoader definitions: the default gadget is enabled by default and depends on user.options, while the "both" gadget is optional and depends on ext.gadget.displayname-default. New files: src/gadgets/displayname-default/{Gadget-displayename-default.js,definition.yaml} and src/gadgets/displayname-both/{Gadget-displayname-both.js,definition.yaml}.</nowiki>}}'; 

/* <pre> */

"use strict"; 

/* </pre> */