Template:CleanTables

    Table of contents
    No headers
    // CleanTables() by neilw, 2009
    //
    // Usage:
    //     CleanTables(table : str?)
    //        table = a single jQuery selector for tables you want to clean.  By default, all tables on the page are selected.
    //        Note that only tables inside div#content are affected.
    //        Examples:  "table#FixThisTableOnly", "table.FixAllTablesWithThisClass"
    //
    var tableSelect = $0 ?? $table ?? "table";
    <html><tail>
    <script type="text/javascript"> "
        DekiWiki.$(document).ready(function($) {
            var $tables = Deki.$('div#pageContent "..tableSelect.."');
     	$tables.find('td > p:first-child').css({'margin-top':'0px', 'padding-top':'0px'});
    	$tables.find('td > p:last-child').css({'margin-bottom':'0px', 'padding-bottom':'0px'});
        });
    " </script>
    </tail></html>
    Tag page (Edit tags)
    • No tags
    Page statistics
    2679 view(s), 1 edit(s) and 888 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments