Template talk:JavaScript
Appearance
Move proposal on January 9, 2014
![]() | It has been proposed in this section that Template:JavaScript be renamed and moved to Template:JavaScript navbox. A bot will list this discussion on the requested moves current discussions subpage within an hour of this tag being placed. The discussion may be closed 7 days after being opened, if consensus has been reached (see the closing instructions). Please base arguments on article title policy, and keep discussion succinct and civil. Please use {{subst:requested move}} . Do not use {{requested move/dated}} directly. |
Template:JavaScript → Template:JavaScript navbox – To make room for a new Template:JavaScript that can be used as a wrapper for edit requests to .js pages with source highlighting and background coloring. Examples would look like:
{{JavaScript|remove|
/* section */
var section = true;
if(!section){
alert("LIES!");
}
}}
resulting in:
/* section */
var section = true;
if(!section){
alert("LIES!");
}
or
{{JavaScript|add|
/* section */
var section = true;
if(section){
alert("You've spoken the truth!");
}
}}
resulting in:
/* section */
var section = true;
if(section){
alert("You've spoken the truth!");
}
Thanks for your consideration Technical 13 (talk) 05:42, 9 January 2014 (UTC) Technical 13 (talk) 05:42, 9 January 2014 (UTC)