mwstake/new-page-css

Installs: 51

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 1

Open Issues: 1

Type:mediawiki-extension

1.3.2 2023-02-18 21:11 UTC

This package is auto-updated.

Last update: 2024-10-19 01:16:21 UTC


README

The NewPageCSS extension uses the tag <css> to include a CSS in the text of the wiki page; that CSS is then put into the header of the resulting HTML, and so formats your page. If you are creating a wiki page that ends up requiring a lot of style modifiers, it's probably simpler to put them into a CSS style sheet.

Usage

<css>
table.uc {
    border-collapse: collapse;
}

.uc th {
    background-color: #f2f2f2;
    border: 1px solid black;
}

.uc td {
    border: 1px solid black;
}

.uc td.pm {
    background-color: #ffa0a0;
}
</css>

<table class="uc">

...

</table>

See also

I would like to acknowledge the author of the original extension PageCSS (Ævar Arnfjörð Bjarmason), which I have updated so it will work with current versions of MediaWiki.