Template:Mdnbox/doc: Difference between revisions
(Added category.) |
|||
(9 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
__NOTOC__ | __NOTOC__ | ||
==Usage== | ==Usage== | ||
{{tl|mdnbox}} produces a right-hand adjusted, floating message box, telling the reader there | {{tl|mdnbox}} produces a right-hand adjusted, floating message box, telling the reader there are documents on a certain subject on [https://developer.mozilla.org Mozilla Developer Network] (MDN). | ||
==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" | ||
Line 11: | Line 11: | ||
! Parameter !! Description | ! Parameter !! Description | ||
|- | |- | ||
| | | <code>zone</code> || MDN zone | ||
|- | |- | ||
| <code> | | <code>wpla</code> || MDN web platform | ||
|- | |- | ||
| <code> | | <code>tool</code> || MDN developer tool | ||
|} | |||
;<big>Copy-paste template</big> | |||
* <code><nowiki>{{mdnbox|zone= |wpla= |tool= }}</nowiki></code> | |||
===MDN zone=== | |||
;<big>zone</big> | |||
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 <code>zone</code> 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: | |||
* <code><nowiki>{{mdnbox|</nowiki>zone=''zone code''<nowiki>}}</nowiki></code> | |||
====Zone codes==== | |||
{| class="wikitable" | |||
|- | |- | ||
! Value !! MDN zone !! Comment | |||
|- | |- | ||
| | | add || Add-ons || | ||
|- | |- | ||
| | | app || Apps || | ||
| | |- | ||
| cal || Calendar/Lightning || | |||
|- | |||
| ff || Firefox || | |||
|- | |||
| ffa || Firefox for Android || | |||
|- | |||
| fos || Firefox OS || | |||
|- | |||
| fxa || Firefox Accounts || Will eventually replace Persona | |||
|- | |- | ||
| mp || Marketplace || | |||
|- | |- | ||
| | | per || Persona || Will be incorporated into Firefox Accounts | ||
|- | |- | ||
| | | tb || Thunderbird || | ||
|- | |- | ||
| | | moz || Mozilla || For all other Mozilla projects | ||
|} | |} | ||
=== | ===Web Platform=== | ||
;<big> | ;<big>wpla</big> | ||
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: | ||
* <code><nowiki>{{mdnbox|</nowiki>'' | * <code><nowiki>{{mdnbox|</nowiki>wpla=''platform code''<nowiki>}}</nowiki></code> | ||
=== | ====Platform codes==== | ||
{| class="wikitable" | |||
|- | |||
! Value !! Web platform !! Comment | |||
|- | |||
| api || APIs and DOM || | |||
|- | |||
| css || CSS || | |||
|- | |||
| css3 || CSS3 || | |||
|- | |||
| graph || Graphics || | |||
|- | |||
| html || HTML || | |||
|- | |||
| html5 || HTML5 || | |||
|- | |||
| js || JavaScript || | |||
|- | |||
| mml || MathML || | |||
|- | |||
| all || To the overview page <br>''Web technology for developers'' || For all other web platforms | |||
|} | |||
===Developer Tools=== | |||
;<big>tool</big> | |||
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 <code>tool</code> and set it to one of the values in the table '''Tool codes''' below. | |||
== | |||
;<big> | |||
;Usage: | ;Usage: | ||
* <code><nowiki>{{ | * <code><nowiki>{{</nowiki>mdnbox|tool=''tool code''<nowiki>}}</nowiki></code> | ||
====Tool codes==== | |||
{| class="wikitable" | |||
|- | |||
==== | ! Value !! Developer tool !! Comment | ||
|- | |||
| appm || App Manager || Firefox OS | |||
|- | |||
| jsdeb || JavaScript Debugger || | |||
|- | |||
| pagin || Page Inspector || | |||
|- | |||
| wcon || Web Console || | |||
|- | |||
| all || To the overview page <br>''Firefox Developer Tools'' || For all other developer tools | |||
|} | |||
==Examples== | ==Examples== | ||
Line 106: | Line 115: | ||
;<big>No parameters</big> | ;<big>No parameters</big> | ||
<code><nowiki>{{mdnbox}}</nowiki></code> gives | <code><nowiki>{{mdnbox}}</nowiki></code> gives | ||
<br> | <br><br><br><br> | ||
{{mdnbox|zone=ff}} | |||
;<big>zone</big> | |||
<code><nowiki>{{mdnbox|zone=ff}}</nowiki></code> gives | |||
<br><br><br> | <br><br><br><br> | ||
{{mdnbox| | {{mdnbox|wpla=html5}} | ||
;<big> | ;<big>wpla</big> | ||
<code><nowiki>{{mdnbox| | <code><nowiki>{{mdnbox|wpla=html5}}</nowiki></code> gives | ||
<br><br><br> | <br><br><br><br> | ||
{{mdnbox|tool=jsdeb}} | |||
< | ;<big>tool</big> | ||
<code><nowiki>{{mdnbox|tool=jsdeb}}</nowiki></code> gives | |||
<br><br><br><br> | |||
{{mdnbox|zone=ff|wpla=html5|tool=jsdeb}} | |||
<big> | ;<big>Combo</big> | ||
<code><nowiki>{{mdnbox|zone=ff|wpla=html5|tool=jsdeb}}</nowiki></code> gives | |||
<br> | |||
<br><br><br> | |||
{{mdnbox| | |||
<big> | |||
<code><nowiki>{{mdnbox| | |||
<br><br><br> | |||
{{mdnbox| | |||
<big> | |||
<code><nowiki>{{mdnbox| | |||
==See also== | ==See also== | ||
* {{tl|mozlink}} | * {{tl|mozlink}} | ||
* {{tl|sumobox}} | |||
<includeonly> | <includeonly> | ||
[[Category:Mozilla link templates]] | [[Category:Mozilla link templates]] | ||
[[Category:Message box templates]] | |||
[[Category:Mozilla-specific message boxes]] | [[Category:Mozilla-specific message boxes]] | ||
</includeonly> | </includeonly> |
Latest revision as of 09:48, 29 January 2015
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 | Will eventually replace Persona |
mp | Marketplace | |
per | Persona | Will be incorporated into Firefox Accounts |
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 | To the 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 | Firefox OS |
jsdeb | JavaScript Debugger | |
pagin | Page Inspector | |
wcon | Web Console | |
all | To the overview page 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