Template:Mediawiki
From FORwiki
(Difference between revisions)
(Created page with '{{SERVERNAME}} {{ #ifeq: {{SERVERNAME}} | www.mediawiki.org | {{{1}}}}}} | [http://www.mediawiki.org/wiki/{{urlencode:{{{1}}}}} {{{2|{{{1}}}}}}] }}<noinclude>...') |
|||
Line 1: | Line 1: | ||
- | |||
- | |||
{{ #ifeq: | {{ #ifeq: | ||
{{SERVERNAME}} | {{SERVERNAME}} | ||
- | | | + | | forwiki.eu |
| [[{{{1}}}|{{{2|{{{1}}}}}}]] | | [[{{{1}}}|{{{2|{{{1}}}}}}]] | ||
- | | [http:// | + | | [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 | + | # Pagename, optionally preceded by an interwiki link prefix valid on forwiki.eu |
# (optional) Link description | # (optional) Link description | ||
{{ #ifeq: | {{ #ifeq: | ||
{{SERVERNAME}} | {{SERVERNAME}} | ||
- | | | + | | 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 | + | | 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 | + | * on Foresight Wiki, it creates an internal or interwiki link |
- | '''All''' links from the Help namespace to other parts of the | + | '''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:// | + | {{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
This template links to a page on from the Help pages. The template has two parameters:
- Pagename, optionally preceded by an interwiki link prefix valid on forwiki.eu
- (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.