Template:Mediawiki: Difference between revisions

From SoylentNews
Jump to navigation Jump to search
(Undo revision 249882 by Splarka (Talk). urlencode replaces space with '+', causing the link to fail. if we can't use #replace, it''s broken.)
(No difference)

Revision as of 19:41, 17 November 2009

{{{1}}}


This template links to a page on from the Help pages. The template has two parameters:

  1. Pagename, optionally preceded by an interwiki link prefix valid on mediawiki.org
  2. (optional) Link description


Spaces in Page Titles

These must be replaced with underscores, otherwise the urlencoding mangles them and you get a page not found error on mediawiki.org.

So need {{Mediawiki|Page_Title}} not {{Mediawiki|Page Title}}

Demo of interwiki link

{{mediawiki|m:Help:Calculation|Help:Calculation}} gives either [[m:Help:Calculation|Help:Calculation]] or [http://www.mediawiki.org/wiki/m%3AHelp%3ACalculation Help:Calculation], rendered as Help:Calculation or Help:Calculation, respectively.