mediawiki-mark-up-issues: Difference between revisions
Jump to navigation
Jump to search
AndyMabbett (talk | contribs) No edit summary |
AndyMabbett (talk | contribs) mNo edit summary |
||
Line 3: | Line 3: | ||
Issues with adding microformat mark-up to sites using [http://www.mediawiki.org/ MediaWiki] (such as this wiki, and [http://wikipedia.org Wikipedia]). | Issues with adding microformat mark-up to sites using [http://www.mediawiki.org/ MediaWiki] (such as this wiki, and [http://wikipedia.org Wikipedia]). | ||
If you | If you know of a solution, or work-around, please post them! | ||
==Author== | ==Author== | ||
Line 42: | Line 42: | ||
</code> | </code> | ||
:there is nowhere to hang class="adr", such that it wraps | :there is nowhere to hang class="adr", such that it wraps the three relevant table rows, and no others. |
Revision as of 16:47, 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
URLs
- Wiki mark-up such as
[http://example.com sample text]
(which displays as sample text) cannot have a class="url" added to it- 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): ???
- Workaround (if display of the URL is acceptable): use
Tables
- In the following code snippet (from an "infobox" table):
{| class="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 class="adr", such that it wraps the three relevant table rows, and no others.