<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sudimiy</id>
	<title>Microformats Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://microformats.org/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Sudimiy"/>
	<link rel="alternate" type="text/html" href="https://microformats.org/wiki/Special:Contributions/Sudimiy"/>
	<updated>2026-05-03T07:21:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://microformats.org/wiki/index.php?title=abbr-design-pattern&amp;diff=12481</id>
		<title>abbr-design-pattern</title>
		<link rel="alternate" type="text/html" href="https://microformats.org/wiki/index.php?title=abbr-design-pattern&amp;diff=12481"/>
		<updated>2007-01-12T15:23:44Z</updated>

		<summary type="html">&lt;p&gt;Sudimiy: /* Discussion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Abbr design pattern =&lt;br /&gt;
&lt;br /&gt;
== Purpose ==&lt;br /&gt;
* Use the [[abbr-design-pattern]] to make text that is human readable also formally machine readable&lt;br /&gt;
* Avoiding using the [[abbr-design-pattern]] to re-encode human text or to hide data&lt;br /&gt;
&lt;br /&gt;
== How to use it ==&lt;br /&gt;
* enclose the human-friendly text that you want to make machine readable with &amp;lt;code&amp;gt;&amp;amp;lt;abbr&amp;gt;&amp;lt;/code&amp;gt; &lt;br /&gt;
* as per the [[class-design-pattern]], add the appropriate &amp;lt;code&amp;gt;class&amp;lt;/code&amp;gt; attribute to the &amp;lt;code&amp;gt;abbr&amp;lt;/code&amp;gt; element&lt;br /&gt;
* add a &amp;lt;code&amp;gt;title&amp;lt;/code&amp;gt; attribute to the &amp;lt;code&amp;gt;abbr&amp;lt;/code&amp;gt; element with the machine readable data as the value&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
The [[datetime-design-pattern]] formally encodes (the notoriously unparsable) datetimes into an &amp;lt;code&amp;gt;abbr&amp;lt;/code&amp;gt; element.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The party is at 10 o'clock on the 10th.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
The party is at &lt;br /&gt;
&amp;lt;abbr class=&amp;quot;dtstart&amp;quot; title=&amp;quot;20051010T10:10:10-0100&amp;quot;&amp;gt;10 o'clock on the 10th&amp;lt;/abbr&amp;gt;.&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Discussion ==&lt;br /&gt;
''This discussion is culled from [http://microformats.org/discuss/mail/microformats-discuss/2005-October/001277.html here]''. Consider two possible uses for the [[abbr-design-pattern]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
using ABBR to encode machine readable data around human readable data&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;abbr class=&amp;quot;dtstart&amp;quot; title=&amp;quot;20051010T10:10:10-0100&amp;quot;&amp;gt;10 o'clock on the 10th&amp;lt;/abbr&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
using ABBR to encode more formal human data around something less formal &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;abbr class=&amp;quot;author&amp;quot; title=&amp;quot;Danny Ayers&amp;quot;&amp;gt;Danny&amp;lt;/abbr&amp;gt; &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Use #1 is encouraged if there's a reasonable need for it. Use #2 is discouraged under the [http://c2.com/cgi-bin/wiki?DontRepeatYourself Don't Repeat Yourself principle], as: &amp;quot;#2 is a case of *more* information being invisibly present, namely, the&lt;br /&gt;
last name in this case. If someone is not willing to make some information visible, then we&lt;br /&gt;
shouldn't be encouraging them to store that information invisibly, for all&lt;br /&gt;
the same reasons that invisible metadata is bad/futile in the first place.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
''I'd like to delete this below, as the points are covered above''&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow:auto; height: 1px;&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;a href=&amp;quot;http://slutsporn.ifastnet.com/&amp;quot;&amp;gt;0&amp;lt;/a&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
* Theoretically, this could be done with almost any HTML element. But is it a good idea? If it's not, is abbr the only one? [[DavidJanes]]&lt;br /&gt;
* abbr-design-pattern should be avoided, if possible. [[User:RobertBachmann|RobertBachmann]]&lt;br /&gt;
** why, or under what circumstances? For example, it is quite useful with datetimes. Should there not be other potentially analogous situations? [[DavidJanes]]&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Main_Page#Design_Patterns|All microformat design patterns]]&lt;br /&gt;
* [http://microformats.org/discuss/mail/microformats-discuss/2005-October/001277.html discussion in microformats-discuss]&lt;br /&gt;
* [[datetime-design-pattern]] uses [[abbr-design-pattern]]&lt;br /&gt;
* [http://www.w3.org/TR/REC-html40/struct/text.html#edef-ABBR HTML 4.01 definition]&lt;/div&gt;</summary>
		<author><name>Sudimiy</name></author>
	</entry>
</feed>