FANDOM


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

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.

This would work:

window.AddSectionButtonText = "Add new section";
importArticles({
    type: 'script',
    articles: [
     'u:dev:MediaWiki:AddSectionButton/code.js'
    ]
});

This would NOT work:

importArticles({
    type: 'script',
    articles: [
     'u:dev:MediaWiki:AddSectionButton/code.js'
    ]
});
 
window.AddSectionButtonText = "Add new section";


Text above can be found here (edit)
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+