Confirmed users
396
edits
(copy of Template:MDC since I don't have rights to Special/MovePage) |
m (change MDC to MDN) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
Use this to link to a page in the [[Mozilla Developer | Use this to link to a page in the [[MDN|Mozilla Developer Network]]. | ||
== Usage == | == Usage == | ||
<nowiki>{{</nowiki> | <nowiki>{{</nowiki>MDN | ''path/to/page'' | ''optional link title'' }} | ||
The first parameter is the path of the page's URL in the | The first parameter is the path of the page's URL in the MDN, after the <tt>developer.mozilla.org/en/</tt> part. | ||
The optional second parameter is the text for the link. | The optional second parameter is the text for the link. | ||
Line 10: | Line 10: | ||
Sample: | Sample: | ||
<nowiki>{{ | <nowiki>{{MDN|Migrating_from_Internal_Linkage_to_Frozen_Linkage|frozen linkage}}</nowiki> | ||
produces | produces | ||
: {{ | : {{MDN|Migrating_from_Internal_Linkage_to_Frozen_Linkage|frozen linkage}} | ||
== Notes == | == Notes == | ||
It assumes the link is to the "en"(glish) namespace. You can use ../''language_code'' to refer to some other page, e.g. | It assumes the link is to the "en"(glish) namespace. You can use ../''language_code'' to refer to some other page, e.g. | ||
<nowiki>{{</nowiki> | <nowiki>{{</nowiki>MDN |'''../fr/'''Firefox_3.6_pour_les_développeurs |Firefox 3.6 }} | ||
produces {{ | produces {{MDN |../fr/Firefox_3.6_pour_les_développeurs |Firefox 3.6}} | ||
</noinclude>[https://developer.mozilla.org/en/{{{1}}} {{{2|{{{1}}}}}}] | </noinclude>[https://developer.mozilla.org/en/{{{1}}} {{{2|{{{1}}}}}}] |