Is there a way in WikiText to make a link to the section edit for the spot where the markup is in a page?
Yes - you can set the 'section' URL parameter equal to the section number, which you will have to know in advance (and will change if sections are inserted or deleted prior to the target section).
For example, you could have a template with this text (say "Template:editsection"):
<span class="plainlinks">[{{SERVER}}{{SCRIPTPATH}}/index.php?title={{FULLPAGENAMEE}}&action=edit§ion={{{1}}} edit this section]</span>
Then you'd call it like this:
{{editsection|2}}
but in long sections it might be nice to have it in the box.
It's probably better for readability a maintenance to just break up long sections into subsections, but I'm sure you've already thought of this :)
-- Jim R. Wilson (jimbojw)
On 3/5/07, Jim Hu jimhu@tamu.edu wrote:
Is there a way in WikiText to make a link to the section edit for the spot where the markup is in a page?
I want to have a template that puts a box in the page that says "This section needs editing" and have the box link to the Section Edit. Yes, I know that the edit link is right there, but in long sections it might be nice to have it in the box.
Jim
Jim Hu Associate Professor Dept. of Biochemistry and Biophysics 2128 TAMU Texas A&M Univ. College Station, TX 77843-2128 979-862-4054
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l