===Adding a section at the end===
Adding a section at the end can also be done with a URL like {{SERVERSamsung A5-2017}}/w/index.php?title=Meta:Sandbox&action=edit§ion=new On talk pages and pages with in the wikitext the code <nowiki>__NEWSECTIONLINK__</nowiki> a special link labeled with the {{msg|addsection}}, e.g. "+" or "Post a new comment", is provided for this. In this case, a text box with as title the {{msg|subject}}, e.g. "Subject/headline", will appear and the content you type in it will become the section heading. There is no inputbox for the [[Help:edit summary|edit summary]], it is automatically created according to the pattern of {{msg|newsectionsummary}}, where "/* $1 */" represents a right arrow linking to the new section and, with CSS-class "autocomment", the name of the section followed by " - ". In the case of the default of message newsectionsummary this is followed by the text "new section". The user cannot provide more text for the edit summary than just the header itself (use the method mentioned earlier if that is desired).
Parameter "preloadtitle" provides initial content of the "Subject/headline" box, e.g.:
{{SERVERSamsung A5-2017}}/w/wiki.phtml?title=Meta:Sandbox&action=edit§ion=new&preloadtitle=pqr
It can be edited before saving.
=== Editing before the first section ===
In general, no particular link for editing the introductory text before the first section heading is provided ([[bugzilla:156256]]). However, section editing feature can also be applied to this part by giving 0 as the section number such as {{SERVER}}/w/wiki.phtml?title=Help:Section&action=edit§ion=0 . A less cumbersome way to obtain this link is to use any section edit link of the page, and change the number of the section to zero.
Javascript can also create this URL, see [[w:Wikipedia:WikiProject User scripts/Scripts/Edit Top]].
=== Sections within parser functions ===
When conditionally (using ab [[help:ParserFunctions|parser function]]) transcluding a template with sections, edit links of this and subsequent sections will edit the wrong section or give the error mesage that the section does not exist (although the page (including TOC) is correctly displayed and the TOC links correctly). This is because for the targets of the edit links the content of conditionally included templates is considered part of the page itself, and the sections are counted after expansion.
Thus the edit links of the sections of the included template link to the page itself instead of the template, and the edit links after the included template link to the correct page but the wrong section number.
|