Bulletin board code/fr: 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

Les balises Bulletin board code ou BBCodes sont une manière de mettre en forme les posts sur SMF et sur une multitude d’autres sites. Pour une explication des boutons sur une page de post, voir Basic Bulletin Board Codes. Cet article explique le concept important d’imbrication des balises.

Imbrication des BBCodes

Le format général d'un BBCode se compose en trois parties, une balise ouvrante, le contenu à l'intérieur et une balise fermante, comme montré ci-dessous :

[ouvrante]    texte à l'intérieur    [/fermante]
[b]           texte en gras          [/b]

Texte en gras et en italique

Vous pouvez placer une balise BBCode à l'intérieur d'une autre balise du moment que "la balise fille est fermée avant la balise mère". Par exemple, une façon correcte pour mettre un texte en gras et en italique est :

[b][i]texte en gras & italique[/i][/b]
[i][b]bold & italic text[/b][/i]
Cela est plus clair quand le code est indenté :
[b]
     [i]
         texte en gras & italique
     [/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]

Voir aussi

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: