xfolk-profile: Difference between revisions
Jump to navigation
Jump to search
CacchIerer (talk | contribs) m (bobodron) |
m (Replace <entry-title> with {{DISPLAYTITLE:}}) |
||
(9 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:xFolk meta data profile}} | |||
The following is an [http://gmpg.org/xmdp/ XMDP] profile for the [[xfolk|xFolk]] specification. | |||
== Authors == | |||
<ul id="author"> | |||
<li>[[User:Tantek|Tantek Çelik]] | |||
<li>[http://thecommunityengine.com/home Bud Gibson]</li> | |||
</ul> | |||
== URLs == | |||
This profile is hosted as a separate XMDP file on microformats.org: | |||
* http://microformats.org/profile/xfolk | |||
* shortURL: http://ufs.cc/x/xfolk | |||
== Usage == | |||
Profiles are referenced in (X)HTML files in the <HEAD> tag, e.g.: | |||
<source lang=html4strict> | |||
<head profile='http://microformats.org/profile/xfolk'> | |||
</source> | |||
== Profile == | |||
<p>As described in [http://www.w3.org/TR/html401/struct/global.html#h-7.4.4.3 HTML4 Meta data profiles] and further elaborated on in [http://gmpg.org/xmdp/ XHTML Meta Data Profiles] with specific reference to the [http://gmpg.org/xfn/11 XFN 1.1 relationships meta data profile] and | |||
[[xoxo|XOXO Profile]].</p> | [[xoxo|XOXO Profile]].</p> | ||
<p>The author Bud believes this profile provides a set of class attribute values sufficient to be used in working implementations of xFolk. The profile may be incomplete and is subject to change as xFolk evolves.</p> | |||
<p>Note that in practice it makes sense to include the [[rel-tag]] profile in any profile of xFolk, since xFolk makes critical use of rel-tag as a building block.</p> | |||
<source lang=html4strict> | |||
<dl class="profile"> | |||
<dt id="class">class</dt> | |||
<dd> | |||
<p>[http://www.w3.org/TR/html401/struct/global.html#adef-class HTML4 definition of the 'class' attribute]. This meta data profile defines some 'class' attribute values (class names) and their meanings as suggested by a [http://www.w3.org/TR/WD-htmllink-970328#profile" draft of "Hypertext Links in HTML"]:</p> | |||
<dl> | |||
<dt id="xfolkentry">xfolkentry</dt> | |||
<dd>Indicates a container element for an xFolk entry. An xFolk entry indicates one bookmark with supporting metadata that the user wants to have aggregated into a folksonomy. The xfolkentry class attribute value is usually applied to <div>, <ul>, <ol>, <dt>, <p> or <span> elements. xFolk elements contained in an xfolkentry may be nested at an arbitrary depth.</dd> | |||
<dt id="taggedlink">taggedlink</dt> | |||
<dd>An <a> tag of class taggedlink indicates the URL of the item the xFolk entry bookmarks. One and only one <a> element of class taggedlink must occur within each element of class xfolkentry. The title of the bookmark is in order of availability: (1) the value of an optional title attribute; (2) The value of the <a> element itself.</dd> | |||
<dt id="description">description</dt> | |||
<dd>A further description of the xFolk entry. Typically applied to <dd>, <li>, <p>, and <span> elements. Elements of class <code>description</code> are optional and may occur multiply. When multiple elements of class <code>description</code> are present, they are assumed to be in document order.</dd> | |||
<dt id="extended">extended</dt> | |||
<dd>A deprecated class value that is equivalent to <code>description</code>.</dd> | |||
</dl> | |||
</dd> | |||
</dl> | |||
</source> | |||
== FAQ == | |||
<div class="issues"> | |||
* Does the above snippet need fixing? I am not sure whether it's supposed to be displayed as "HTML source code" - or is this meant to be the actual HTML. - [[User:Drozzy]] | |||
** Yes it is meant to be displayed as HTML source, hence the <code><source></code> tags surrounding it. If you want to view the profile as a page, see http://microformats.org/profile/xfolk (also linked from the top of this page) - [[User:Tantek|Tantek]] 17:07, 22 March 2010 (UTC) | |||
</div> | |||
==Related pages== | ==Related pages== | ||
{{template:xfolk-related-pages}} | {{template:xfolk-related-pages}} | ||
* [[xfolk-0.5-XMDP]] | * [[xfolk-0.5-XMDP]] |
Latest revision as of 16:35, 18 July 2020
The following is an XMDP profile for the xFolk specification.
Authors
URLs
This profile is hosted as a separate XMDP file on microformats.org:
Usage
Profiles are referenced in (X)HTML files in the <HEAD> tag, e.g.:
<head profile='http://microformats.org/profile/xfolk'>
Profile
As described in HTML4 Meta data profiles and further elaborated on in XHTML Meta Data Profiles with specific reference to the XFN 1.1 relationships meta data profile and XOXO Profile.
The author Bud believes this profile provides a set of class attribute values sufficient to be used in working implementations of xFolk. The profile may be incomplete and is subject to change as xFolk evolves.
Note that in practice it makes sense to include the rel-tag profile in any profile of xFolk, since xFolk makes critical use of rel-tag as a building block.
<dl class="profile">
<dt id="class">class</dt>
<dd>
<p>[http://www.w3.org/TR/html401/struct/global.html#adef-class HTML4 definition of the 'class' attribute]. This meta data profile defines some 'class' attribute values (class names) and their meanings as suggested by a [http://www.w3.org/TR/WD-htmllink-970328#profile" draft of "Hypertext Links in HTML"]:</p>
<dl>
<dt id="xfolkentry">xfolkentry</dt>
<dd>Indicates a container element for an xFolk entry. An xFolk entry indicates one bookmark with supporting metadata that the user wants to have aggregated into a folksonomy. The xfolkentry class attribute value is usually applied to <div>, <ul>, <ol>, <dt>, <p> or <span> elements. xFolk elements contained in an xfolkentry may be nested at an arbitrary depth.</dd>
<dt id="taggedlink">taggedlink</dt>
<dd>An <a> tag of class taggedlink indicates the URL of the item the xFolk entry bookmarks. One and only one <a> element of class taggedlink must occur within each element of class xfolkentry. The title of the bookmark is in order of availability: (1) the value of an optional title attribute; (2) The value of the <a> element itself.</dd>
<dt id="description">description</dt>
<dd>A further description of the xFolk entry. Typically applied to <dd>, <li>, <p>, and <span> elements. Elements of class <code>description</code> are optional and may occur multiply. When multiple elements of class <code>description</code> are present, they are assumed to be in document order.</dd>
<dt id="extended">extended</dt>
<dd>A deprecated class value that is equivalent to <code>description</code>.</dd>
</dl>
</dd>
</dl>
FAQ
- Does the above snippet need fixing? I am not sure whether it's supposed to be displayed as "HTML source code" - or is this meant to be the actual HTML. - User:Drozzy
- Yes it is meant to be displayed as HTML source, hence the
<source>
tags surrounding it. If you want to view the profile as a page, see http://microformats.org/profile/xfolk (also linked from the top of this page) - Tantek 17:07, 22 March 2010 (UTC)
- Yes it is meant to be displayed as HTML source, hence the