{ "wikipedialink": { "render": "WP", "condition": { "or": [ "wikipedia~*", "wikidata~*" ] }, "mappings": [ { "if": "wikipedia=", "then": "WD" } ] }, "isOpen": { "#": "Shows a coloured clock if opening hours are parsed. Uses the metatagging, suitable to use as a (badged) overlay", "mappings": [ { "if": "_isOpen=yes", "then": "clock:#0f0;ring:#0f0" }, { "if": "_isOpen=no", "then": "circle:#f00;clock:#fff" }, { "#": "Still loading the country", "if": { "and": [ "_isOpen=", "opening_hours~*" ] }, "then": "clock:#ff0;ring:#ff0" }, { "#": "Still loading the country", "if": { "and": [ "_isOpen=parse_error", "opening_hours~*" ] }, "then": "circle:#f0f;clock:#fff" } ] }, "phonelink": { "render": "", "condition": "phone~*" }, "emaillink": { "render": "", "condition": "email~*" }, "osmlink": { "render": "", "mappings": [ { "if": "id~.*/-.*", "then": "" }, { "if": "_backend~*", "then": "" } ], "condition": "id~(node|way|relation)/[0-9]*" }, "sharelink": { "render": "{share_link()}" } }