Okay, I figured out how to do it myself, and here is the solution so you can have edit buttons on the section headers, like Wikipedia.
Open up the following file in a text editor.
"\dokuwiki\inc\parser\handler.php"
Near line 110 you will find this:
if ($level<=$conf['maxseclevel']) {
$this->_addCall('section_edit',array($this->status['section_edit_start'], $pos-1, $this->status['section_edit_level'], $this->status['section_edit_title']), $pos);
$this->status['section_edit_start'] = $pos;
$this->status['section_edit_level'] = $level;
$this->status['section_edit_title'] = $title;
}
Replace the above with this:
if ($level<=$conf['maxseclevel']) {
$this->status['section_edit_start'] = $pos;
$this->status['section_edit_level'] = $level;
$this->status['section_edit_title'] = $title;
$this->_addCall('section_edit',array($this->status['section_edit_start'], $pos-1, $this->status['section_edit_level'], $this->status['section_edit_title']), $pos);
}
Save and close the PHP file, and reload an article on your wiki -- and voila! you have successfully "modded" DokuWiki to have edit buttons near every header, to edit the corresponding section.
Hope this helps.