Jump to content

MediaWiki:Common: Difference between revisions

added mention of popup classes; wording tweaks
m (top-to-bottom copy-edit)
(added mention of popup classes; wording tweaks)
Line 6: Line 6:
*Common.css mainly contains fixes for annoying glitches in MediaWiki's appearance or behavior, and minor style tweaks (these are all more or less borrowed from Wikipedia).
*Common.css mainly contains fixes for annoying glitches in MediaWiki's appearance or behavior, and minor style tweaks (these are all more or less borrowed from Wikipedia).


*There are also various classes declared here for standard additions to the wiki, such as:
*In amidst those are various classes declared for message box templates such as [[Template:Fmbox]] and [[Template:Divhide]].
**[[Template:Fmbox|Infoboxes]]
**[[Template:Divhide|Divhide boxes]]
**Optional mods for the table of contents (allowing you to use [[Template:TOCnonum|TOCnonum]] for an un-numbered TOC and [[Template:TOClimit|TOClimit]] to limit the depth of headers shown in the TOC)


*There's also a modified fix brought over from WP for the annoyingly small size MediaWiki uses for monospaced fonts with the <nowiki><code>, <tt>, and <pre></nowiki> tags.
*There are also classes set up for use by TOC (table of contents) mods such as [[Template:TOCnonum]] and [[Template:TOClimit]].
 
*Also in this medley of tweaks is a modified fix brought over from WP for the annoyingly small font size that MediaWiki uses for monospaced text with the <nowiki><code>, <tt>, and <pre></nowiki> tags.


*Next are several icon customizations:
*Next are several icon customizations:
Line 21: Line 20:
**Interwiki links get a [[wp:Green_Arrow|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).
**Interwiki links get a [[wp:Green_Arrow|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].
*Lastly, two classes are provided for use by [[Template:Hover]] in providing popup text/images behind page text.


==Common.js==
==Common.js==