Skip to content

Instantly share code, notes, and snippets.

@fernandosavio
Last active June 28, 2017 19:08
Show Gist options
  • Save fernandosavio/b933c4665a513960c9b7ef30e3a7d763 to your computer and use it in GitHub Desktop.
Save fernandosavio/b933c4665a513960c9b7ef30e3a7d763 to your computer and use it in GitHub Desktop.
Comandos mais usados para editar e traduzir as páginas da MDN. (https://developer.mozilla.org/)

Linkando para Reference

jsxref

{{ jsxref("Math.random()") }} => Math.random()

{{ jsxref("Math.random()", "Random link") }} => Random link

cssxref

{{ cssxref("background-color") }} => background-color

{{ cssxref("background-color", "Element.backgroundColor") }} => Element.backgroundColor

domxref

{{ domxref("window") }} => window

{{ domxref("window", "Window Object") }} => Window Object

Event

{{ event("change") }} => change

{{ event("change", "Input.change") }} => Input.change

HTMLElement

{{ HTMLElement("table") }} =>

{{ HTMLElement("table", "TableElement") }} => TableElement

SVGElement

{{ SVGElement("circle") }} =>

SVGAttr

{{ SVGAttr("d") }} => d

Anchor

{{ anch("Sintaxe") }} => Sintaxe

{{ anch("Sintaxe", "veja a sintaxe aqui")}} => veja a sintaxe aqui

Bugs

Mozilla: {{ bug("927625") }} =>Bug 927625

Microsoft Edge: {{ edgebug(10569045) }} => Edge bug 10569045

Google Chrome: {{ chromebug(31277) }} => Chromium bug 31277

WebKit (Safari, ...): {{ webkitbug(31277) }} => WebKit bug 31277

RFC

{{ RFC(2616) }} => RFC 2616

{{ RFC(2616, "Hypertext Transfer Protocol (HTTP/1.1)") }} => RFC 2616: Hypertext Transfer Protocol (HTTP/1.1)

htmlattrxref

{{ htmlattrxref("lang") }} => lang

{{ htmlattrxref("type", "input") }} => type

HTTPHeader

{{ HTTPHeader(404) }} => 404

{{ HTTPHeader(404, "Não encontrado") }} => Não encontrado

HTTPMethod

{{ HTTPMethod("PUT") }} => PUT

{{ HTTPMethod("PUT", "Teste") }} => Teste

HTTPStatus

{{ HTTPStatus(404) }} => 404

{{ HTTPStatus(404, "Não encontrado") }} => Não encontrado

Tabela de compatibilidade de navegadores ([pesqu])

{{ Compat("javascript.builtins.Math.LN2") }} => gera a tabela automaticamente

Pesquisar em [https://github.com/mdn/browser-compat-data]

Texto: Compatibilidade nos navegadores

Others

JSFiddle

{{ JSFiddleLink("w9gFj") }}

Glossary (link)

{{ Glossary("HTML") }} => HTML

{{ Glossary("CSS", "Cascade Style Sheet") }} => Cascade Style Sheet

Inline

{{optional_inline()}} => label para parâmetros opcionais

{{ReadOnlyInline()}} => label para valores somente-leitura

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment