mediawiki-mark-up-issues: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(rel & abbr not supported)
Line 14: Line 14:


==Tables==
==Tables==
*In the following code snippet (from an "[http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Infoboxes infobox]" table):
*In the following code snippet (from an "[http://en.wikipedia.org/wiki/Wikipedia:WikiProject_Infoboxes infobox]" table with an included [[hCard]]):


<code>
<code>
Line 42: Line 42:
</code>
</code>


:there is nowhere to hang class="adr", such that it wraps the three relevant table rows, and no others.
:there is nowhere to hang the required <code>class="adr"</code>, such that it wraps the three relevant table rows, and no others.
 


==Rel==
==Rel==

Revision as of 20:10, 27 July 2007

MediaWiki mark-up issues

Issues with adding microformat mark-up to sites using MediaWiki (such as this wiki, and Wikipedia).

If you know of a solution, or work-around, please post them!

Author

Andy Mabbett

URLs

  • Wiki mark-up such as [http://example.com sample text] (which displays as sample text) cannot have a class="url" added to th output "A" element.
    • Workaround (if display of the URL is acceptable): use <span class="url">http://example.com</span> (which displays as http://example.com)
    • Workaround (if display of the URL is not acceptable): ???

Tables

  • In the following code snippet (from an "infobox" table with an included hCard):


{| class="infobox vcard" 
| class="fn org" | '''{{{name}}}'''
|-
{{#if: {{{address|}}} |
! Address
{{!}} <span class="street-address">{{{address}}}}}</span>
|-
{{#if:{{{city|}}} |
! City
{{!}} <span class="locality">{{{city|}}}}}</span>
|-
{{#if:{{{country|}}} |
! Country
{{!}} <span class="country-name">{{{country|}}}}}</span>
|-
{{#if:{{{latitude|}}} |
!
{{!}} <{{Coord|{{{latitude}}}|{{{longitude}}}|display=title}} }}
|}

there is nowhere to hang the required class="adr", such that it wraps the three relevant table rows, and no others.

Rel

  • MediaWiki does not appear to support the use of the rel attribute on links.

Abbr

  • MediaWiki does not appear to support the use of the abbr element.