User:Jeremy/sandbox: Difference between revisions

From WikiMSK
No edit summary
No edit summary
Line 1: Line 1:
<html><link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.css">
<html><link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.11.5/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.js"></script></html>
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.11.5/js/jquery.dataTables.js"></script>
<usescript src="datatables.js"/>
<script>document.querySelector(document).ready( function () {
<html>
    document.querySelector('#fancyTable').DataTable();
<table id="table_id" class="display">
} );</script></html>
    <thead>
 
        <tr>
{| class="wikitable" id="fancyTable"
            <th>Column 1</th>
|+ Caption text
            <th>Column 2</th>
|-
        </tr>
! Header text !! Header text !! Header text
    </thead>
|-
    <tbody>
| Example || Example || Example
        <tr>
|-
            <td>Row 1 Data 1</td>
| Example || Example || Example
            <td>Row 1 Data 2</td>
|-
        </tr>
| Example || Example || Example
        <tr>
|}
            <td>Row 2 Data 1</td>
            <td>Row 2 Data 2</td>
        </tr>
    </tbody>
</table>
</html>

Revision as of 08:00, 3 April 2022

Caption text
Header text Header text Header text
Example Example Example
Example Example Example
Example Example Example