-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert /web/javascript/reference/global_objects/string folder to Mar…
…kdown (es) (#8165) * Convert /web/javascript/reference/global_objects/string folder to Markdown (es) * Apply suggestions from code review Original PR by: Queen Vinyl Da.i'gyu-Kazotetsu <[email protected]>
- Loading branch information
Showing
86 changed files
with
3,291 additions
and
3,666 deletions.
There are no files selected for viewing
57 changes: 0 additions & 57 deletions
57
files/es/web/javascript/reference/global_objects/string/anchor/index.html
This file was deleted.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
files/es/web/javascript/reference/global_objects/string/anchor/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
--- | ||
title: String.prototype.anchor() | ||
slug: Web/JavaScript/Reference/Global_Objects/String/anchor | ||
tags: | ||
- HTML wrapper methods | ||
- JavaScript | ||
- Method | ||
- Prototype | ||
- String | ||
translation_of: Web/JavaScript/Reference/Global_Objects/String/anchor | ||
original_slug: Web/JavaScript/Referencia/Objetos_globales/String/anchor | ||
--- | ||
{{JSRef("Objetos_globales", "String")}} | ||
|
||
## Resumen | ||
|
||
El método **`anchor()`** crea un ancla HTML, {{HTMLElement("a")}}, que se usa como un enlace a hipertexto. | ||
|
||
## Sintaxis | ||
|
||
cadena.anchor(nombreAtributo) | ||
|
||
### Parámetros | ||
|
||
- `nombreAtributo` | ||
- : Una cadena. | ||
|
||
## Descripción | ||
|
||
Usa el método `anchor` con los métodos `document.write` o `document.writeln` para crear y mostrar programando un ancla en un documento. Crea el ancla con el método `anchor`, y entonces llama a `write` o `writeln` para mostrar el ancla en el documento. En JavaScript en el lado Servidor, usa la función `write` para mostrar el ancla. | ||
|
||
En la sintaxis, la cadena de texto representa el texto literal que usted quiere que el usuario vea. La cadena `nombreAtributo` representa el atributo `NAME` de la etiqueta A. | ||
|
||
Los anclas creados con el método `anchor` serán elementos del arreglo {{domxref("document.anchors")}} | ||
|
||
## Ejemplos | ||
|
||
### Ejemplo: Usando `anchor` | ||
|
||
El siguiente código de ejemplo dentro de un elemento HTML `script`: | ||
|
||
```js | ||
var miCadena = "Tabla de Contenidos"; | ||
document.body.innerHTML = miCadena.anchor("ancla_contenidos"); | ||
``` | ||
|
||
obtendrá el siguiente HTML: | ||
|
||
```html | ||
<a name="ancla_contenidos">Tabla de Contenidos</A> | ||
``` | ||
|
||
### Vea También | ||
|
||
- {{jsxref("String.prototype.link()")}} |
55 changes: 0 additions & 55 deletions
55
files/es/web/javascript/reference/global_objects/string/big/index.html
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
files/es/web/javascript/reference/global_objects/string/big/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
title: String.prototype.big() | ||
slug: Web/JavaScript/Reference/Global_Objects/String/big | ||
tags: | ||
- Deprecated | ||
- HTML wrapper methods | ||
- JavaScript | ||
- Method | ||
- Prototype | ||
- String | ||
translation_of: Web/JavaScript/Reference/Global_Objects/String/big | ||
original_slug: Web/JavaScript/Referencia/Objetos_globales/String/big | ||
--- | ||
{{JSRef("Objetos_globales", "String")}} | ||
|
||
{{deprecated_header}} | ||
|
||
## Resumen | ||
|
||
Provoca que una cadena sea mostrada con un tamaño de fuente grade, como si estuviese en una etiqueta {{HTMLElement("big")}}. | ||
|
||
## Sintaxis | ||
|
||
cadena.big() | ||
|
||
## Descripción | ||
|
||
Usa el método `big` para formatear y mostrar una cadena en un documento. | ||
|
||
## Ejemplos | ||
|
||
### Ejemplo: Usando `big` | ||
|
||
El siguiente ejemplo usa los métodos de `string` para cambiar el tamañó de una cadena: | ||
|
||
var cadenaMundo="¡Hola Mundo!"; | ||
|
||
console.log(cadenaMundo.small()); | ||
console.log("<P>" + cadenaMundo.big()); | ||
console.log("<P>" + cadenaMundo.fontsize(7)); | ||
|
||
Este ejemplo produce el mismo resultado que el siguiente HTML: | ||
|
||
<small>¡Hola Mundo!</small> | ||
<p><big>¡Hola Mundo!</big> | ||
<p><fontsize=7>¡Hola Mundo!</fontsize> | ||
|
||
### Vea También | ||
|
||
- {{jsxref("String.prototype.fontsize()")}} | ||
- {{jsxref("String.prototype.small()")}} |
43 changes: 0 additions & 43 deletions
43
files/es/web/javascript/reference/global_objects/string/blink/index.html
This file was deleted.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
files/es/web/javascript/reference/global_objects/string/blink/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: String.prototype.blink() | ||
slug: Web/JavaScript/Reference/Global_Objects/String/blink | ||
tags: | ||
- Deprecated | ||
- HTML wrapper methods | ||
- JavaScript | ||
- Method | ||
- Prototype | ||
- String | ||
translation_of: Web/JavaScript/Reference/Global_Objects/String/blink | ||
original_slug: Web/JavaScript/Referencia/Objetos_globales/String/blink | ||
--- | ||
{{JSRef("Objetos_globales", "String")}} | ||
|
||
{{deprecated_header}} | ||
|
||
## Resumen | ||
|
||
Causa que una cadena parpadee como si estuviese en una etiqueta {{HTMLElement("blink")}}. | ||
|
||
## Sintaxis | ||
|
||
cadena.blink() | ||
|
||
## Descripción | ||
|
||
Usa el método `blink` para formatear y mostrar una cadena en un documento. | ||
|
||
## Ejemplos | ||
|
||
### Ejemplo: Usando métodos de `string` para cambiar el formateado de una cadena | ||
|
||
El siguiente ejemplo usa métodos de `string` para cambiar el formateado de una cadena: | ||
|
||
```js | ||
var cadenaMundo="¡Hola mundo!" | ||
|
||
console.log(cadenaMundo.blink()) | ||
console.log(cadenaMundo.bold()) | ||
console.log(cadenaMundo.italics()) | ||
console.log(cadenaMundo.strike()) | ||
``` | ||
|
||
Este ejemplo produce el mismo resultado que el siguiente código HTML: | ||
|
||
```html | ||
<blink>¡Hola mundo!</blink> | ||
<b>¡Hola mundo!</b> | ||
<i>¡Hola mundo!</b> | ||
<strike>¡Hola mundo!</strike> | ||
``` | ||
|
||
## Vea también | ||
|
||
- {{jsxref("String.prototype.bold()")}} | ||
- {{jsxref("String.prototype.italics()")}} | ||
- {{jsxref("String.prototype.strike()")}} |
44 changes: 0 additions & 44 deletions
44
files/es/web/javascript/reference/global_objects/string/bold/index.html
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.