Difference between revisions of "Help:Extra features"
Jump to navigation
Jump to search
MyraMidnight (talk | contribs) m (→Sorting Tables) |
MyraMidnight (talk | contribs) |
||
Line 21: | Line 21: | ||
:This allows you to collapse the table (or div) to prevent clutter, specially if the table is a big one | :This allows you to collapse the table (or div) to prevent clutter, specially if the table is a big one | ||
:'''[[mediawikiwiki:Manual:Collapsible elements|MediaWiki Manual about Collapsible elements]] | :'''[[mediawikiwiki:Manual:Collapsible elements|MediaWiki Manual about Collapsible elements]] | ||
− | *<code>mw-collapsible</code> | + | *<code>mw-collapsible</code> |
− | *<code>mw-collapsed</code> | + | *:by default the table/div will be expanded, allowing optional collapsing |
− | *<code>mw-collapsible-content</code> | + | *<code>mw-collapsed</code> |
+ | *:adding this causes the table to be collapsed by default | ||
+ | *:So if you want something to be collapsed by default, it would be <code>mw-collapsible mw-collapsed</code> | ||
+ | *<code>mw-collapsible-content</code> | ||
+ | *:this allows you to control which sections will collapse, works in a <code><nowiki><div></nowiki></code> but not tables |
Revision as of 15:28, 14 April 2017
This page tells you about the extra features you can include in tables or div when formatting, the MediaWiki manuals will be linked for detailed instructions.
Classes
You can use these classes together
- example:
class="wikitable sortable"
orclass="wikitable mw-collapsible mw-collapsed"
Styling Tables
- these control the color theme of the tables. You can skip this class to create a table without outlines/background
wikitable
(the default style)bluetable
purpletable
pinktable
greentable
Sorting Tables
- adding this class will allow you to make sortable tables
- MediaWiki Manual about Sortable Tables and on WikiMedia for more details
sortable
unsortable
(this you can add to specific column headers to make said column unsortable)
Collapsable Tables/Divs
- This allows you to collapse the table (or div) to prevent clutter, specially if the table is a big one
- MediaWiki Manual about Collapsible elements
mw-collapsible
- by default the table/div will be expanded, allowing optional collapsing
mw-collapsed
- adding this causes the table to be collapsed by default
- So if you want something to be collapsed by default, it would be
mw-collapsible mw-collapsed
mw-collapsible-content
- this allows you to control which sections will collapse, works in a
<div>
but not tables
- this allows you to control which sections will collapse, works in a