Template:Deprecated feature/doc

From OpenStreetMap Wiki
Jump to navigation Jump to search

Usage

This message box is intended for display on pages of deprecated features. It as one parameter which describes the recommended replacement. Templates (e.g. {{tag|...}}) can be used for this parameter. Example to display this notice for the deprecated feature amenity=hotel:

 {{Deprecated feature|{{tag|tourism|hotel}}}}

The code above should return:

exclamation mark

This feature has been labeled as deprecated. The recommended replacement is: tourism=hotel.
The reason is documented in Deprecated features. You are still free to continue to use or interpret this tag as you see fit since OpenStreetMap does not have “banned features”.
Under no circumstances should you (semi-)automatically change “deprecated” tags to something else in the database on a large scale without conforming to the automated edits code of conduct. Any such change will be reverted.

See also