维基专题:微 格式
![]() | 此維基 如果您目 |
UF | |
维基 | ![]() |
{{User Pigsonthewing Microformats}} |
什么是 微 格式 ?
[编辑]从技术上
<span class="geo"><span class="latitude">52.48</span>, <span class="longitude">-1.89</span></span>
这样
其他还有很多
Firefox3
在 维基百科 上 如何 使用 微 格式 ?
[编辑]Firefox 浏览
microdata
[编辑]Mediawiki
参与 者
[编辑]用 户框
[编辑]横 幅
[编辑]Meta templates
[编辑]For articles
[编辑]- {{UF-coord-th}} - table header for columns of coordinates using {{coord}}.
For talk pages
[编辑]模 板文 档
[编辑]- {{UF-hcard-geo}}
- {{UF-hcard-org}}
- {{UF-hcard-part}}
- {{UF-hcard-person}}
- {{UF-hcard-place}}
- {{UF-coord}}
分 类
[编辑]相 关项目
[编辑]- See also: en:Wikipedia:Metadata
- google
提供 的 一个微格式检测工具
任 务
[编辑]当 前 可用 微 格式
[编辑]Geo
[编辑]Geo
Geo
维基百科上所有的地点性质的条目都应该使用。
请
维基百科 上 的 Geo 举例
[编辑]举例:
- Geo (microformat)#Example
- All of the articles using {{template:coord}} . Examples:
- Most of the articles in Category:Lists of coordinates
- Great Barr
- {{Geolinks-AUS-suburbscale}}
- GeoTemplate, which is called by many thousands of other Wikipedia pages.
- Example: the coordinates (top right) in Great Barr link to a list of maps for Great Barr; the latter now has a Geo microformat.
在 hCard数 据 中 使用 Geo的 条目 列 表 :- Robert Baden-Powell, 1st Baron Baden-Powell Featured Article uses {{coord}}, both "title" and "inline".
拓 展
[编辑]There are three active proposals, none mutually-exclusive, and all backwards-compatible, to extend the geo microformat:
- geo-extension - for representing coordinates on other planets, moons etc., and with non-WSG84 schema
- Of use for Template:Lunar crater data
- geo-elevation - for representing altitude
- geo-waypoint - for representing routes and boundaries, using waypoints
hCard
[编辑]en:hCard
See Wikipedia:WikiProject Microformats/hcard for more.
hCalendar
[编辑]en:hCalendar则是
维基百科上的历史上的今天栏目,
hAtom
[编辑]hAtom is for making feeds.
hReview
[编辑]hReview is for marking up reviews, and could be used by, for example, Template:Infobox Album.
Other
[编辑]Pseudo-microformats
[编辑]Though not formally microformats (because they have not been developed using the "microformats process", and/ or involve hidden metadata), the following are related:
Under development
[编辑]Species
[编辑]The draft species microformat has been applied to the {{Taxobox}} template (with 37,140 examples as at the time of posting).
It is recognised by the Operator extension for Firefox (using an add-in user script, itself in development).
Wikipedia editors are invited to comment on or contribute to the development of this microformat, via Template talk:Taxobox#'Species' microformat, or the "microformats-new" mailing list.
"Species" will allow the disambiguation of common names, and the lookup of species in databases, recording software, etc. - and the look up from such sites or software, on Wikipedia.
Forthcoming
[编辑]Citations
[编辑]The proposed citation microformat will obviously be very relevant to Wikipedia, both for on-page citations and bibliographies, and for allowing people to cite Wikipedia, elsewhere. See Template talk:Cite book#Use in Bibliography and User:Omegatron#COinS for work which is laying some of the groundwork for application of that microformat, once it is ready.
Citation microformats would allow the look-up of cited articles or books in libraries or shops, and the extraction of citation data for the page being voted, if it is to be cited elsewhere.
Currency
[编辑]The proposed currency microformat may be useful, especially if the suggestion to include a date field for historical amounts is included., for example, on 1922 in Germany
- "Despite the ending of cash payments for the rest of 1922, the main cause of Germany's inability to pay, the steady depreciation of the mark, was ongoing. Towards the end of the year it assumed a disastrous rapidity. On August 1, the US Dollar still stood at 643 Marks to the Dollar and the British Pound at 2,850 Marks to the Pound. But on September 5 the dollar had already risen to 1,440 Marks and the pound to 6,525 Marks, and in December the pound was worth between 30,000 and 40,000 marks and the dollar between 7,000 and 9,000."
Currency would allow automatic conversion of amounts into other currencies ("how much is that in dollars?") or time ("how much would that be today?")
Other MediaWiki uses
[编辑]Wikivoyage
[编辑]Wikivoyage is using microformats, not least in Wikivoyage listings
问题
[编辑]- We need to be able to add classes to internal and external links, to generate, for example:
<a href="example.com" class="xxx">
or:
<a href="example.com" rel="yyy">
or a combination of both, where "xxx" is a valid microformat attribute such as "url" and "yyy" is a valid rel attribute such as "directory", "tag" or "colleague" (the latter from XFN).
参考 文献
[编辑]- ^ Resig, John. Microformats in Firefox 3. 2007-02-01 [2007-03-25].
- ^ Kaply, Mike. Microformats and Firefox 3 (for Developers). 2007-05-09 [2007-05-23].
- ^ Bounds, Darren. Microsoft drops hints about Internet Explorer 8. 2007-05-02 [2007-05-02].