Bulletin board code/es: Difference between revisions From Online Manual

Jump to: navigation, search
No edit summary
(Created page with "{{code|[i][b]texto en "negrita" y cursiva[/b][/i]}}")
Line 16: Line 16:
También puedes hacerlo de la siguiente manera, que también es válida, con las mismas etiquetas pero en orden inverso:
También puedes hacerlo de la siguiente manera, que también es válida, con las mismas etiquetas pero en orden inverso:


{{code|[i][b]bold & italic text[/b][/i]}}
{{code|[i][b]texto en "negrita" y cursiva[/b][/i]}}


Esto se nota más fácil cuando las etiquetas están indentadas:
Esto se nota más fácil cuando las etiquetas están indentadas:

Revision as of 15:09, 30 June 2016

Languages English  · Deutsch · Ελληνικά · español · français · italiano · Nederlands · norsk · polski · русский · srpski (latinica) · svenska · Türkçe

Bulletin Board Codes or BBCodes are a way to format posts in SMF and in many other places online. For an explanation of the buttons on the Post page, see Basic Bulletin Board Codes (en). This article explains the important concept of nesting.

Anidar BBCode

El formato general de un BBCode tiene tres partes; una etiqueta de apertura, el contenido interno y una etiqueta de cierre, como se muestra enseguida:

[etiquetaApertura]      texto dentro      [/etiquetaCierre]
[b]        texto en negrita        [/b]

Cuando el Orden Importa, Parte 1

Puedes colocar una etiqueta de BBCode dentro de otra siempre y cuando la etiqueta hija se cierre antes que la etiqueta padre. Por ejemplo, la forma correcta para generar texto en negrita y cursiva es:

[b][i]texto en negrita y cursiva[/i][/b]

También puedes hacerlo de la siguiente manera, que también es válida, con las mismas etiquetas pero en orden inverso:

[i][b]texto en "negrita" y cursiva[/b][/i]

Esto se nota más fácil cuando las etiquetas están indentadas:

[b]
     [i]
         texto en negrita y cursiva
     [/i]
[/b]

The next example is incorrectly nested. The last two lines show that the parent tag [b] was closed before the child tag [i].

[b][i]bold & italic text[/b][/i]
[b]
    [i]
        bold & italic text
[/b]
    [/i]

When Order Matters, Part 2

The order in which tags are nested is important when text-formatting tags such as size, bold, or italic are paired with the text-alignment tags center, left, right, and pre. Formatting tags must be placed inside alignment tags. For example, for the size tag to change the font, it must be placed as follows:

[center][size=36pt][b][u]text[/u][/b][/size][/center]

Nesting the size tags as per the example below will result in this tag not working:

[size=36pt][center][b][u]text[/u][/b][/center][/size]

See Also



Advertisement: