mediawiki-mark-up-issues: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
(Dtend)
(suggestions)
Line 12: Line 12:
**Workaround (if display of the URL is acceptable): use <code><nowiki><span class="url">http://example.com</span></nowiki></code> (which displays as <span class="url">http://example.com</span>)
**Workaround (if display of the URL is acceptable): use <code><nowiki><span class="url">http://example.com</span></nowiki></code> (which displays as <span class="url">http://example.com</span>)
**Workaround (if display of the URL is not acceptable): ???
**Workaround (if display of the URL is not acceptable): ???
***Why not just use <code><nowiki><span class="url">[http://example.com sample text]</span></nowiki></code>? --[[User:TiszaGergo|Tgr]]<sup>[[User talk:TiszaGergo|talk]] / [[wikipedia:User:Tgr|home]]</sup> 06:16, 9 Aug 2007 (PDT)


==Rel==
==Rel==
Line 46: Line 47:


:there is nowhere to hang the required <code>class="adr"</code>, 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.
::you can give a row a class (or any other valid HTML attribute) with <code><nowiki>{{!}} class="adr" {{!}} <span...</nowiki></code> --[[User:TiszaGergo|Tgr]]<sup>[[User talk:TiszaGergo|talk]] / [[wikipedia:User:Tgr|home]]</sup> 06:16, 9 Aug 2007 (PDT)


==Abbr==
==Abbr==

Revision as of 13:16, 9 August 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 it!

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 the 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): ???
      • Why not just use <span class="url">[http://example.com sample text]</span>? --Tgrtalk / home 06:16, 9 Aug 2007 (PDT)

Rel

  • Similarly, MediaWiki does not appear to support the use of the rel attribute on internal or external links.

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.
you can give a row a class (or any other valid HTML attribute) with {{!}} class="adr" {{!}} <span... --Tgrtalk / home 06:16, 9 Aug 2007 (PDT)

Abbr

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

Dtend

  • The work-around for date-time pattern on Wikipedia (for example, birthdays in hCard) has been to use templates to output something like:

24 February 1993 (<span class="bday" style="display:none">1993-02-24</span>)

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.

XMDP

  • 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 head element.