• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:JavaScript

  • Template
  • Talk
  • Language
  • Watch
  • Edit
  • v
  • t
  • e
JavaScript
Code analysis
  • ESLint
  • JSHint
  • JSLint
Subsets,* supersets
  • JS++
  • Source*
  • TypeScript (ArkTS)
Transpilers
  • AtScript
  • Babel
  • ClojureScript
  • CoffeeScript
  • Dart
  • Elm
  • Emscripten
  • Google Closure Compiler
  • Google Web Toolkit
  • Haxe
  • LiveScript
  • Morfik
  • Nim
  • Opa
  • PureScript
  • ReScript
  • WebSharper
Concepts
  • JavaScript library
  • JavaScript syntax
Debuggers
  • Chrome DevTools
  • Firefox Inspector (formerly Firebug)
  • Komodo IDE
  • Safari Web Inspector
Documentation generators
  • JSDoc
Editors (comparison)
  • Ace
    • Cloud9 IDE
  • Atom
  • CodeMirror
    • Brackets
    • Light Table
  • PhpStorm
  • Orion
  • Visual Studio
    • Visual Studio Express
  • Visual Studio Code
  • Visual Studio Team Services
  • Vim
Engines
  • List of JavaScript engines
Frameworks
  • Comparison of JavaScript frameworks
  • List of JavaScript libraries
Related technologies
  • Ajax
  • AssemblyScript
  • asm.js
  • CSS
  • DOM
  • HTML
    • HTML5
  • JSON
  • WebAssembly
  • WebAuthn
Package managers
  • npm
  • pnpm
  • yarn
  • Bun
Module bundlers
  • Bun
  • esbuild
  • Vite
  • Webpack
Server-side
  • Active Server Pages
  • Bun
  • CommonJS
  • Deno
  • JSGI
  • Node.js
Unit testing frameworks (list)
  • Jasmine
  • Mocha
  • QUnit
People
  • Douglas Crockford
  • Ryan Dahl
  • Brendan Eich
  • John Resig
  • Jesse James Garrett
  • Outline
  • Index
  • Wikibook
Template documentation[view] [edit] [history] [purge]
This template does not display in the mobile view of Wikipedia; it is desktop only. See Template:Navbox visibility for a brief explanation.

This is a navigational template created using {{navbox}}. It can be transcluded on pages by placing {{JavaScript}} below the standard article appendices and above categories.

Contents

  • 1 Initial visibility
  • 2 TemplateData
  • 3 Template transclusions
  • 4 See also

Initial visibility

edit

This template's initial visibility currently defaults to autocollapse, meaning that if there is another collapsible item on the page (a navbox, sidebar, or table with the collapsible attribute), it is hidden apart from its title bar; if not, it is fully visible.

To change this template's initial visibility, the |state= parameter may be used:

  • {{JavaScript|state=collapsed}} will show the template collapsed, i.e. hidden apart from its title bar.
  • {{JavaScript|state=expanded}} will show the template expanded, i.e. fully visible.

Templates using the classes class=navbox ({{navbox}}) or class=nomobile ({{sidebar}}) are not displayed in article space on the mobile web site of English Wikipedia. Mobile page views accounted for 60% to 70% of all page views from 2020 through 2025. Briefly, these templates are not included in articles because 1) they are not well designed for mobile, and 2) they significantly increase page sizes—bad for mobile downloads—in a way that is not useful for the mobile use case. You can review/watch phab:T124168 for further discussion.

TemplateData

edit

A navigational box that can be placed at the bottom of articles.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Statestate

The initial visibility of the navbox

Suggested values
collapsed expanded autocollapse
Stringsuggested

Template transclusions

edit
Transclusion maintenance
Check completeness of transclusions

See also

edit
  • {{ECMAScript}}
The above documentation is transcluded from Template:Navbox documentation. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages.
Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:JavaScript&oldid=1350470431"