Template talk:JavaScript

Move proposal on January 9, 2014

The following discussion is an archived discussion of a requested move. Please do not modify it. Subsequent comments should be made in a new section on the talk page. Editors desiring to contest the closing decision should consider a move review. No further edits should be made to this section.

The result of the move request was: Not moved. EdJohnston (talk) 00:10, 17 January 2014 (UTC)[reply]



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: (moved below my signature for transcluding reasons) Thanks for your consideration Technical 13 (talk) 05:42, 9 January 2014 (UTC) Technical 13 (talk) 05:42, 9 January 2014 (UTC)[reply]

Discussion

  • Examples: (moved from above)
This would...
{{JavaScript|remove|
   /* section */
   var section = true;
   if(!section){
      alert("LIES!");
   }
}}
...result in:
   /* section */
   var section = true;
   if(!section){
      alert("LIES!");
   }

or

This would...
{{JavaScript|add|
   /* section */
   var section = true;
   if(section){
      alert("You've spoken the truth!");
   }
}}
...result in:
   /* section */
   var section = true;
   if(section){
      alert("You've spoken the truth!");
   }

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");
   }
  • I am unclear why a new template's needed. It can be done with the syntaxhighlight tag, as seen in the examples above. Though the background colours are unhelpful I think for syntax highlighted code, which makes the tag even simpler. Perhaps the proposer can point to some discussions where formatted code with brightly coloured backgrounds might have been useful. But even given all that there's nothing stopping you creating a template now, and calling it something else. Then if it gets heavily used and becomes common then there might be a case for it taking the name of this one. Until then oppose.--JohnBlackburnewordsdeeds 22:03, 9 January 2014 (UTC)[reply]
  • Sure John. I got the idea for the formatting (with the background colors) from:
