Template:Mdnbox/doc: Difference between revisions
No edit summary |
(.) |
||
Line 5: | Line 5: | ||
==Parameters== | ==Parameters== | ||
There are | There are 3 named parameters (see the table below), none of which is required for the template to work. | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Parameter !! Description | ! Parameter !! Description | ||
|- | |- | ||
| <code>zone</code> || MDN zone | | <code>zone</code> || MDN zone | ||
Line 21: | Line 19: | ||
;<big>Copy-paste template</big> | ;<big>Copy-paste template</big> | ||
* <code><nowiki>{{mdnbox | * <code><nowiki>{{mdnbox|zone= |wpla= |tool= }}</nowiki></code> | ||
===MDN zone=== | ===MDN zone=== | ||
Line 140: | Line 127: | ||
;<big>tool</big> | ;<big>tool</big> | ||
<code><nowiki>{{mdnbox|tool=jsdeb}}</nowiki></code> gives | <code><nowiki>{{mdnbox|tool=jsdeb}}</nowiki></code> gives | ||
<br><br><br><br> | <br><br><br><br> | ||
{{mdnbox|zone=ff|wpla=html5|tool=jsdeb}} | {{mdnbox|zone=ff|wpla=html5|tool=jsdeb}} |
Revision as of 21:36, 27 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 of the web platform 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 | 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}}