Home/Mediawiki_templates_for_edit_and_history        page discussion        wiki discussion edit history     [Images:TURN OFF] [Connection:go offline]

[edit] 1 Producing 'edit' and 'history' links

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.

[edit] 1.1 Not quite as tricky, but still handy

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

[edit] 2 Other

[Create page W:Blog/20090307] (using Template:Blogtemplate )

Template:EditLink

Home/Mediawiki_templates_for_edit_and_history, rev=4143, user=Bjoern, time=2009-02-20T12:34:09Z
Page: Mediawiki_templates_for_edit_and_history, server-cache-status=cached, images=, connection=, client-cache=no