There are a lot of cases where the coloring would useful to {{Edit protected}} responders, and a simple template name like this will make it easier for all to remember to use. The template would make it easier to remember how to put it in the syntaxhighlight box (which can be hard for less technical people to remember, heck I even had a hard time remembering it for a while and because of the pattern of keys to type it out was (and still do) always missing characters (I had to add it to my browser's spellcheck dictionary to make sure I had it right)). Using a template for this will also make it easy to add a classname that will quickly allow people to opt out of seeing the formatting (or even just the background color) or modify the formatting to suite their needs. Technical 13 (talk) 15:58, 10 January 2014 (UTC)[reply]
A few observations. First that's only two discussions, hardly many. I notice also the syntax there is considerably easier, using 'source', 'background' and colour names not hex, so easier to remember, and also works here.
if ( mw.config.get( 'wgIsProbablyEditable' ) === 'true' || mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Upload' ) {
which leads to perhaps the most important observation – that's Mediawiki, not English WP. So any template introduced here would not have helped with those discussions. I can't think of any case where someone will be rewriting the JS of en.wp on en.wp, so it would be unused. A more general temple, one supporting multiple languages, might be more useful. But then you've just recreated the source tag, giving editors another thing to learn. Better just to use the source tag.--JohnBlackburnewordsdeeds 16:15, 10 January 2014 (UTC)[reply]
Your "most important observation" is incorrect... That is right here on the English WP in the MediaWiki: namespace. Also, named colors are not supported by all browsers (albeit most do) and using the source tag is discouraged because as outlined in the Alternative <source> tag section of the extension's instruction page on mediawiki wiki, "...but <syntaxhighlight> avoids conflicts if your source code itself contains <syntaxhighlight lang=""> (for example XML)". Technical 13 (talk) 16:30, 10 January 2014 (UTC)[reply]
You are right, I misidentified it, that is on en.wp, one of very few in the MW namespace. it's maybe the one page, or one of a handful, where editors might be discussing JS code changes. And they've got by so far without using a template (and have used the source tag without problems).
So I stand by what I wrote earlier; there's nothing to stop you creating the template now but with a different name. Then if it becomes widely adopted and editors find the name hard to remember a discussion could be had over whether to move it here or elsewhere. But until then, with no evidence of it being needed and no evidence it has to be at this name, the current template should not be moved.--JohnBlackburnewordsdeeds 17:34, 10 January 2014 (UTC)[reply]
The above discussion is preserved as an archive of a requested move. Please do not modify it. Subsequent comments should be made in a new section on this talk page or in a move review. No further edits should be made to this section.

Editors

Is this meant to be a list of notable editors capable of editing JavaScript (with syntax highlighting, etc.) or editors that are written in JavaScript (or both)? If it is just meant to be JavaScript capable editors, I wonder about how notable some of those are and think the list could be considerably longer or we could try to beef up the notability of listed items. If on the other hand this is meant to be a list of JavaScript-based editors (as the linked comparison article seems to be about), I would say some of those are less appropriate, e.g., although Light Table it is indeed mostly written in JavaScript, the editor portion is actually just CodeMirror (which Brackets also uses). Assuming the latter (JavaScript-based editors), I contend that articles like Brackets should either be added or Light Table be removed. I favor adding Brackets and reorganizing such that both it and Light Table are under CodeMirror since their editor portion is not original.

This also means things like Microsoft Visual Studio and Microsoft Visual Studio Express would be deleted (they are not written in JavaScript) and Visual Studio Code and Visual Studio Team Services (formerly Visual Studio Online) should be organized under Monaco (which does not currently have an article). 50.53.1.33 (talk) 02:04, 25 March 2017 (UTC)[reply]

Hello
It seems you and me are working in a lot of common areas. So, I think a belated welcome is in order. :)
The criteria for inclusion is links to articles about editors that can edit JavaScript.
Please note that this template is a navbox. It only includes Wikipedia articles. Notable or not. (If you have concerns about the notability of a specific article, the correct place to discuss it is either its talk page, or WP:AfD. So, no Monaco!
Best regards,
Codename Lisa (talk) 10:26, 26 March 2017 (UTC)[reply]

Read other articles:

GKMI beralih ke halaman ini. Untuk GMKI, lihat Gerakan Mahasiswa Kristen Indonesia. Gereja Kristen Muria IndonesiaLogo GKMIPenggolonganMenonitModeratorPdt. Dr. Agus Wahyuning Mayanto, S.si. TeolWilayahIndonesia, SingapuraPendiriTee Siem TatDidirikan6 Desember 1920 Kudus, Jawa TengahUmat16.208 orangRohaniwan50 orang; dan 30 orang pendeta mudaMisionaris38 orang (Evangelis 8 orang; tenaga orientasi 30 orang)Nama lainGKMISitus web resmihttp://www.sinodegkmi.com/ Gereja Kristen Muria Indonesia (di...

 

 

Hirono 洋野町KotaprajaBalai Kota Hirono BenderaEmblemLokasi Hirono di Prefektur IwateHironoLokasi di JepangKoordinat: 40°24′30.7″N 141°43′7.3″E / 40.408528°N 141.718694°E / 40.408528; 141.718694Koordinat: 40°24′30.7″N 141°43′7.3″E / 40.408528°N 141.718694°E / 40.408528; 141.718694Negara JepangWilayahTōhokuPrefektur IwateDistrikKunohePemerintahan • WalikotaMasayoshi OkamotoLuas • Total...

 

 

Multi-use stadium in Wales, UK The OvalFull nameThe OvalLocationCaernarfon, Gwynedd, WalesCoordinates53°8′5″N 4°16′3″W / 53.13472°N 4.26750°W / 53.13472; -4.26750Capacity3,000SurfaceGrassTenantsCaernarvon Wanderers (1888–1891)Carnarvon Ironopolis (1894–1903)Caernarvon Colts (1903–1906)Caernarfon RWF (1903–1906)Carnarvon United 1906-1914Caernarvon Athletic (1919–1932)Caernarfon Town F.C. (1937-) The Oval is a multi-use stadium in Caernarfon, Wales....

German Cardinal of the Catholic Church (born 1956) His EminenceRainer Maria WoelkiCardinalArchbishop of CologneWoelki in 2019ChurchRoman Catholic ChurchArchdioceseCologneProvinceCologneAppointed11 July 2014Installed20 September 2014PredecessorJoachim MeisnerOther post(s)Cardinal-Priest of San Giovanni Maria Vianney (2012–)OrdersOrdination14 June 1985by Joseph HöffnerConsecration30 March 2003by Joachim MeisnerCreated cardinal18 February 2012by Pope Benedict XVIRankCardinal-PriestP...

 

 

GRU Generalnogo ShtabaGlavnoje Razvedyvatel'noje UpravlenijeГлавное Разведывательное УправлениеGRU Official emblem (since 2009)Informasi lembagaDibentukNovember 5, 1918, GRU since 1942Nomenklatur lembaga sebelumnya5th Department of the Russian Imperial Chief of StaffWilayah hukumPresident of RussiaKantor pusatKhoroshevskoye shosse 76, Khodinka, Moscow55°46′49.41″N 37°31′21.51″E / 55.7803917°N 37.5226417°E / 55.7803917; 37.52...

 

 

Albanian politician (1929–2009) Qirjako MihaliMinister of FinanceIn office1982–1984 Personal detailsBorn13 May 1929Korçë, AlbaniaDied7 April 2009 (aged 79)Milano, ItalyPolitical partyParty of LabourSignature Qirjako Mihali (13 May 1929 - 7 April 2009) was an Albanian politician of the Albanian Party of Labour. He was a candidate-member of the Politburo of the Party of Labour of Albania, Minister of Finance, and member of the Albanian Parliament.[1] Biography Mihali began his ca...

Prof. Hugo Junkers Prof. Hugo Junkers adalah seorang industriawan pesawat terbang berkebangsaan Jerman.[1] Dia lahir pada tanggal 3 Februari tahun 1859 di Rheidt, Prussia dan meninggal saat 3 Februari 1935 di Gauting, Munchen.[1][2] Junkers mendirikan pabrik pesawat di Dessau tahun 1910, pada tahun yang sama pula dia mematenkan desain sayap (pesawat) terbang.[2] Dia adalah orang yang merintis pembuatan pesawat udara dari bahan logam serta penerapan motor disel ...

 

 

Halaman ini berisi artikel tentang the American writer. Untuk other people with the same name, lihat James Baldwin (disambiguasi). James BaldwinBaldwin in 1969Lahir(1924-08-02)2 Agustus 1924New York CityMeninggal1 Desember 1987(1987-12-01) (umur 63)Saint-Paul-de-Vence, FranceKebangsaanAmericanPekerjaan Writer *novelist *poet *playwright *activist Tahun aktif1947–85 James Arthur Baldwin (2 Agustus 1924 – 1 Desember 1987) adalah penyair, novelis, dramawan, eseis, kri...

 

 

الهفوف الهفوف    الهفوف الهفوف موقع الهفوف تقسيم إداري البلد  السعودية منطقة المنطقة الشرقية ، الاحساء المسؤولون المحافظ سعود بن طلال بن بدر (محافظ الاحساء) خصائص جغرافية إحداثيات 25°26′17″N 49°35′13″E / 25.4380861°N 49.5868456°E / 25.4380861; 49.5868456 الارتفاع 155 متر  السك�...

Soyuz TMA-12M adalah sebuah penerbangan tahun 2014 ke Stasiun Antariksa Internasional. Ini mengangkut tiga anggota awak Ekspedisi 39 ke Stasiun Luar Angkasa Internasional. TMA-12M adalah penerbangan 121 dari pesawat ruang angkasa Soyuz sejak pertama tahun 1967 dan misi Soyuz ke-38 ke ISS. Soyuz merapat ke stasiun ruang angkasa untuk melayani sebagai kendaraan darurat sampai TMA-12M dijadwalkan kembali ke Bumi pada bulan September 2014. Setelah peluncuran yang sukses pada tanggal 25 Maret, do...

 

 

Christian college in Orange City, Iowa Not to be confused with Northwestern University. This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Northwestern College Iowa – news ...

 

 

82nd 24 Hours of Le Mans endurance race 2014 24 Hours of Le Mans Previous: 2013 Next: 2015 Index: Races | Winners Circuit de la Sarthe track Marcel Fässler, André Lotterer, and Benoît Tréluyer hoist the winners trophy during the podium ceremony Audi Sport Team Joest No. 2 Audi R18 e-tron quattro, Winner of the 2014 24 Hours of Le Mans Handprint's Winners 2014 in the Walk of fame at Le Mans The 82nd 24 Hours of Le Mans (French: 82e 24 Heures du Mans) was an 24-hour automobile endurance rac...

American musician (1938–2015) For other people with similar names, see Ben King (disambiguation). Ben E. KingKing performing in 2007Background informationBirth nameBenjamin Earl NelsonBorn(1938-09-28)September 28, 1938Henderson, North Carolina, U.S.OriginHarlem, New York, U.S.DiedApril 30, 2015(2015-04-30) (aged 76)Hackensack, New Jersey, U.S.GenresSoulR&Bpopdoo-wopOccupation(s)Singer, songwriter, record producerInstrument(s)VocalspianoYears active1958–2015LabelsAtco RecordsAtlan...

 

 

Japanese manga artist (born 1995) Kouji Miura三浦 糀Born (1995-03-28) 28 March 1995 (age 29)NationalityJapaneseOccupationManga artistKnown forBlue BoxI Love You, My Teacher Part of a series onAnime and manga Anime History Voice acting Companies Studios Original video animation Original net animation Fansub Fandub Lists Longest series Longest franchises Manga History Publishers International market Manga artist Doujinshi Alternative Gekiga Heta-uma New Wave Yonkoma Iconography Sca...

 

 

Airport in GazipaşaGazipasa–Alanya AirportGazipaşa-Alanya HavalimanıIATA: GZPICAO: LTFGSummaryAirport typePublicOwnerGeneral Directorate of State Airports (DHMİ)OperatorTAV AirportsServesGazipaşa, Antalya Province, TurkeyLocationGazipaşaOpened2010Elevation AMSL92 ft / 28 mCoordinates36°17′56″N 32°18′00″E / 36.29889°N 32.30000°E / 36.29889; 32.30000Websitegzpairport.comMapGZPLocation of airport in TurkeyShow map of TurkeyGZPGZP (Medite...

Ansicht des Haupteingangsbereichs Das Krematorium Wedding ist ein ehemaliges Krematorium auf dem Urnenfriedhof Gerichtstraße im Berliner Ortsteil Wedding, das von 1912 bis 2001 in Betrieb war. Das denkmalgeschützte Gebäude[1] beherbergt seit dem Herbst 2015 das interdisziplinäre Kulturquartier silent green. Inhaltsverzeichnis 1 Lage 2 Geschichte 3 Neue Nutzung seit 2015 4 Baubeschreibung 5 Literatur 6 Weblinks 7 Einzelnachweise Lage Das ehemalige Krematorium trägt die Adresse Ger...

 

 

Sri Lankan politician Hon.Maheepala HerathMP12h Governor of the North Central ProvinceIncumbentAssumed office 23 March 2020PresidentGotabaya Rajapaksa Ranil WickremesinghePreceded byTissa Vitharana8th Chief Minister of SabaragamuwaIn office16 July 2004 – 26 September 2017Preceded byMohan Saliya EllawalaSucceeded byVacant Personal detailsBornSri LankaPolitical partySri Lanka Freedom Party Maheepala Herath is a Sri Lankan politician. The current Governor of the North Cent...

 

 

Variety of Anglo-American choral music The fuguing tune (often spelled fuging tune) is a variety of Anglo-American vernacular choral music. Fuguing tunes form a significant number of the songs found in the American Sacred Harp singing tradition. They first flourished in the mid-18th century and continue to be composed today. Description Fuguing tunes are sacred music, specifically, Protestant hymns. They are written for a four-part chorus singing a cappella. George Pullen Jackson has describe...

「カリウム」とは異なります。 亜鉛 ← ガリウム → ゲルマニウム Al↑Ga↓In 31Ga 周期表 外見 銀白色 一般特性 名称, 記号, 番号 ガリウム, Ga, 31 分類 貧金属 族, 周期, ブロック 13, 4, p 原子量 69.723(1)  電子配置 [Ar] 4s2 3d10 4p1 電子殻 2, 8, 18, 3(画像) 物理特性 相 固体 密度(室温付近) 5.91 g/cm3 融点での液体密度 6.095 g/cm3 融点 302.9146 K, 29.7646 °C, 85.5763 °F 沸...

 

 

Group of political ideologies Not to be confused with black nationalism which defines national identity in purely racial terms. Kenneth Kaunda, a leading Zambian independence activist, pictured at a political rally in Northern Rhodesia (now Zambia) in 1960. African nationalism is an umbrella term which refers to a group of political ideologies in West, Central, East and Southern Africa, which are based on the idea of national self-determination and the creation of nation states.[1] Th...