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>...')
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.}}
+
'''All''' links from the Help namespace to other parts of the forwiki.eu wiki should use this template.}}
Demo of interwiki link:
Demo of interwiki link:
<nowiki>
<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.  
+
{{mediawiki|m:Help:Calculation|Help:Calculation}}</nowiki> gives either <nowiki>[[m:Help:Calculation|Help:Calculation]] or [http://forwiki.eu/wiki/m%3AHelp%3ACalculation Help:Calculation]</nowiki>, rendered as [[m:Help:Calculation|Help:Calculation]] or [http://forwiki.eu/wiki/m%3AHelp%3ACalculation Help:Calculation], respectively.  
</noinclude>
</noinclude>

Revision as of 12:41, 7 October 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


Demo of interwiki link:

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


Personal tools