Help:Editing: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
No edit summary
 
(draft)
Line 1: Line 1:
For help with the wiki syntax, please see [http://en.wikipedia.org/wiki/Wikipedia:How_to_edit_a_page Wikipedia's guide].
== The Basics ==
Please review [[how-to-play]].
 
== 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>&lt;abbr&gt;</code>
* <code>&lt;cite&gt;</code>
* <code>&lt;code&gt;</code>, <code>&lt;kbd&gt;</code>, <code>&lt;samp&gt;</code>, <code>&lt;var&gt;</code>
* <code>&lt;dfn&gt;</code>
* <code>&lt;div&gt;</code> &amp; <code>&lt;span&gt;</code>
* <code>&lt;em&gt;</code> &amp; <code>&lt;strong&gt;</code>
* <code>&lt;li&gt;</code> / <code>&lt;ol&gt;</code> / <code>&lt;ul&gt;</code>
* <code>&lt;table&gt;</code>, <code>&lt;thead&gt;</code>, <code>&lt;tbody&gt;</code>, <code>&lt;tfoot&gt;</code>, <code>&lt;tr&gt;</code>, <code>&lt;th&gt;</code>, <code>&lt;td&gt;</code>
* <code>&lt;time&gt;</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>
 
Using the <code>class</code> attribute in particular, e.g. with <code>&lt;div&gt;</code> &amp; <code>&lt;span&gt;</code>, you can add microformats like [[hCard]] for people mentioned in wiki pages, [[hCalendar]] for events, etc. And instead of span/div, be sure to use <code>&lt;abbr&gt;</code> and <code>&lt;time&gt;</code> when appropriate!
 
== See Also ==
For more help with the wiki syntax, presentational markup, please see also:
* [http://en.wikipedia.org/wiki/Wikipedia:How_to_edit_a_page Wikipedia's guide]
* https://wiki.mozilla.org/Help:Editing

Revision as of 21:06, 30 April 2012

The Basics

Please review how-to-play.

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).

  • <abbr>
  • <cite>
  • <code>, <kbd>, <samp>, <var>
  • <dfn>
  • <div> & <span>
  • <em> & <strong>
  • <li> / <ol> / <ul>
  • <table>, <thead>, <tbody>, <tfoot>, <tr>, <th>, <td>
  • <time>

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:

  • style
  • class

Using the class attribute in particular, e.g. with <div> & <span>, you can add microformats like hCard for people mentioned in wiki pages, hCalendar for events, etc. And instead of span/div, be sure to use <abbr> and <time> when appropriate!

See Also

For more help with the wiki syntax, presentational markup, please see also: