Jump to content

Template talk:JavaScript

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Technical 13 (talk | contribs) at 14:57, 9 January 2014 (Support/Oppose: re). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconComputer science Template‑class
WikiProject iconThis template is within the scope of WikiProject Computer science, a collaborative effort to improve the coverage of Computer science related articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Things you can help WikiProject Computer science with:

WikiProject iconComputing Template‑class
WikiProject iconThis template is within the scope of WikiProject Computing, a collaborative effort to improve the coverage of computers, computing, and information technology on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
WikiProject iconSoftware: Computing Template‑class
WikiProject iconThis template is within the scope of WikiProject Software, a collaborative effort to improve the coverage of software on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.
TemplateThis template does not require a rating on Wikipedia's content assessment scale.
Taskforce icon
This template is supported by WikiProject Computing.

Move proposal on January 9, 2014

Template:JavaScriptTemplate: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)[reply]

Discussion

Survey

Support

  1. As nominator - Technical 13 (talk) 05:43, 9 January 2014 (UTC)[reply]

Oppose

Support/Oppose

  • Thanks for the clarification. Your nomination rationale makes it look like creating an edit request template. Making {{JavaScript}} a JS formatting template is a good idea. However, the green/red option seems mandatory, this should not be the case, if it is to provide generic javascript formatting functionality. Can it just be plain clear if it doesn't specify add or remove? -- 70.50.148.122 (talk) 08:16, 9 January 2014 (UTC)[reply]
{{JavaScript|
   /* section */
   var section = true;
   if(!section){
      alert("TEXTALERT");
   }
}}
   /* section */
   var section = true;
   if(!section){
      alert("TEXTALERT");
   }