Wikipedia:WikiProject Microformats/classes: Difference between revisions
→Geo: Usage |
→Usage: Us etemplate: Coord classes |
||
Line 25: | Line 25: | ||
=== Usage === |
=== Usage === |
||
{{Coord classes}} |
|||
To display coordinates using the notation in the source code, write this in your User:Username/monobook.css: |
|||
:.geo-default { display: inline } .geo-nondefault { display: none } |
|||
:.geo-dec { display: inline } .geo-dms { display: inline } |
|||
To display coordinates using decimal notation, write this in your User:Username/monobook.css: |
|||
:.geo-default { display: inline } .geo-nondefault { display: inline } |
|||
:.geo-dec { display: inline } .geo-dms { display: none } |
|||
To display coordinates using DMS notation, write this in your User:Username/monobook.css: |
|||
:.geo-default { display: inline } .geo-nondefault { display: inline } |
|||
:.geo-dec { display: none } .geo-dms { display: inline } |
|||
To display coordinates in both decimal and DMS notation, write this in your User:Username/monobook.css: |
|||
:.geo-default { display: inline } .geo-nondefault { display: inline } |
|||
:.geo-dec { display: inline } .geo-dms { display: inline } |
|||
:.geo-multi-punct { display: inline } |
|||
==hCard== |
==hCard== |
Revision as of 23:35, 3 November 2008
Classes used in microformats
Because these classes may be used in multiple templates, it is recommended that they not be styled.
Adr
Adr is used in Templates generating hCards
- adr
- county-name
- extended-address
- locality
- postal-code
- post-office-box
- region
- street-address
- type
Geo
Geo is used in Templates generating Geo (see also {{UF-hcard-geo}})
- geo
- latitude
- longitude
Usage
To always display coordinates as DMS values, add this to your common.css:
.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: none }
.geo-dms { display: inline }
To always display coordinates as decimal values, add this to your common.css:
.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: inline }
.geo-dms { display: none }
To display coordinates in both formats, add this to your common.css:
.geo-default { display: inline }
.geo-nondefault { display: inline }
.geo-dec { display: inline }
.geo-dms { display: inline }
.geo-multi-punct { display: inline }
If CSS is disabled, or you have an old copy of MediaWiki:Common.css cached, you will see both formats. (You can either clear your cache or manually refresh this URL: [1].)
To disable display of the blue globe adjacent to coordinates, add this to your common.js:
var wma_settings = {enabled:false}
Note that this will disable WikiMiniAtlas.
See also: Wikipedia:Manual of Style/Dates and numbers § Geographical coordinates.
hCard
hCard is used in Templates generating hCards (see also {{UF-hcard-geo}}, {{UF-hcard-org}}, {{UF-hcard-person}}, {{UF-hcard-place}})
- vcard
- adr
- (child-classes as above)
- agent
- bday (see {{Birth date}}/{{Birth date and age}})
- category
- dday (not yet used, but pending)
- email
- type
- value
- fn
- geo
- (child-classes as above)
- key
- label
- logo
- mailer
- n
- additional-name
- family-name
- given-name
- honorific-prefix
- honorific-suffix
- nickname
- note
- org
- organization-name
- organization-unit
- photo
- role
- sort-string
- sound
- tel
- (child-classes per email)
- type
- tz
- uid
- url
- value
- adr
hCalendar
hCalendar is used in Templates generating hCalendars (see {{UF-hcal}})
- vevent
- attendee
- category
- class
- contact
- description
- dtend (see {{End date}})
- dtstart (see {{Start date}}
- duration
- geo
- (child-classes as above)
- last-modified
- location
- organiser
- rdate
- rrule
- status
- summary
- uid
- url
htaom
hAtom is not yet implemented on Wikipedia. As it may be, it is recommended that these classes be reserved.
- htaom
- hfeed
- hentry
- author
- entry-title
- entry-content
- entry-summary
- published
- updated
hResume
hResume is not yet implemented on Wikipedia. As it may be, it is recommended that these classes be reserved.
- hresume
- affiliation
- contact
- education
- experience
- publications
- summary
hReview
hReview is not yet implemented on Wikipedia. As it may be, it is recommended that these classes be reserved.
- hreview
- description
- dtreviewed
- item
- rating
- reviewer
- summary
- type
- version
Species
aka (provisionally) hBiota or hTaxon
Used in {{Taxobox}}, this experimental format may still change.
- biota (may change to hbiota or htaxon)
- aberration
- aggregate
- authority
- binomial
- binominal
- biovar
- branch
- breed
- class
- claudius
- cohort
- complex
- convariety
- cultivar
- cultivar-group
- division
- domain
- empire
- falanx
- family
- family-group
- form
- genus
- genus-group
- gigaorder
- grade
- grandorder
- group
- group-of-breeds
- hybrid
- hyperorder
- infraclass
- infradomain
- infrafamily
- infraform
- infragenus
- infrakingdom
- infralegion
- infraorder
- infraphylum
- infrasection
- infraseries
- infraspecies
- infratribe
- infravariety
- interkingdom
- kingdom
- klepton
- legion
- lusus
- magnorder
- megaorder
- microspecies
- midkingdom
- midphylum
- mirorder
- nation
- order
- parvclass
- parvorder
- pathovar
- phylum
- population
- section
- section-of-breeds
- series
- serogroup
- serovar
- species (a.k.a. specific)
- species-group
- species-subgroup
- strain
- subclass
- subcohort
- subdivision
- subdomain
- subfamily
- subfamily-group
- subform
- subgenus
- subgroup
- subkingdom
- sublegion
- suborder
- subphylum
- subsection
- subseries
- subspecies
- subtribe
- subvariety
- superclass
- supercohort
- superdivision
- superdomain
- superfamily
- superform
- supergenus
- superkingdom
- superlegion
- superorder
- superphylum
- supersection
- superseries
- superspecies
- supertribe
- supervariety
- suprakingdom
- supraphylum
- synklepton
- tribe
- trinomial
- trinominal
- variety
- vernacular
hBiota may eventually also include the (currently experimental) classes:
- botany
- cname
- common-name
- zoology
Any of the above which are common English words may also eventually be prefixed with "taxo" in one of two ways, to avoid collision with other uses. For example:
- taxoclass
- taxo-class