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

Jump to: navigation, search
(Updating to match new version of source page)
(Updating to match new version of source page)
Line 33: Line 33:
</div>
</div>


The next example is incorrectly nested, which is easily shown with indented tags:
The next example is incorrectly nested. The last two lines show that the parent tag <nowiki>[b]</nowiki> was closed before the child tag <nowiki>[i]</nowiki>.
{{code|[b][i]bold & italic text[/b][/i]
{{code|[b][i]bold & italic text[/b][/i]
[b]
[b]
Line 45: Line 45:
</div>
</div>


Note that the order in which tags are nested is important when text-formatting tags like size, bold, or italic are paired with the following 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:
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:


{{code|<nowiki>[center][size=36pt][b][u]text[/u][/b][/size][/center]</nowiki>}}
{{code|<nowiki>[center][size=36pt][b][u]text[/u][/b][/size][/center]</nowiki>}}

Revision as of 06:50, 4 October 2013

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

El código Bulletin board o BBCode se refiere a formatos de publicación en SMF y en muchos otros sitios en línea. Para ver una explicación de los botones en la página de publicación, ve Basic Bulletin Board Codes. Este artículo explica el concepto importante de anidar.

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]

Texto en negrita y cursiva

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]
[i][b]bold & italic text[/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]

Ver también

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: