mediawiki-mark-up-issues

(Difference between revisions)

Jump to: navigation, search
(Address: not sure why/how this needs to be supported)
(2x replies)
Line 58: Line 58:
: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)
+
*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)
-
 
+
**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)
-
 
+
****Partly; but in HTML you can hang an intermediate class on <nowiki><tbody></nowiki>. [[User:AndyMabbett|Andy Mabbett]] 15:42, 19 Jan 2008 (PST)
-
::::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 98: Line 97:
:<address class="vcard">The <span class="fn">Microformat community</span></address>
:<address class="vcard">The <span class="fn">Microformat community</span></address>
-
: Not sure how this is a problem, which microformat uses this format? Markup within divs such as <pre><nowiki><div class="adr"></div></nowiki></pre> work fine. --[[User:JeffMcNeill|jeffmcneill]] 01:14, 21 Oct 2007 (PDT)
+
*Not sure how this is a problem, which microformat uses this format? Markup within divs such as <pre><nowiki><div class="adr"></div></nowiki></pre> work fine. --[[User:JeffMcNeill|jeffmcneill]] 01:14, 21 Oct 2007 (PDT)
 +
 
 +
** [[hatom|hAtom]] uses <nowiki><address></nowiki>. [[User:AndyMabbett|Andy Mabbett]] 15:42, 19 Jan 2008 (PST)
=Mediawiki extension development=
=Mediawiki extension development=

Revision as of 23:42, 19 January 2008

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

Contributor(s)

Jeff McNeill

URLs

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

will produce

<a fn class="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.

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