Revision history for PageHeadings
Revision [19201]
Last edited on 2008-01-28 00:14:43 by GmBowen [Modified links pointing to docs server]No Differences
Additions:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ REVISED 12May05 (c) GMBowen to turn into a headings lister for the page. This modification +
+ ignores titles between 6 equal signs, removes the active links, etc. Released under GPL +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$nonEgEg = "([^=]*=?[^=]+)*"; // Suite de caractères sans == Continuation of characters without ==
'$matches',
'static $numTitre = 0; return "#".++$numTitre."#";'
$toc = preg_replace("((=){6}#(([0-9]+))#($nonEgEg)(=){6} )", "", $toc);
$toc = preg_replace("((=){5}#(([0-9]+))#($nonEgEg)(=){5} )", "<li><strong>\\4</strong></li>\n", $toc);
$toc = preg_replace("((=){4}#(([0-9]+))#($nonEgEg)(=){4} )", "<ul><li><strong><i>\\4</i></strong></li></ul>\n", $toc);
$toc = preg_replace("((=){3}#(([0-9]+))#($nonEgEg)(=){3} )", "<ul><ul><li><i>\\4</i></li></ul></ul>\n", $toc);
$toc = preg_replace("((=){2}#(([0-9]+))#($nonEgEg)(=){2} )", "<ul><ul><ul><li>\\4</li></ul></ul></ul>\n", $toc);
+ REVISED 12May05 (c) GMBowen to turn into a headings lister for the page. This modification +
+ ignores titles between 6 equal signs, removes the active links, etc. Released under GPL +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$nonEgEg = "([^=]*=?[^=]+)*"; // Suite de caractères sans == Continuation of characters without ==
'$matches',
'static $numTitre = 0; return "#".++$numTitre."#";'
$toc = preg_replace("((=){6}#(([0-9]+))#($nonEgEg)(=){6} )", "", $toc);
$toc = preg_replace("((=){5}#(([0-9]+))#($nonEgEg)(=){5} )", "<li><strong>\\4</strong></li>\n", $toc);
$toc = preg_replace("((=){4}#(([0-9]+))#($nonEgEg)(=){4} )", "<ul><li><strong><i>\\4</i></strong></li></ul>\n", $toc);
$toc = preg_replace("((=){3}#(([0-9]+))#($nonEgEg)(=){3} )", "<ul><ul><li><i>\\4</i></li></ul></ul>\n", $toc);
$toc = preg_replace("((=){2}#(([0-9]+))#($nonEgEg)(=){2} )", "<ul><ul><ul><li>\\4</li></ul></ul></ul>\n", $toc);
Deletions:
REVISED 12May05 (c) GMBowen to turn into a headings lister for the page. This modification
ignores titles between 6 equal signs, removes the active links, etc. Released under GPL
$nonEgEg = "([^=]*=?[^=] )*"; // Suite de caractères sans == Continuation of characters without ==
'$matches',
'static $numTitre = 0; return "#". $numTitre."#";'
$toc = preg_replace("((=){6}#(([0-9] ))#($nonEgEg)(=){6} )", "", $toc);
$toc = preg_replace("((=){5}#(([0-9] ))#($nonEgEg)(=){5} )", "<li><strong>\\4</strong></li>\n", $toc);
$toc = preg_replace("((=){4}#(([0-9] ))#($nonEgEg)(=){4} )", "<ul><li><strong><i>\\4</i></strong></li></ul>\n", $toc);
$toc = preg_replace("((=){3}#(([0-9] ))#($nonEgEg)(=){3} )", "<ul><ul><li><i>\\4</i></li></ul></ul>\n", $toc);
$toc = preg_replace("((=){2}#(([0-9] ))#($nonEgEg)(=){2} )", "<ul><ul><ul><li>\\4</li></ul></ul></ul>\n", $toc);
Additions:
REVISED 12May05 (c) GMBowen to turn into a headings lister for the page. This modification
ignores titles between 6 equal signs, removes the active links, etc. Released under GPL
$nonEgEg = "([^=]*=?[^=] )*"; // Suite de caractères sans == Continuation of characters without ==
'$matches',
'static $numTitre = 0; return "#". $numTitre."#";'
$toc = preg_replace("((=){6}#(([0-9] ))#($nonEgEg)(=){6} )", "", $toc);
$toc = preg_replace("((=){5}#(([0-9] ))#($nonEgEg)(=){5} )", "<li><strong>\\4</strong></li>\n", $toc);
$toc = preg_replace("((=){4}#(([0-9] ))#($nonEgEg)(=){4} )", "<ul><li><strong><i>\\4</i></strong></li></ul>\n", $toc);
$toc = preg_replace("((=){3}#(([0-9] ))#($nonEgEg)(=){3} )", "<ul><ul><li><i>\\4</i></li></ul></ul>\n", $toc);
$toc = preg_replace("((=){2}#(([0-9] ))#($nonEgEg)(=){2} )", "<ul><ul><ul><li>\\4</li></ul></ul></ul>\n", $toc);
Deletions:
+ REVISED 12May05 (c) GMBowen to turn into a headings lister for the page. This modification +
+ ignores titles between 6 equal signs, removes the active links, etc. Released under GPL +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$nonEgEg = "([^=]*=?[^=]+)*"; // Suite de caractères sans == Continuation of characters without ==
'$matches',
'static $numTitre = 0; return "#".++$numTitre."#";'
$toc = preg_replace("((=){6}#(([0-9]+))#($nonEgEg)(=){6} )", "", $toc);
$toc = preg_replace("((=){5}#(([0-9]+))#($nonEgEg)(=){5} )", "<li><strong>\\4</strong></li>\n", $toc);
$toc = preg_replace("((=){4}#(([0-9]+))#($nonEgEg)(=){4} )", "<ul><li><strong><i>\\4</i></strong></li></ul>\n", $toc);
$toc = preg_replace("((=){3}#(([0-9]+))#($nonEgEg)(=){3} )", "<ul><ul><li><i>\\4</i></li></ul></ul>\n", $toc);
$toc = preg_replace("((=){2}#(([0-9]+))#($nonEgEg)(=){2} )", "<ul><ul><ul><li>\\4</li></ul></ul></ul>\n", $toc);