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 05:42, 9 January 2014 (Move proposal on January 9, 2014: new section). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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]