Description
Adds an "Add Section" option to the Edit drop list that acts like the "Add topic" / "Leave message" button on talk pages.
English (en) Afrikaans (af) العربية (ar) অসমীয়া (as) asturianu (ast) беларуская (be) български (bg) brezhoneg (br) català (ca) Deutsch (de) Ελληνικά (el) español (es) eesti (et) euskara (eu) فارسی (fa) suomi (fi) français (fr) Frysk (fy) galego (gl) हिन्दी (hi) hrvatski (hr) magyar (hu) Bahasa Indonesia (id) italiano (it) 日本語 (ja) ქართული (ka) 한국어 (ko) Lëtzebuergesch (lb) latviešu (lv) македонски (mk) मराठी (mr) Bahasa Melayu (ms) Nederlands (nl) norsk (no) occitan (oc) polski (pl) português (pt) português do Brasil (pt-br) русский (ru) slovenščina (sl) shqip (sq) српски (ћирилица) (sr-ec) srpski (latinica) (sr-el) svenska (sv) ไทย (th) Türkçe (tr) українська (uk) Tiếng Việt (vi) ייִדיש (yi) 中文(简体) (zh-hans) 中文(繁體) (zh-hant) 中文(香港) (zh-hk) Translate! [
View ]
AddSectionButton is a JavaScript extension that appends an "Add Section" button to the Edit dropdown that creates a new section for the user to edit, much like on talk pages.
Installation
Add this to MediaWiki:ImportJS :
dev:AddSectionButton/code.js
importArticles:
Add this JavaScript on your wiki (or add the highlighted text to your existing import statement):
importArticles ({ type : 'script' , articles : [ 'u:dev:MediaWiki:AddSectionButton/code.js' , ] });
Local:
Special:MyPage/common.js
Importing multiple scripts? This quick guide shows how to combine the imports. For personal use, note that personal JS must be enabled for your account. If the script requires configuration through MediaWiki:Common.js for sitewide use, don't forget to contact Fandom Staff to get it enabled on your wiki, if it isn't already enabled.
Customization
The text of the button can be customized through the following code:
window . AddSectionButtonText = 'test' ;
Replace test with the desired text. The customized text must be placed before the import, or else the button will use its default text.
Text above can be found
here (edit )