mediawiki: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
No edit summary
 
m (Replace <entry-title> with {{DISPLAYTITLE:}})
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
#REDIRECT[[mediawiki-mark-up-issues]]
{{DISPLAYTITLE:MediaWiki}}
 
{{stub}}
 
'''[http://mediawiki.org/ MediaWiki]''' is an open source wiki [[cms]].
 
== microformats support ==
MediaWiki has some built-in microformats support:
* [http://www.mediawiki.org/wiki/Microformats MediaWiki Microformats] support
 
As well as extensions for additional elements that help with microformats support:
* [http://www.mediawiki.org/wiki/Extension:AllowAnchorTags Extension:AllowAnchorTags] Adds <code>&lt;anchor>&lt;/anchor></code> tags and parses them to <code>&lt;a href=>&lt;/a></code> tags.
* [http://www.mediawiki.org/wiki/Extension:EnableAbbrTags Extension:EnableAbbrTags] Adds support for <code>&lt;xabbr>&lt;/xabbr></code> tags and parses them to <code>&lt;abbr>&lt;/abbr></code> tags.
 
== in progress ==
=== Mark up articles with [[hAtom]] ===
 
The microformats wiki—which runs MediaWiki with a custom skin—uses microformats in the mark-up of the page. Namely, each wiki page (article) is marked up using hAtom, providing common structure for titles, authors, content and so forth.
 
===Provide ability to insert microformats into pages===
 
That is, to mark-up an event, person, business and so forth as part of an article, is super-cumbersome. This is something no-one has solved yet, and requires an update to the wiki shorthand mark-up mechanism to allow people to add `class`, `rel` and `rev` attributes. Some attempts have made toward this: The Link Attributes extension for MediaWiki augments the link syntax to allow class, rel and rev. http://www.mediawiki.org/wiki/Extension:Link_Attributes
 
I've also been working on a possible Markdown extension for the same purpose, that might look something like this, using braces for attributes:
 
<source lang=text>[Ben Ward](http://benward.me){fn url, rel=me}</source>
 
To produce:
 
<source lang=html4strict><a class="fn url" rel="me"></source>
 
[[twiki|TWiki]] could actually evolve in a similar way:
 
<source lang=text>[[http://benward.me][Ben Ward][fn url, rel=me]]</source>
 
It would also be necessary to allow adding class attributes to arbitrary blocks (p, div, spans etc.)
 
== see also ==
* [http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Microformats Wikipedia:WikiProject Microformats]
* [[mediawiki-customization]]
* [[mediawiki-mark-up-issues]]
* [[cms]]
* [[hCard]]

Latest revision as of 16:29, 18 July 2020


This article is a stub. You can help the microformats.org wiki by expanding it.

MediaWiki is an open source wiki cms.

microformats support

MediaWiki has some built-in microformats support:

As well as extensions for additional elements that help with microformats support:

in progress

Mark up articles with hAtom

The microformats wiki—which runs MediaWiki with a custom skin—uses microformats in the mark-up of the page. Namely, each wiki page (article) is marked up using hAtom, providing common structure for titles, authors, content and so forth.

Provide ability to insert microformats into pages

That is, to mark-up an event, person, business and so forth as part of an article, is super-cumbersome. This is something no-one has solved yet, and requires an update to the wiki shorthand mark-up mechanism to allow people to add `class`, `rel` and `rev` attributes. Some attempts have made toward this: The Link Attributes extension for MediaWiki augments the link syntax to allow class, rel and rev. http://www.mediawiki.org/wiki/Extension:Link_Attributes

I've also been working on a possible Markdown extension for the same purpose, that might look something like this, using braces for attributes:

[Ben Ward](http://benward.me){fn url, rel=me}

To produce:

<a class="fn url" rel="me">

TWiki could actually evolve in a similar way:

[[http://benward.me][Ben Ward][fn url, rel=me]]

It would also be necessary to allow adding class attributes to arbitrary blocks (p, div, spans etc.)

see also