Mediawiki templates for edit and history

1 Producing 'edit' and 'history' linksEdit

How do you produce links for page/discussion/edit/history etc within wiki text? The basic tool is fullurl c.f.



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:

  • Two simple templates:
  • Two simple to use, but somewhat more complicated to write and understand templates:

A more complicated example

{{Edit|Add comment.|page=talk|section=new|preload=Template:Edit/preload|editintro=Template:Edit/editintro}}


Add comment.

1.1 Not quite as tricky, but still handyEdit

A very simple template: Template:Backtoarticle. Can be used on talk pages to link back to the article.

2 OtherEdit