<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=C4tnoOrbor</id>
	<title>Microformats Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=C4tnoOrbor"/>
	<link rel="alternate" type="text/html" href="http://microformats.org/wiki/Special:Contributions/C4tnoOrbor"/>
	<updated>2026-04-15T10:27:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>http://microformats.org/wiki/index.php?title=mediawiki-mark-up-issues&amp;diff=36719</id>
		<title>mediawiki-mark-up-issues</title>
		<link rel="alternate" type="text/html" href="http://microformats.org/wiki/index.php?title=mediawiki-mark-up-issues&amp;diff=36719"/>
		<updated>2008-12-28T01:39:26Z</updated>

		<summary type="html">&lt;p&gt;C4tnoOrbor: rogetb&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;lasitzelmon&lt;br /&gt;
=MediaWiki mark-up issues=&lt;br /&gt;
{{TOC-right}}&lt;br /&gt;
&lt;br /&gt;
Issues with adding microformat mark-up to sites using [http://www.mediawiki.org/ MediaWiki] (such as this wiki, and [http://wikipedia.org Wikipedia]).&lt;br /&gt;
&lt;br /&gt;
If you know of a solution, or work-around, please post it!&lt;br /&gt;
&lt;br /&gt;
==Author==&lt;br /&gt;
[[User:AndyMabbett|Andy Mabbett]]&lt;br /&gt;
&lt;br /&gt;
==Contributor(s)==&lt;br /&gt;
[[User:JeffMcNeill|Jeff McNeill]]&lt;br /&gt;
&lt;br /&gt;
==URLs==&lt;br /&gt;
*Wiki mark-up such as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;[http://example.com sample text]&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (which displays as [http://example.com sample text]) cannot have a class=&amp;quot;url&amp;quot; added to the output &amp;quot;&amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;&amp;quot; element.&lt;br /&gt;
**Workaround (if display of the URL is acceptable): use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;url&amp;quot;&amp;gt;http://example.com&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; (which displays as &amp;lt;span class=&amp;quot;url&amp;quot;&amp;gt;http://example.com&amp;lt;/span&amp;gt;)&lt;br /&gt;
**Workaround (if display of the URL is not acceptable): ???&lt;br /&gt;
***Why not just use &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;span class=&amp;quot;url&amp;quot;&amp;gt;[http://example.com sample text]&amp;lt;/span&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;? --[[User:TiszaGergo|Tgr]]&amp;lt;sup&amp;gt;[[User talk:TiszaGergo|talk]] / [[wikipedia:User:Tgr|home]]&amp;lt;/sup&amp;gt; 06:16, 9 Aug 2007 (PDT)&lt;br /&gt;
****Returns a value of &amp;quot;sample text&amp;quot; [[User:AndyMabbett|Andy Mabbett]] 02:12, 10 Aug 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
* The [http://www.mediawiki.org/wiki/Extension:ExtendAnchorTags ExtendAnchorTags] extension provides a work around using &amp;lt;xa&amp;gt;&amp;lt;/xa&amp;gt; tags, e.g.&lt;br /&gt;
 &amp;lt;xa class=&amp;quot;fn org&amp;quot; href=&amp;quot;http://microformats.org/&amp;quot;&amp;gt;microformats&amp;lt;/xa&amp;gt;&lt;br /&gt;
will produce&lt;br /&gt;
 &amp;lt;a fn class=&amp;quot;fn org&amp;quot; href=&amp;quot;http://microformats.org/&amp;gt;microformats&amp;lt;/a&amp;gt; --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Rel==&lt;br /&gt;
*Similarly, MediaWiki does not appear to support the use of the &amp;lt;code&amp;gt;rel&amp;lt;/code&amp;gt; attribute on internal or external links.&lt;br /&gt;
** See [http://www.mediawiki.org/wiki/Extension:ExtendAnchorTags ExtendAnchorTags] extension --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Tables==&lt;br /&gt;
*In the following code snippet (from an &amp;quot;[http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Infoboxes infobox]&amp;quot; table with an included [[hCard]]):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
{| class=&amp;quot;infobox vcard&amp;quot; &lt;br /&gt;
| class=&amp;quot;fn org&amp;quot; | '''{{{name}}}'''&lt;br /&gt;
|-&lt;br /&gt;
{{#if: {{{address|}}} |&lt;br /&gt;
! Address&lt;br /&gt;
{{!}} &amp;lt;span class=&amp;quot;street-address&amp;quot;&amp;gt;{{{address}}}}}&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
{{#if:{{{city|}}} |&lt;br /&gt;
! City&lt;br /&gt;
{{!}} &amp;lt;span class=&amp;quot;locality&amp;quot;&amp;gt;{{{city|}}}}}&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
{{#if:{{{country|}}} |&lt;br /&gt;
! Country&lt;br /&gt;
{{!}} &amp;lt;span class=&amp;quot;country-name&amp;quot;&amp;gt;{{{country|}}}}}&amp;lt;/span&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
{{#if:{{{latitude|}}} |&lt;br /&gt;
!&lt;br /&gt;
{{!}} &amp;lt;{{Coord|{{{latitude}}}|{{{longitude}}}|display=title}} }}&lt;br /&gt;
|}&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
:there is nowhere to hang the required &amp;lt;code&amp;gt;class=&amp;quot;adr&amp;quot;&amp;lt;/code&amp;gt;, such that it wraps the three relevant table rows, and no others.&lt;br /&gt;
&lt;br /&gt;
*you can give a row a class (or any other valid HTML attribute) with &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{!}} class=&amp;quot;adr&amp;quot; {{!}} &amp;lt;span...&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; --[[User:TiszaGergo|Tgr]]&amp;lt;sup&amp;gt;[[User talk:TiszaGergo|talk]] / [[wikipedia:User:Tgr|home]]&amp;lt;/sup&amp;gt; 06:16, 9 Aug 2007 (PDT)&lt;br /&gt;
**The need is not to apply a class to a single row, but (as stated) to apply it to (in this example) &amp;quot;the three relevant table rows, and no others&amp;quot;. [[User:AndyMabbett|Andy Mabbett]] 02:14, 10 Aug 2007 (PDT)&lt;br /&gt;
***It seems this is a challenge with HTML tables and not necessarily MediaWiki? Please advise --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)&lt;br /&gt;
****Partly; but in HTML you can hang an intermediate class on &amp;lt;nowiki&amp;gt;&amp;lt;tbody&amp;gt;&amp;lt;/nowiki&amp;gt;. [[User:AndyMabbett|Andy Mabbett]] 15:42, 19 Jan 2008 (PST)&lt;br /&gt;
&lt;br /&gt;
==Abbr==&lt;br /&gt;
*MediaWiki supports the use of the &amp;lt;code&amp;gt;abbr&amp;lt;/code&amp;gt; element, but this is disabled by some implementations (e.g. Wikipedia)&lt;br /&gt;
**See [[title-trigger]] for a proposed alternative to the [[abbr-design-pattern]], which would work on Wikipedia.&lt;br /&gt;
*** A mediawiki extension [http://www.mediawiki.org/wiki/Extension:EnableAbbrTags EnableAbbrTags] can support abbr by using a new xabbr command &lt;br /&gt;
&lt;br /&gt;
==Dtend==&lt;br /&gt;
&lt;br /&gt;
*The work-around for date-time pattern on Wikipedia (for example, birthdays in hCard) has been to use templates to output something like: &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;&lt;br /&gt;
24 February 1993 (&amp;lt;span class=&amp;quot;bday&amp;quot; style=&amp;quot;display:none&amp;quot;&amp;gt;1993-02-24&amp;lt;/span&amp;gt;)&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
which degrades gracefully if CSS is not available. It is not acceptable to do so, to show the date advanced by one day for end-dates in hCalendar.&lt;br /&gt;
&lt;br /&gt;
**See this [http://microformats.org/discuss/mail/microformats-discuss/2007-August/010449.html proposal to resolve exclusive end-date issue], for a proposal which would allow ''inclusive'' end dates to be marked up.&lt;br /&gt;
&lt;br /&gt;
==XMDP==&lt;br /&gt;
*As with many CMSs, there is no facility for an editor to add an [[XMDP]] URI to (or in any other way to alter) the &amp;lt;code&amp;gt;head&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
** Extensions can do this, working on it... --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Address==&lt;br /&gt;
&lt;br /&gt;
Address elements cannot be added to page content.&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;address class=&amp;quot;vcard&amp;quot;&amp;gt;The &amp;lt;span class=&amp;quot;fn org&amp;quot;&amp;gt;Microformat community&amp;lt;/span&amp;gt;&amp;lt;/address&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
displays as:&lt;br /&gt;
&lt;br /&gt;
:&amp;lt;address class=&amp;quot;vcard&amp;quot;&amp;gt;The &amp;lt;span class=&amp;quot;fn&amp;quot;&amp;gt;Microformat community&amp;lt;/span&amp;gt;&amp;lt;/address&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Not sure how this is a problem, which microformat uses this format? Markup within divs such as &amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;div class=&amp;quot;adr&amp;quot;&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt; work fine. --[[User:JeffMcNeill|jeffmcneill]] 01:14, 21 Oct 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
** [[hatom|hAtom]] uses &amp;lt;nowiki&amp;gt;&amp;lt;address&amp;gt;&amp;lt;/nowiki&amp;gt;. [[User:AndyMabbett|Andy Mabbett]] 15:42, 19 Jan 2008 (PST)&lt;br /&gt;
&lt;br /&gt;
=Mediawiki extension development=&lt;br /&gt;
*Are there any generic xml parsers/other extensions under development to provide support for some (most?) of the microformat needs? Is [http://ontoworld.org/wiki/Semantic_MediaWiki semantic mediawiki] a possible candidate for microformat support?&lt;br /&gt;
** It appears that semantic mediawiki is trying to do something different, namely OWL compliance. Based on the mediawiki [http://meta.wikimedia.org/wiki/Semantic_MediaWiki description of the semantic mediawiki project], ''hacks'' are to some extent discouraged (which to my mind is the orientation of Microformats). --[[User:JeffMcNeill|jeffmcneill]] 13:41, 18 Oct 2007 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Am working out the extensions needed to address this. --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)&lt;/div&gt;</summary>
		<author><name>C4tnoOrbor</name></author>
	</entry>
</feed>