Template:Mediawiki

From FORwiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '{{SERVERNAME}} {{ #ifeq: {{SERVERNAME}} | www.mediawiki.org | {{{1}}}}}} | [http://www.mediawiki.org/wiki/{{urlencode:{{{1}}}}} {{{2|{{{1}}}}}}] }}<noinclude>...')
 
(4 intermediate revisions not shown)
Line 1: Line 1:
-
{{SERVERNAME}}
 
-
 
{{ #ifeq:
{{ #ifeq:
   {{SERVERNAME}}
   {{SERVERNAME}}
-
| www.mediawiki.org
+
| forwiki.eu
| [[{{{1}}}|{{{2|{{{1}}}}}}]]
| [[{{{1}}}|{{{2|{{{1}}}}}}]]
-
| [http://www.mediawiki.org/wiki/{{urlencode:{{{1}}}}} {{{2|{{{1}}}}}}]
+
| [http://forwiki.eu/{{urlencode:{{{1}}}}} {{{2|{{{1}}}}}}]
}}<noinclude>
}}<noinclude>
----
----
This template links to a page on  from the [[Help:Contents|Help pages]]. The template has two parameters:
This template links to a page on  from the [[Help:Contents|Help pages]]. The template has two parameters:
-
# Pagename, optionally preceded by an interwiki link prefix valid on mediawiki.org
+
# Pagename, optionally preceded by an interwiki link prefix valid on forwiki.eu
# (optional) Link description
# (optional) Link description
{{ #ifeq:
{{ #ifeq:
{{SERVERNAME}}
{{SERVERNAME}}
-
| www.mediawiki.org
+
| forwiki.eu
-
| This is so that the public domain help pages - which can be freely copied and included in other sites - have correct links to Mediawiki:
+
| This is so that the public domain help pages - which can be freely copied and included in other sites - have correct links to Foresight Wiki:
* on external sites, it creates an external link
* on external sites, it creates an external link
-
* on Mediawiki, it creates an internal or interwiki link
+
* on Foresight Wiki, it creates an internal or interwiki link
-
 
+
-
'''All''' links from the Help namespace to other parts of the mediawiki.org wiki should use this template.}}
+
-
 
+
-
Demo of interwiki link:
+
-
 
+
-
<nowiki>
+
-
{{mediawiki|m:Help:Calculation|Help:Calculation}}</nowiki> gives either <nowiki>[[m:Help:Calculation|Help:Calculation]] or [http://www.mediawiki.org/wiki/m%3AHelp%3ACalculation Help:Calculation]</nowiki>, rendered as [[m:Help:Calculation|Help:Calculation]] or [http://www.mediawiki.org/wiki/m%3AHelp%3ACalculation Help:Calculation], respectively.
+
 +
'''All''' links from the Help namespace to other parts of the Foresight Wiki should use this template.}}
 +
</noinclude>
 +
<noinclude>
 +
[[Category:Templates]]
</noinclude>
</noinclude>

Current revision as of 00:37, 3 December 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 forwiki.eu
  2. (optional) Link description
Personal tools