source: josm/trunk/data/validator/religion.mapcss@ 15392

Last change on this file since 15392 was 14867, checked in by Klumbumbus, 6 years ago

fix #17249 - clean up religion and denomination, replace religion=unitarian by religion=unitarian_universalist, warn about religion=catholic, add religion=tenrikyo and religion=confucian, add icons (https://commons.wikimedia.org/wiki/File:Tenrikyo_emblem.svg and https://commons.wikimedia.org/wiki/File:%E6%9C%A8%E9%90%B8_---_Confucian_wooden-clapper_bell.svg, modified, PD and CC0 licensed)

  • Property svn:eol-style set to native
File size: 2.2 KB
Line 
1/* absent/unknown denomination (ticket #7811) */
2
3*[religion =~ /^(christian|jewish|muslim)$/][!denomination][type!=route] {
4 throwOther: tr("religion without denomination");
5 group: tr("missing tag");
6 assertMatch: "node religion=christian";
7 assertNoMatch: "node religion=christian denomination=catholic";
8 assertNoMatch: "node religion=foobar";
9}
10
11*[religion=christian][denomination][denomination !~ /^(anglican|apostolic|baptist|catholic|church_of_scotland|christian_community|christian_scientist|coptic_orthodox|czechoslovak_hussite|dutch_reformed|evangelical|foursquare|greek_catholic|greek_orthodox|iglesia_ni_cristo|jehovahs_witness|kabbalah|karaite|living_waters_church|lutheran|maronite|mennonite|methodist|mormon|new_apostolic|nondenominational|old_catholic|orthodox|pentecostal|presbyterian|protestant|quaker|reformed|roman_catholic|romanian_orthodox|russian_orthodox|salvation_army|serbian_orthodox|seventh_day_adventist|spiritist|united|united_reformed|united|united_methodist|united_reformed|uniting)$/] {
12 throwOther: tr("unknown christian denomination");
13 assertMatch: "node religion=christian denomination=foobar";
14 assertNoMatch: "node religion=christian denomination=catholic";
15 assertNoMatch: "node religion=christian";
16}
17
18*[religion=muslim][denomination][denomination !~ /^(alaouite|druze|ibadi|ismaili|nondenominational|shia|sunni)$/] {
19 throwOther: tr("unknown muslim denomination");
20 assertMatch: "node religion=muslim denomination=foobar";
21 assertNoMatch: "node religion=muslim denomination=alaouite";
22 assertNoMatch: "node religion=muslim";
23}
24
25*[religion=jewish][denomination][denomination !~ /^(alternative|ashkenazi|conservative|hasidic|humanistic|liberal|modern_orthodox|neo_orthodox|nondenominational|orthodox|progressive|reconstructionist|reform|renewal|samaritan|ultra_orthodox)$/] {
26 throwOther: tr("unknown jewish denomination");
27 assertMatch: "node religion=jewish denomination=foobar";
28 assertNoMatch: "node religion=jewish denomination=alternative";
29 assertNoMatch: "node religion=jewish";
30}
31
32*[religion=catholic] {
33 throwWarning: tr("{0}", "{0.tag}");
34 suggestAlternative: "religion=christian + denomination=catholic";
35 fixChangeKey: "religion => denomination";
36 fixAdd: "religion=christian";
37}
Note: See TracBrowser for help on using the repository browser.