User:Timeshifter/common.css

/* === Easy method of auto numbering of table rows === /* Just add class="sortable autonumber" to top line of table wikitext. /* This is Yair_rand's CSS (slightly adapted). See his comment and CSS: /* See https://phabricator.wikimedia.org/T42618#434018 */

table.autonumber > tbody { counter-reset: autonumbering; } table.autonumber > tbody > tr::before { counter-increment: autonumbering; content: counter(autonumbering); } table.autonumber > thead > tr::before { content: "#"; } table.autonumber > thead > tr::before, table.autonumber > tbody > tr::before {   display: table-cell; padding: 0.2em; border: 1px solid #AAA; vertical-align: middle; text-align: center; }