currency-proposal

(Difference between revisions)

Jump to: navigation, search
m (Reverted edit of XtfG6g, changed back to last version by Tantek)
Line 48: Line 48:
</pre>
</pre>
-
Example using the <code>unit</code> class: <span class="money"><span class="amount">99</span><abbr class="unit">
+
Example using the <code>unit</code> class: <span class="money"><span class="amount">99</span><abbr class="unit">&cent;</abbr><abbr class="currency" title="USD"></abbr></span>
 +
 
 +
<pre>
 +
<span class="money"><span class="amount">99</span><abbr class="unit">&cent;</abbr><abbr class="currency" title="USD"></abbr></span>
 +
</pre>
 +
 
 +
Table example with global definition of the currency:
 +
 
 +
<pre>
 +
  <table>
 +
      <tr><th>Price in <abbr id="u1" class="currency" title="USD">US$</abbr></th></tr>
 +
      <tr><td><div class="money">39.99<a href="#u1" class="include"></a></div></td></tr>
 +
  </table>
 +
</pre>
 +
 
 +
== Issues ==
 +
 
 +
Discussion of this proposal by specific problems on [[currency-issues]].
 +
 
 +
==Related pages==
 +
{{currency-related-pages}}

Revision as of 16:18, 18 June 2007

Contents

Currency

currency is a simple microformat for marking up money amounts, such as prices of products/services or financial facts.

Introduction

Money amounts are one of the most widespread content found on the Web, but the lack of unambiguous representation of the currency they are expressed in, or the date that they relate to, makes comparison and matching of offerings online difficult.

Acknowledgments

This proposal was written based on the contributions of several members of the community. Original brainstorming ideas and strawman proposal can be viewed at currency-brainstorming and currency-brainstorming#Andy_Mabbett

Scope

This proposal limits its scope to:

Features

Root Class Name

The root class name for a money amount is money.

Property List

Examples

Simple in-line example with local definition of the currency unit: $39.99

<span class="money"><abbr class="currency" title="USD">$</abbr><span class="amount">39.99</span></span>

Text representation of the amount: Thirty-nine Dollars

<span class="money"><abbr class="amount" title="39">Thirty-nine</abbr> <abbr class="currency" title="USD">Dollars</abbr></span>

Example using the unit class: 99¢

<span class="money"><span class="amount">99</span><abbr class="unit">¢</abbr><abbr class="currency" title="USD"></abbr></span>

Table example with global definition of the currency:

   <table>
      <tr><th>Price in <abbr id="u1" class="currency" title="USD">US$</abbr></th></tr>
      <tr><td><div class="money">39.99<a href="#u1" class="include"></a></div></td></tr>
   </table>

Issues

Discussion of this proposal by specific problems on currency-issues.

Related pages

currency-proposal was last modified: Wednesday, December 31st, 1969

Views