Template:Mozlink

From MozillaWiki
Jump to: navigation, search

www.mozilla.org

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

{{mozlink}} produces a custom link to a website or webpage under the mozilla.org domain.

Parameters

There are 2 unnamed and 2 named parameters, none of which is strictly required.

Parameter Description
1 mozilla.org subdomain; unnamed parameter
2 Custom link text; unnamed parameter
lang Mozilla locale code
path Path to page under mozilla.org, e.g. …/firefox/developer

Syntax

The template's syntax is

  • {{mozlink|subdomain |text |lang= |path= }}
Copy-paste templates
Size Template code
Basic use {{mozlink|subdomain }}
Link text {{mozlink|subdomain |text }}
Common use {{mozlink|subdomain |text |lang= }}
Full {{mozlink|subdomain |text |lang= |path= }}

Optional parameters

1

Mozilla subdomain

The template will, as default, link to the main Mozilla website (www.mozilla.org), but it is possible to specify a subdomain. For example, by setting this parameter to Unknown extension tag "var", your link will point to the Mozilla Add-ons site (addons.mozilla.org). If the parameter is left unused, the subdomain will default to www. The parameter is unnamed, so no parameter name needs to be entered.

List of Mozilla subdomains
Subdomains
advocacy eideticker moztrap
affiliates etherpad mxr
air ftp nightly
addons gitmirror people
www-archive graphs planet
blog hacks pontoon
bugzilla hg pulse
browserquest krakenbenchmark quality
bzr l10n reps
careers ldap sendto
developer lists studentreps
dnt-dashboard localize summit
dnt mail support
education mobilepartners telemetry
Usage
  • {{mozlink|1}}

2

Custom link text

Custom text string that will show as link text. The parameter is unnamed, so no parameter name needs to be entered.

Note
  • If this parameter is left out, the link will use the other parameters to provide the link text.
Usage
  • {{mozlink|2}}

lang

Language (locale) code

It is possible to specify a Mozilla locale for the link, defined as a locale code (e.g. Unknown extension tag "samp" for German or Unknown extension tag "samp" for Swedish). If this parameter is left out, the link will be redirected at the target to either the locale of the user's Firefox browser, or (if there is no translation of that webpage for the user's locale) to the English default locale (Unknown extension tag "samp"). An up-to-date list of Mozilla's web locale codes can be found at the Mozilla Web Localization Dashboard.

Usage
  • {{mozlink|lang=locale code}}

path

Path to page

To link to a webpage under the websites base address, you use the path parameter. To, e.g., link to the Firefox Developer Edition page under mozilla.org (www.mozilla.org/firefox/developer), you enter |path=Unknown extension tag "var".

The name you type in must be the same as the page's address path in the location bar. If you, for example, want to link to the login page for Bugzilla (Unknown extension tag "samp"), you need to enter |path=Unknown extension tag "var" as the parameter value.

Usage
  • {{mozlink|path=path to page}}

Examples

Correct use
Parameter What you write What you see
No parameters {{mozlink}} www.mozilla.org
|1 {{mozlink|bugzilla}} bugzilla.mozilla.org
|2 {{mozlink|bugzilla|Go to Bugzilla}} Go to Bugzilla
|lang {{mozlink||Mozilla's website|lang=sv-SE}} Mozilla's website (sv-SE)
|path {{mozlink||Firefox Developer Edition|path=firefox/developer}} Firefox Developer Edition
Combo {{mozlink|addons|„Rainbow“ Farbwerkzeuge|lang=de|path=firefox/addon/rainbow-color-tools}} „Rainbow“ Farbwerkzeuge (de)

See also