Wikipédia:HTML

Un article de Wikipédia, l'encyclopédie libre.

[modifier] Liste des codes HTML acceptés par Wikipédia

[modifier] Question

Est-il possible d'utiliser des balises personnalisees style XML lorsque l'on utilise un wiki sur son propre serveur par exemple a la volee on tape un article et on ajoute une balise dans le texte <exemple> voila un test qui sert d'exemple </exemple>

Merci de vos reponses si quelqu'un passe par la... (Question du 23 fevrier 2005)


[modifier] Commentaires

Bonsoir,
Je me suis aperçu que le code HTML "span" n'est pas compris par le logiciel. C'est le cas entre autre ici, Wikipédia:Bac à sable, et ici, GNU FDL. Y a-t-il une liste des codes HTML compris par le logiciel ? Yann

Voici:
$htmlpairs = array( # Tags that must be closed
        "b", "i", "u", "font", "big", "small", "sub", "sup", "h1",
        "h2", "h3", "h4", "h5", "h6", "cite", "code", "em", "s",
        "strike", "strong", "tt", "var", "div", "center",
        "blockquote", "ol", "ul", "dl", "table", "caption", "pre",
        "ruby", "rt" , "rb" , "rp"
);
$htmlsingle = array(
        "br", "p", "hr", "li", "dt", "dd"
);
$htmlnest = array( # Tags that can be nested--??
        "table", "tr", "td", "th", "div", "blockquote", "ol", "ul",
        "dl", "font", "big", "small", "sub", "sup"
);
$tabletags = array( # Can only appear inside table
        "td", "th", "tr"
);
$htmlsingle = array_merge( $tabletags, $htmlsingle );
$htmlelements = array_merge( $htmlsingle, $htmlpairs );
$htmlattrs = array( # Allowed attributes--no scripting, etc.
        "title", "align", "lang", "dir", "width", "height",
        "bgcolor", "clear", /* BR */ "noshade", /* HR */
        "cite", /* BLOCKQUOTE, Q */ "size", "face", "color",
        /* FONT */ "type", "start", "value", "compact",
        /* For various lists, mostly deprecated but safe */
        "summary", "width", "border", "frame", "rules",
        "cellspacing", "cellpadding", "valign", "char",
        "charoff", "colgroup", "col", "span", "abbr", "axis",
        "headers", "scope", "rowspan", "colspan", /* Tables */
        "id", "class", "name", "style" /* For CSS */
);
--Brion 08:56 mar 4, 2003 (CET)


Pourquoi abbr est considéré comme un attribut alors que c'est une balise (tag) ? Et acronym, il n'existe pas ??? pour toutes les abréviations existant sur wiki ce serait quand même bien de pouvoir les annoter avec la balise dédiée, non ?

--Nokami 1 mar 2004 à 10:32 (CET)