Template:Mdnbox/doc: Difference between revisions
(.) |
|||
Line 58: | Line 58: | ||
===Web Platform=== | ===Web Platform=== | ||
;<big>wpla</big> | ;<big>wpla</big> | ||
MDN have documentation for all | MDN have documentation for all the web platforms used by Mozilla and Mozilla products. You can choose to link to a certain platform, or to the overview page for the web technologies you may find in the Mozilla projects you work with, by entering the parameter <code>wpla</code> and set it to one of the values in the table '''Platform codes''' below. | ||
;Usage: | ;Usage: | ||
Line 84: | Line 84: | ||
| mml || MathML || | | mml || MathML || | ||
|- | |- | ||
| all || ''Web technology for developers'' || for all other web platforms | | all || overview page: <br>''Web technology for developers'' || for all other web platforms | ||
|} | |} | ||
Revision as of 12:02, 28 November 2014
Usage
{{mdnbox}} produces a right-hand adjusted, floating message box, telling the reader there are documents on a certain subject on Mozilla Developer Network (MDN).
Parameters
There are 3 named parameters (see the table below), none of which is required for the template to work.
Parameter | Description |
---|---|
zone |
MDN zone |
wpla |
MDN web platform |
tool |
MDN developer tool |
- Copy-paste template
{{mdnbox|zone= |wpla= |tool= }}
MDN zone
- zone
MDN sort the major Mozilla application projects into "zones". You can choose to link to a certain zone, or to the overview page for Mozilla projects, by entering the parameter zone
and set it to one of the values in the table Zone codes below. In addition to the zones specified at MDN, I have added a few common applications.
- Usage
{{mdnbox|zone=zone code}}
Zone codes
Value | MDN zone | Comment |
---|---|---|
add | Add-ons | |
app | Apps | |
cal | Calendar/Lightning | |
ff | Firefox | |
ffa | Firefox for Android | |
fos | Firefox OS | |
fxa | Firefox Accounts | |
mp | Marketplace | |
per | Persona | |
tb | Thunderbird | |
moz | Mozilla | for all other Mozilla projects |
Web Platform
- wpla
MDN have documentation for all the web platforms used by Mozilla and Mozilla products. You can choose to link to a certain platform, or to the overview page for the web technologies you may find in the Mozilla projects you work with, by entering the parameter wpla
and set it to one of the values in the table Platform codes below.
- Usage
{{mdnbox|wpla=platform code}}
Platform codes
Value | Web platform | Comment |
---|---|---|
api | APIs and DOM | |
css | CSS | |
css3 | CSS3 | |
graph | Graphics | |
html | HTML | |
html5 | HTML5 | |
js | JavaScript | |
mml | MathML | |
all | overview page: Web technology for developers |
for all other web platforms |
Developer Tools
- tool
In addition to documentation on applications designed to run as stand-alone programs, MDN have documentation for Mozilla's web tools and in-application developer tools. You can choose to link to a certain tool, or to the overview page for the developer tools in Firefox, by entering the parameter tool
and set it to one of the values in the table Tool codes below.
- Usage
{{mdnbox|tool=tool code}}
Tool codes
Value | Developer tool | Comment |
---|---|---|
appm | App Manager | |
jsdeb | JavaScript Debugger | |
pagin | Page Inspector | |
wcon | Web Console | |
all | Firefox Developer Tools | for all other developer tools |
Examples
(By parameter)
- No parameters
{{mdnbox}}
gives
- zone
{{mdnbox|zone=ff}}
gives
- wpla
{{mdnbox|wpla=html5}}
gives
- tool
{{mdnbox|tool=jsdeb}}
gives
- Combo
{{mdnbox|zone=ff|wpla=html5|tool=jsdeb}}
gives
See also
- {{mozlink}}