Template:MDN: Difference between revisions

m
change MDC to MDN
(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 Center]].   
Use this to link to a page in the [[MDN|Mozilla Developer Network]].   
== Usage ==
== Usage ==
<nowiki>{{</nowiki>MDC | ''path/to/page'' | ''optional link title'' }}
<nowiki>{{</nowiki>MDN | ''path/to/page'' | ''optional link title'' }}


The first parameter is the path of the page's URL in the MDC, after the <tt>developer.mozilla.org/en/</tt> part.
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>{{MDC|Migrating_from_Internal_Linkage_to_Frozen_Linkage|frozen linkage}}</nowiki>
   <nowiki>{{MDN|Migrating_from_Internal_Linkage_to_Frozen_Linkage|frozen linkage}}</nowiki>
produces
produces
: {{MDC|Migrating_from_Internal_Linkage_to_Frozen_Linkage|frozen linkage}}
: {{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>MDC |'''../fr/'''Firefox_3.6_pour_les_développeurs |Firefox 3.6 }}
   <nowiki>{{</nowiki>MDN |'''../fr/'''Firefox_3.6_pour_les_développeurs |Firefox 3.6 }}
produces {{MDC |../fr/Firefox_3.6_pour_les_développeurs |Firefox 3.6}}
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}}}}}}]
Confirmed users
396

edits