canmove, Confirmed users
2,848
edits
(copied the Using HTML section from the Microformats wiki http://microformats.org/wiki/Help:Editing to encourage more semantic HTML in our MediaWiki pages) |
|||
Line 26: | Line 26: | ||
The reason for not allowing a user who is not logged in to mark an edit as minor is that vandalism could then be marked as a minor edit, in which case it would stay unnoticed longer. This limitation is another reason to log in. | The reason for not allowing a user who is not logged in to mark an edit as minor is that vandalism could then be marked as a minor edit, in which case it would stay unnoticed longer. This limitation is another reason to log in. | ||
== Using HTML == | |||
MediaWiki supports a lot of simple HTML markup which you should use to enhance the semantics of your wiki pages (for [[SEO]] and other related good reasons). | |||
Here is a short list of common HTML tags that you may find useful (consult a good [[semantic HTML]] reference if you need more info about when to use which element). | |||
* <code><abbr></code> | |||
* <code><cite></code> | |||
* <code><code></code>, <code><kbd></code>, <code><samp></code>, <code><var></code> | |||
* <code><dfn></code> | |||
* <code><div></code> & <code><span></code> | |||
* <code><em></code> & <code><strong></code> | |||
* <code><li></code> / <code><ol></code> / <code><ul></code> | |||
* <code><table></code>, <code><thead></code>, <code><tbody></code>, <code><tfoot></code>, <code><tr></code>, <code><th></code>, <code><td></code> | |||
* <code><time></code> | |||
If you find additional semantic HTML elements that seem to work just fine in MediaWiki pages, please add them. | |||
In addition to using HTML elements directly in your MediaWiki pages, feel free to use common attributes like: | |||
* <code>style</code> | |||
* <code>class</code> | |||
Use the <code>class</code> attribute in particular, e.g. with <code><div></code> & <code><span></code>, to add microformats like [[hCard]] for people mentioned in wiki pages, [[hCalendar]] for events, etc. And instead of span/div, be sure to use <code><abbr></code> and <code><time></code> when appropriate! | |||
== The wiki markup == | == The wiki markup == |