mediawiki-mark-up-issues

(Difference between revisions)

Jump to: navigation, search
(resp. to semantic mediawiki appropriateness)
(Various issues discussed and addressed.)
Line 14: Line 14:
***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)
***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)
****Returns a value of "sample text" [[User:AndyMabbett|Andy Mabbett]] 02:12, 10 Aug 2007 (PDT)
****Returns a value of "sample text" [[User:AndyMabbett|Andy Mabbett]] 02:12, 10 Aug 2007 (PDT)
 +
 +
* The [http://www.mediawiki.org/wiki/Extension:ExtendAnchorTags ExtendAnchorTags] extension provides a work around using <xa></xa> tags, e.g.
 +
<xa class='fn org' href='http://microformats.org/'>microformats</xa>
 +
will produce
 +
<a fn org href="http://microformats.org/>microformats</a> --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)
==Rel==
==Rel==
*Similarly, MediaWiki does not appear to support the use of the <code>rel</code> attribute on internal or external links.
*Similarly, MediaWiki does not appear to support the use of the <code>rel</code> attribute on internal or external links.
 +
** See [http://www.mediawiki.org/wiki/Extension:ExtendAnchorTags ExtendAnchorTags] extension --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)
==Tables==
==Tables==
Line 52: Line 58:
:::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". [[User:AndyMabbett|Andy Mabbett]] 02:14, 10 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". [[User:AndyMabbett|Andy Mabbett]] 02:14, 10 Aug 2007 (PDT)
 +
 +
::::It seems this is a challenge with HTML tables and not necessarily MediaWiki? Please advise --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)
==Abbr==
==Abbr==
Line 73: Line 81:
==XMDP==
==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 <code>head</code> element.
*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 <code>head</code> element.
 +
 +
** Extensions can do this. --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)
==Address==
==Address==
Line 87: Line 97:
*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?
*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?
** 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)
** 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)
 +
 +
* Am working out the extensions needed to address this. --[[User:JeffMcNeill|jeffmcneill]] 17:22, 20 Oct 2007 (PDT)

Revision as of 00:22, 21 October 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

<xa class='fn org' href='http://microformats.org/'>microformats</xa>

will produce

<a fn org href="http://microformats.org/>microformats</a> --jeffmcneill 17:22, 20 Oct 2007 (PDT)

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)
It seems this is a challenge with HTML tables and not necessarily MediaWiki? Please advise --jeffmcneill 17:22, 20 Oct 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 extension development

mediawiki-mark-up-issues was last modified: Wednesday, December 31st, 1969

Views