-
Notifications
You must be signed in to change notification settings - Fork 11
/
craft.yaml
90 lines (90 loc) · 2.16 KB
/
craft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
type: overpass
name:
ca: Artesania
cs: Řemeslo
de: Handwerk
en: Craft
es: Artesano
fr: Artisanat
gl: Artesán
hu: Műhelyek
it: Artigianato
ja: 職人
nb: Håndverk
nl: Handwerk
oc: Artisanat
pl: Rzemiosło
pt: Artesanato
pt-br: Ofícios
ru: Мастерские
sr: Занат
tr: El Sanatları
query:
15: nwr[craft]
feature:
description: '{{ tagTransList("craft", tags.craft) }}'
markerSign: '{% set craft0 = tags.craft|split(";")[0] %}{% if const.crafts[craft0] %}{% set v = const.crafts[craft0] %}{% else %}{% set v = const.default %}{% endif %}{% if v|slice(0, 3) == "fa-" %}<i class="fa {{ v }}"></i>{% else %}{{ v|raw }}{% endif %}'
const:
default: ''
crafts:
bakery: fa-birthday-cake
beekeeper: 🐝
blacksmith: 🔨
boatbuilder: ⛵
bookbinder: 📕
brewery: fa-beer
builder: 🚧
carpenter: fa-hammer
carpet_layer: ''
caterer: fa-birthday-cake
chimney_sweeper: ''
clockmaker: ⌚
confectionery: ''
distillery: 🍷
dressmaker: '👚'
electrician: 🔌
floorer: ''
gardener: ⚘
glaziery: ''
handicraft: fa-hammer
hvac: ''
insulation: ''
jeweller: 💍
key_cutter: 🔑
locksmith: 🔑
metal_construction: ''
optician: 👓
painter: 🖌
parquet_layer: ''
photographer: 📷
photographic_laboratory: 📷
piano_tuner: ''
plasterer: ''
plumber: fa-wrench
pottery: ''
rigger: ''
roofer: ''
saddler: 🐎
sailmaker: ⛵
sawmill: ''
scaffolder: ''
sculptor: ''
shoemaker: 👞
stand_builder: ''
stonemason: ''
sun_protection: fa-sun
tailor: '👚'
tiler: ''
tinsmith: ''
turner: ''
upholsterer: ''
watchmaker: ⌚
window_construction: ''
winery: 🍷
filter:
craft:
name: '{{ trans("filter:type") }}'
type: select
show_default: 'true'
op: has
values: '{% set list = [] %}{% for t, v in const.crafts %}<option value="{{ t }}">{% set list = list|merge([ t ]) %}{{ tagTrans("craft", t) }}</option>{% endfor %}<option value="other" query="nwr[craft][craft!~"^({{ list|join("|") }})$"]">{{ trans("other") }}</option>'