mediawiki-mark-up-issues

(Difference between revisions)

Jump to: navigation, search
("abr" suported; but sometimes disabled)
m
Line 55: Line 55:
==Abbr==
==Abbr==
*MediaWiki supports the use of the <code>abbr</code> element, but this is disabled by some implementations (e.g. Wikipedia)
*MediaWiki supports the use of the <code>abbr</code> element, but this is disabled by some implementations (e.g. Wikipedia)
-
**See [[title-trigger]] for a proposed alternative to the [[abbr-design-pattern]], which would work with MediaWiki.
+
**See [[title-trigger]] for a proposed alternative to the [[abbr-design-pattern]], which would work on Wikipedia.
==Dtend==
==Dtend==

Revision as of 11:33, 29 August 2007

Contents

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

Rel

Tables


{| 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)
The need is not to apply a class to a single row, but (as stated) to apply it to (in this example) "the three relevant table rows, and no others". Andy Mabbett 02:14, 10 Aug 2007 (PDT)

Abbr

Dtend


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

Address

Address elements cannot be added to page content.

<address class="vcard">The <span class="fn org">Microformat community</span></address>

displays as:

<address class="vcard">The Microformat community</address>
mediawiki-mark-up-issues was last modified: Wednesday, December 31st, 1969

Views