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

Revision [16977]

Edited on 2007-05-31 23:27:32 by GmBowen [Reverted]
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);


Revision [16776]

Edited on 2007-05-31 10:46:54 by LisK8p [Reverted]
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);


Revision [8036]

The oldest known version of this page was created on 2005-05-12 04:55:12 by GmBowen [Reverted]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki