19,988
edits
(documented LocaleDate support) |
(added mention of hidden Help button; removed mentions of TOCnonum/TOClimit because they are obsolete in Vector 2022; misc. wording) |
||
| Line 4: | Line 4: | ||
==Common.css== | ==Common.css== | ||
Common.css contains various small fixes borrowed from Wikipedia for shortcomings in MediaWiki's appearance or behavior | Common.css contains various small fixes borrowed from Wikipedia for shortcomings in MediaWiki's appearance or behavior. There are additional appearance customizations created by us, plus supporting markup for features added to the wiki through Common.js. The Wikipedia carry-overs are not documented below because the comments in the markup should suffice. Following are our self-made customizations: | ||
* | *The "? Help" button which would appear on some special pages at the top-right is hidden because it pushes down the lede text on category pages. We have a Help link in the sidebar at all times so it's unneeded anyway. | ||
*Several link icon customizations: | *Several link icon customizations: | ||
**A custom [http://www.example.com external link arrow] replaces the default one ([[Image:MediaWiki default external link icon.png]]); the box element has been removed, making it visually less cluttered and easier to read. | **A custom [http://www.example.com external link arrow] replaces the default one ([[Image:MediaWiki default external link icon.png]]); the box element has been removed, making it visually less cluttered and easier to read. | ||
| Line 15: | Line 14: | ||
**External links that specifically go to movie files get a [http://geyser.oni2.net/genesis/E3_1998/Oni_Trailer_(E3_1998).mov movie icon]. | **External links that specifically go to movie files get a [http://geyser.oni2.net/genesis/E3_1998/Oni_Trailer_(E3_1998).mov movie icon]. | ||
**External links that specifically go to sound files get a [http://geyser.oni2.net/oni1/music/09-Ambient_Suite.mp3 sound icon]. | **External links that specifically go to sound files get a [http://geyser.oni2.net/oni1/music/09-Ambient_Suite.mp3 sound icon]. | ||
**Interwiki links get a | **Interwiki links get a green arrow to show that they point to a fellow wiki (by default MediaWiki shows no outbound arrow at all for interwiki links, ambushing the reader with a site change when they click it). | ||
**Links formatted as if they're external, but which point back to this wiki, get a looping arrow [http://wiki.oni2.net/Main_Page like this]. | **Links formatted as if they're external, but which point back to this wiki, get a looping arrow [http://wiki.oni2.net/Main_Page like this]. | ||
| Line 39: | Line 38: | ||
*The mw-collapsible class from MediaWiki core is extended to actually be collapsible, which allows [[Template:Divhide]] to work. | *The mw-collapsible class from MediaWiki core is extended to actually be collapsible, which allows [[Template:Divhide]] to work. | ||
Following that are | Following that are these additions by OniGalore editors: | ||
*When someone visits the Main Page, the browser is told to focus on the go/search box so that the user can immediately start typing a search term or page name. | *When someone visits the Main Page, the browser is told to focus on the go/search box so that the user can immediately start typing a search term or page name. | ||
| Line 48: | Line 47: | ||
*Next to last, there is code to allow tables to automatically sort themselves by a given column when the page is loaded. This is utilized in several places on the wiki. To make an autosort table, first the table must be declared with the class "wikitable". Next, as part of the same class declaration, you must also add in "sortable" to enable MediaWiki's built-in sortable column feature. Finally add the third class "autosort" to trigger this feature. By default, the table will be sorted by column 1, but you can specify another column by declaring a fourth class for the table called "by-column-''x''", where 'x' is a number from 1 to 9. See [[Oni 2 (Angel Studios)/Levels]] for a sample usage of this feature. | *Next to last, there is code to allow tables to automatically sort themselves by a given column when the page is loaded. This is utilized in several places on the wiki. To make an autosort table, first the table must be declared with the class "wikitable". Next, as part of the same class declaration, you must also add in "sortable" to enable MediaWiki's built-in sortable column feature. Finally add the third class "autosort" to trigger this feature. By default, the table will be sorted by column 1, but you can specify another column by declaring a fourth class for the table called "by-column-''x''", where 'x' is a number from 1 to 9. See [[Oni 2 (Angel Studios)/Levels]] for a sample usage of this feature. | ||
*Finally comes support for [[Template:LocaleDate]], which allows | *Finally comes support for [[Template:LocaleDate]], which allows dates to dynamically re-format between MDY and DMY based on the user's browser locale. | ||
[[Category:Policies and documentation]] | [[Category:Policies and documentation]] | ||