How do you produce links for page/discussion/edit/history etc within wiki text? The basic tool is fullurl c.f. http://meta.wikimedia.org/wiki/Help:Magic_words:
{{fullurl:{{FULLPAGENAME}}|action=edit}}
gives
http://www.ict4e.net/wiki_source/index.php?title=Mediawiki_templates_for_edit_and_history&action=edit
You then package this
[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit] -> Edit
and remove the external link formatting:
[<span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit}} Edit]</span>] -> [Edit]
Some more examples:
Because this gets a bit difficult to type, here are some templates:
A more complicated example
{{Edit|Add comment.|page=talk|section=new|preload=Template:Edit/preload|editintro=Template:Edit/editintro}}
gives:
Add comment.
A very simple template: Template:Backtoarticle. Can be used on talk pages to link back to the article.
[Create page W:Blog/20090307] (using Template:Blogtemplate )