Template

Mwxlink/doc

From Joomla! Documentation

< Template:Mwxlink
Revision as of 04:35, 4 May 2008 by CirTap (talk | contribs) (→‎Usage)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is a documentation subpage for Template:Mwxlink.
It contains usage information, categories and other content that is not part of the original template page.
To view the template page itself, see Template:Mwxlink.

Generates a local download link for an Extension used on this server and a link to its homepage at mediawiki.org

Usage[edit]

  • {{mwxlink|filename}} with homepage link, label "Info"
  • {{mwxlink|filename|pagename}} using pagename as homepage link and label
  • {{mwxlink|filename|-}} no homepage link
Parameters
Parameter Name Parameter Description req./opt.
{{{1}}} Extension name, also used for the .tgz archive Required.
{{{2|}}} Overrides the extension's pagename at mediawiki.org/wiki/Extension: which defaults to param #1, the extension name. A value of '-' prevents this behavior in case the extension has no such "official" homepage. Optional.
{{{3|}}} An alternate caption for the homepage link. If 2 is '-', adds a note Optional.

Examples[edit]

Extension name, archive and homepage are idential (typical case)

{{mwxlink|Cite}}
gives Cite.tar.gz   - Info

Extension has no homepage @ mediawiki. A notice is provided as param #3

{{mwxlink|Footnote|-|see Cite info}}
gives Footnote.tar.gz see Cite info

The name of the homepage differes from the extension name and its archive.

{{mwxlink|Interwiki|Special_page_to_work_with_the_interwiki_table}}
gives Interwiki.tar.gz   - Info