Difference between revisions of "Template:UF-hcard-org"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Classes: tracking flatlist in navbox, switch to div for now)
m (39 revisions from wikipedia:Template:UF-hcard-org)
 
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
The HTML mark up produced by this template includes an [[HCard| hCard microformat]], which makes the organisation's details [[Parsing|parsable]] by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a reader, to (for example) add the subject to an address book. For more information about the use of [[microformat]]s on Wikipedia, please see [[WP:UF|the microformat project]].
+
{{Microformat message
 +
| format = hCard
 +
| data = an organization's details
  
=== Sub-templates ===
+
| subtemplates =
 +
* Use {{tl|start date}} for the date on which an organisation was "established", "founded", "opened" or otherwise started, [[Wikipedia:WikiProject Microformats/dates|unless that date is before 1583 CE]].
 +
* Use {{tl|URL}} for an organisation's URL.
 +
* Use {{tl|coord}} for [[Geographic coordinate system|coordinates]] associated with the organisation (e.g. the location of its headquarters). A [[Geo (microformat)|Geo microformat]] will then make these coordinates parsable, e.g. for use in online mapping, downloading to a [[Global Positioning System|GPS]] unit, etc.
  
* If the organisation has an "established", "founded", "opened" or similar date, use {{tl|Start date}} ([[Wikipedia:WikiProject Microformats/dates|unless the date is before 1583 CE]]).
+
|adr |agent |category |country-name |extended-address |fn |geo |label |latitude |locality |longitude |nickname |note |org |region |street-address |url |vcard
* If the organisation has a URL, use {{Tl|URL}}.
+
| nocollapse = on
* If the organisation has a "coordinates" field, use {{Tl|Coord}} to include a [[Geo (microformat)|Geo microformat]], which additionally makes the [[Geographic coordinate system|coordinates]] (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a [[Global Positioning System|GPS]] unit.
+
}}<includeonly>{{#ifeq:{{SUBPAGENAME}}|doc | |{{#ifeq:{{SUBPAGENAME}}|sandbox | |[[Category:Templates generating hCards]]}} }}</includeonly><noinclude>
  
'''Please do not remove instances of these sub-templates.'''
+
{{Documentation |content={{Microformat message templates}}}}
  
=== Classes ===
+
[[Category:Microformat (uF) message templates]]
 
+
[[Category:Templates generating hCards| ]]
hCard uses HTML classes including:
 
 
 
{{div|class=hlist|
 
*adr
 
*agent
 
*category
 
*country-name
 
*extended-address
 
*fn
 
*geo
 
*label
 
*latitude
 
*locality
 
*longitude
 
*nickname
 
*note
 
*org
 
*region
 
*street-address
 
*url
 
*vcard
 
}}
 
 
 
'''Please do not rename or remove these classes; nor collapse nested elements which use them.'''<includeonly>{{#ifeq: {{SUBPAGENAME}}|doc||{{#ifeq: {{SUBPAGENAME}}|sandbox||[[Category:Templates generating hCards|{{PAGENAME}}]]}}}}</includeonly><noinclude>
 
[[Category:Template namespace templates]]
 
[[Category:Templates generating hCards]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 23:24, 6 March 2016

The HTML mark-up produced by this template includes an hCard microformat that makes an organization's details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.
Subtemplates
  • Use {{start date}} for the date on which an organisation was "established", "founded", "opened" or otherwise started, unless that date is before 1583 CE.
  • Use {{URL}} for an organisation's URL.
  • Use {{coord}} for coordinates associated with the organisation (e.g. the location of its headquarters). A Geo microformat will then make these coordinates parsable, e.g. for use in online mapping, downloading to a GPS unit, etc.

Please do not remove instances of these subtemplates.

Classes used

The HTML classes this microformat uses include:

  • adr
  • agent
  • category
  • country-name
  • extended-address
  • fn
  • geo
  • label
  • latitude
  • locality
  • longitude
  • nickname
  • note
  • org
  • region
  • street-address
  • url
  • vcard
  • Please do not rename or remove these classes
    nor collapse nested elements which use them.
    Documentation icon Template documentation

    Template:Microformat message templates