Template:UF-hcard-geo: Difference between revisions

From Random Island Wiki
Jump to navigation Jump to search
>Qyd
m (+classes)
m (1 revision imported)
 
(90 intermediate revisions by 51 users not shown)
Line 1: Line 1:
[[Image:Hcard-microformat-button.png|right|button to indicate the presence of an hCard microformat]]
The HTML markup produced by this template includes an [[HCard| hCard microformat]], which makes the place-name and location [[Parsing|parsable]] by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is 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. For more information about the use of [[microformat]]s on Wikipedia, please see [[Wikipedia:WikiProject Microformats|the microformat project]].
[[Image:Geo-microformat-button.png|right|button to indicate the presence of a Geo microformat]]
The HTML mark up produced by this template includes an [[HCard| hCard microformat]], which makes the place-name and location [[Parsing|parsable]] by computers, either acting automatically to catalogue article across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a [[WP:GEOUF|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. For more information about the use of [[microformat]]s on Wikipedia, please see [[WP:UF|the microformat project]].


=== Sub-templates ===
If the place or venue has "established", "founded", "opened" or similar dates, use {{tl|start date}} for the earliest of those dates [[Wikipedia:WikiProject Microformats/dates|unless the date is before 1583 CE]].
If it has a URL, use {{tl|URL}}.
'''Please do not remove instances of these sub-templates.'''
=== Classes ===
hCard uses HTML classes including:
hCard uses HTML classes including:
{{flatlist}}
{{Flatlist/microformat|
*"adr"
*adr
*"county-name"
*agent
*"fn"
*category
*"label"
*county-name
*"locality"
*extended-address
*"nickname"
*fn
*"note"
*label
*"org"
*locality
*"region"
*nickname
*"street-address"
*note
*"vcard"
*org
{{endflatlist}}
*region
*street-address
*uid
*url
*vcard
}}


Geo is produced by calling {{tl|coord}}, and uses HTML classes:
Geo is produced by calling {{tl|coord}}, and uses HTML classes:


{{flatlist}}
{{Flatlist/microformat|
*"geo"
*geo
*"latitude"
*latitude
*"longitude"
*longitude
{{endflatlist}}
}}
 
'''Please do not rename or remove these classes.'''


When giving coordinates, please don't be [[Wikipedia:WikiProject Geographical coordinates#Precision|overly precise]].
'''Please do not rename or remove these classes nor collapse nested elements which use them.'''


[[Category:Templates generating hCards and Geo|{{PAGENAME}}]]<noinclude>
=== Precision ===
[[no:Mal:UF-hcard-geo]]
When giving coordinates, '''please use an [[Wikipedia:WikiProject Geographical coordinates#Precision|appropriate level of precision]]'''. Do '''not''' use {{tl|coord}}'s {{para|name}} parameter.<includeonly>{{#ifeq:{{SUBPAGENAME}}|doc | |
[[zh:Template:UF-hcard-geo]]
[[Category:Templates with coordinates fields]]
</noinclude>
[[Category:Templates generating hCards and Geo]]
}}</includeonly><noinclude>__NOTOC__{{doc}}</noinclude>

Latest revision as of 10:57, 6 September 2021

The HTML markup produced by this template includes an hCard microformat, which makes the place-name and location parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to an address book. Within the hCard is a Geo microformat, which additionally makes the coordinates (latitude & longitude) parsable, so that they can be, say, looked up on a map, or downloaded to a GPS unit. For more information about the use of microformats on Wikipedia, please see the microformat project.

Sub-templates

If the place or venue has "established", "founded", "opened" or similar dates, use {{start date}} for the earliest of those dates unless the date is before 1583 CE.

If it has a URL, use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCard uses HTML classes including:

  • adr
  • agent
  • category
  • county-name
  • extended-address
  • fn
  • label
  • locality
  • nickname
  • note
  • org
  • region
  • street-address
  • uid
  • url
  • vcard

Geo is produced by calling {{coord}}, and uses HTML classes:

  • geo
  • latitude
  • longitude

Please do not rename or remove these classes nor collapse nested elements which use them.

Precision

When giving coordinates, please use an appropriate level of precision. Do not use {{coord}}'s |name= parameter.Template:Doc