Help:Editing: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(draft)
m (Reverted edits by ABIDEEN10 (Talk) to last version by Tantek)
 
(9 intermediate revisions by 5 users not shown)
Line 23: Line 23:
* <code>class</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!
Use the <code>class</code> attribute in particular, e.g. with <code>&lt;div&gt;</code> &amp; <code>&lt;span&gt;</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>&lt;abbr&gt;</code> and <code>&lt;time&gt;</code> when appropriate!


== See Also ==
== See Also ==

Latest revision as of 04:59, 7 April 2013

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

Use the class attribute in particular, e.g. with <div> & <span>, to 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: