Changeset 16861 in josm
- Timestamp:
- 2020-08-10T19:11:30+02:00 (4 years ago)
- Location:
- trunk/resources/data
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/resources/data/defaultpresets.xml
r16853 r16861 266 266 <reference ref="oh" /> 267 267 </chunk> 268 <chunk id="name_wikipedia"> 268 <chunk id="wikipedia_wikidata"> 269 <text key="wikipedia" text="Wikipedia" /> 270 <text key="wikidata" text="Wikidata" /> 271 </chunk> 272 <chunk id="name_wikipedia_wikidata"> 269 273 <text key="name" text="Name" /> 270 < text key="wikipedia" text="Wikipedia" />274 <reference ref="wikipedia_wikidata" /> 271 275 </chunk> 272 276 <chunk id="population_postcode_website"> … … 448 452 <text key="width" text="Width (meters)" /> 449 453 </chunk> 450 <chunk id="waterway_wikipedia">451 <reference ref="waterway" />452 <text key="wikipedia" text="Wikipedia" />453 </chunk>454 454 <chunk id="water_access"> 455 455 <optional text="Water access rules:"> … … 473 473 <text key="iata" text="IATA" /> 474 474 <text key="icao" text="ICAO" /> 475 < text key="wikipedia" text="Wikipedia" />475 <reference ref="wikipedia_wikidata" /> 476 476 </optional> 477 477 </chunk> … … 1465 1465 <text key="name" text="Name" /> 1466 1466 <text key="ele" text="Elevation (meters)" length="10" /> 1467 < text key="wikipedia" text="Wikipedia" />1467 <reference ref="wikipedia_wikidata" /> 1468 1468 </optional> 1469 1469 </item> <!-- Mountain Pass --> … … 1865 1865 <text key="name" text="Name" /> 1866 1866 <optional> 1867 <reference ref="waterway_wikipedia" /> 1867 <reference ref="waterway" /> 1868 <reference ref="wikipedia_wikidata" /> 1868 1869 <check key="lock" text="Lock" disable_off="true" /> 1869 1870 </optional> … … 1876 1877 <text key="name" text="Name" /> 1877 1878 <optional> 1878 <reference ref="waterway_wikipedia" /> 1879 <reference ref="waterway" /> 1880 <reference ref="wikipedia_wikidata" /> 1879 1881 </optional> 1880 1882 <reference ref="water_access" /> … … 1890 1892 <check key="seasonal" text="Seasonal" disable_off="true" /> 1891 1893 <text key="width" text="Width (meters)" /> 1892 < text key="wikipedia" text="Wikipedia" />1894 <reference ref="wikipedia_wikidata" /> 1893 1895 </optional> 1894 1896 </item> <!-- Tidal channel --> … … 1903 1905 <combo key="usage" text="Usage" values="transportation,transmission,irrigation,headrace,tailrace,spillway" values_context="usage" /> 1904 1906 <text key="width" text="Width (meters)" /> 1905 < text key="wikipedia" text="Wikipedia" />1907 <reference ref="wikipedia_wikidata" /> 1906 1908 <check key="lock" text="Lock" disable_off="true" /> 1907 1909 </optional> … … 1939 1941 <space /> 1940 1942 <key key="waterway" value="waterfall" /> 1941 <reference ref="name_wikipedia " />1943 <reference ref="name_wikipedia_wikidata" /> 1942 1944 <text key="height" text="Height (meters)" length="7" /> 1943 1945 </item> <!-- Waterfall --> … … 1952 1954 <space /> 1953 1955 <key key="waterway" value="dam" /> 1954 <reference ref="name_wikipedia " />1956 <reference ref="name_wikipedia_wikidata" /> 1955 1957 </item> <!-- Dam --> 1956 1958 <item name="Levee" icon="presets/misc/dyke.svg" type="way" preset_name_label="true"> … … 2028 2030 <check key="tidal" text="In the tidal range" disable_off="true" /> 2029 2031 <text key="ele" text="Elevation (meters)" length="10" /> 2030 < text key="wikipedia" text="Wikipedia" />2032 <reference ref="wikipedia_wikidata" /> 2031 2033 <reference ref="water_access" /> 2032 2034 </item> <!-- Water --> … … 2068 2070 <space /> 2069 2071 <key key="natural" value="beach" /> 2070 <reference ref="name_wikipedia " />2072 <reference ref="name_wikipedia_wikidata" /> 2071 2073 <optional> 2072 2074 <reference ref="supervised" /> … … 3062 3064 <text key="iata" text="IATA" /> 3063 3065 <text key="icao" text="ICAO" /> 3064 < text key="wikipedia" text="Wikipedia" />3066 <reference ref="wikipedia_wikidata" /> 3065 3067 </optional> 3066 3068 </item> <!-- Helipad --> … … 3587 3589 <reference ref="name_oh_wheelchair" /> 3588 3590 <combo key="zoo" text="Type" values="aviary,birds,butterfly,enclosure,falconry,petting_zoo,reptile,safari_park,wildlife_park" /> 3589 < text key="wikipedia" text="Wikipedia" />3591 <reference ref="wikipedia_wikidata" /> 3590 3592 <reference ref="link_contact_address_payment" /> 3591 3593 </item> <!-- Zoo --> … … 3871 3873 <key key="tourism" value="museum" /> 3872 3874 <reference ref="name_operator_oh_wheelchair" /> 3873 < text key="wikipedia" text="Wikipedia" />3875 <reference ref="wikipedia_wikidata" /> 3874 3876 <reference ref="link_contact_address_payment" /> 3875 3877 <preset_link preset_name="Building" /> … … 6272 6274 <key key="historic" value="castle" /> 6273 6275 <combo key="castle_type" text="Type" values="stately,defensive,fortress,manor,palace" /> 6274 <reference ref="name_wikipedia " />6276 <reference ref="name_wikipedia_wikidata" /> 6275 6277 <check key="ruins" text="Ruins" /> 6276 6278 <reference ref="link_contact_address_payment" /> … … 6280 6282 <space /> 6281 6283 <key key="historic" value="fort" /> 6282 <reference ref="name_wikipedia " />6284 <reference ref="name_wikipedia_wikidata" /> 6283 6285 <check key="ruins" text="Ruins" /> 6284 6286 <reference ref="link_contact_address_payment" /> … … 6408 6410 <combo key="material" text="Material" values="concrete,granite,metal,plastic,steel,stone,wood" /> 6409 6411 <text key="start_date" text="Start date" /> 6410 < text key="wikipedia" text="Wikipedia" />6412 <reference ref="wikipedia_wikidata" /> 6411 6413 </optional> 6412 6414 </item> <!-- Memorial --> … … 7668 7670 <reference ref="name_operator" /> 7669 7671 <reference ref="oh" /> 7670 < text key="wikipedia" text="Wikipedia" />7672 <reference ref="wikipedia_wikidata" /> 7671 7673 <text key="start_date" text="Start date" /> 7672 7674 </optional> … … 7685 7687 <space /> 7686 7688 <key key="place" value="continent" /> 7687 <reference ref="name_wikipedia " />7689 <reference ref="name_wikipedia_wikidata" /> 7688 7690 </item> <!-- Continent --> 7689 7691 <item name="Country" icon="presets/place/capital.svg" type="node,closedway,multipolygon,relation" preset_name_label="true"> … … 7691 7693 <space /> 7692 7694 <key key="place" value="country" /> 7693 <reference ref="name_wikipedia " />7695 <reference ref="name_wikipedia_wikidata" /> 7694 7696 </item> <!-- Country --> 7695 7697 <item name="State" icon="presets/place/capital.svg" name_context="place" type="node,closedway,multipolygon,relation" preset_name_label="true"> … … 7697 7699 <space /> 7698 7700 <key key="place" value="state" /> 7699 <reference ref="name_wikipedia " />7701 <reference ref="name_wikipedia_wikidata" /> 7700 7702 </item> <!-- State --> 7701 7703 <item name="Region" icon="presets/place/capital.svg" type="node,closedway,multipolygon,relation" preset_name_label="true"> … … 7703 7705 <space /> 7704 7706 <key key="place" value="region" /> 7705 <reference ref="name_wikipedia " />7707 <reference ref="name_wikipedia_wikidata" /> 7706 7708 </item> <!-- Region --> 7707 7709 <item name="County" icon="presets/place/capital.svg" type="node,closedway,multipolygon,relation" preset_name_label="true"> … … 7709 7711 <space /> 7710 7712 <key key="place" value="county" /> 7711 <reference ref="name_wikipedia " />7713 <reference ref="name_wikipedia_wikidata" /> 7712 7714 <reference ref="population_postcode_website" /> 7713 7715 </item> <!-- County --> … … 7717 7719 <space /> 7718 7720 <key key="place" value="city" /> 7719 <reference ref="name_wikipedia " />7721 <reference ref="name_wikipedia_wikidata" /> 7720 7722 <reference ref="population_postcode_website" /> 7721 7723 </item> <!-- City --> … … 7724 7726 <space /> 7725 7727 <key key="place" value="town" /> 7726 <reference ref="name_wikipedia " />7728 <reference ref="name_wikipedia_wikidata" /> 7727 7729 <reference ref="population_postcode_website" /> 7728 7730 </item> <!-- Town --> … … 7731 7733 <space /> 7732 7734 <key key="place" value="village" /> 7733 <reference ref="name_wikipedia " />7735 <reference ref="name_wikipedia_wikidata" /> 7734 7736 <reference ref="population_postcode_website" /> 7735 7737 </item> <!-- Village --> … … 7738 7740 <space /> 7739 7741 <key key="place" value="hamlet" /> 7740 <reference ref="name_wikipedia " />7742 <reference ref="name_wikipedia_wikidata" /> 7741 7743 <reference ref="population_postcode_website" /> 7742 7744 </item> <!-- Hamlet --> … … 7745 7747 <space /> 7746 7748 <key key="place" value="isolated_dwelling" /> 7747 <reference ref="name_wikipedia " />7749 <reference ref="name_wikipedia_wikidata" /> 7748 7750 <reference ref="population_postcode_website" /> 7749 7751 </item> <!-- Isolated Dwelling --> … … 7753 7755 <space /> 7754 7756 <key key="place" value="suburb" /> 7755 <reference ref="name_wikipedia " />7757 <reference ref="name_wikipedia_wikidata" /> 7756 7758 <reference ref="population_postcode_website" /> 7757 7759 </item> <!-- Suburb --> … … 7760 7762 <space /> 7761 7763 <key key="place" value="quarter" /> 7762 <reference ref="name_wikipedia " />7764 <reference ref="name_wikipedia_wikidata" /> 7763 7765 <text key="population" text="Population" /> 7764 7766 <text key="website" text="Website" /> … … 7768 7770 <space /> 7769 7771 <key key="place" value="neighbourhood" /> 7770 <reference ref="name_wikipedia " />7772 <reference ref="name_wikipedia_wikidata" /> 7771 7773 <text key="population" text="Population" /> 7772 7774 <text key="website" text="Website" /> … … 7778 7780 <label text="(please use isolated_dwelling for an isolated farm)" /> 7779 7781 <key key="place" value="farm" /> 7780 <reference ref="name_wikipedia " />7782 <reference ref="name_wikipedia_wikidata" /> 7781 7783 <reference ref="population_postcode_website" /> 7782 7784 </item> <!-- Farm --> … … 7786 7788 <space /> 7787 7789 <key key="place" value="locality" /> 7788 <reference ref="name_wikipedia " />7790 <reference ref="name_wikipedia_wikidata" /> 7789 7791 </item> <!-- Locality --> 7790 7792 <item name="Square" icon="presets/place/square.svg" type="node,closedway,multipolygon" preset_name_label="true"> … … 7792 7794 <space /> 7793 7795 <key key="place" value="square" /> 7794 <reference ref="name_wikipedia " />7796 <reference ref="name_wikipedia_wikidata" /> 7795 7797 </item> <!-- Square --> 7796 7798 </group> <!-- Places --> … … 7801 7803 <space /> 7802 7804 <key key="natural" value="peak" /> 7803 <reference ref="name_wikipedia " />7805 <reference ref="name_wikipedia_wikidata" /> 7804 7806 <text key="ele" text="Elevation (meters)" length="10" /> 7805 7807 </item> <!-- Peak --> … … 7809 7811 <space/> 7810 7812 <key key="natural" value="saddle" /> 7811 <reference ref="name_wikipedia " />7813 <reference ref="name_wikipedia_wikidata" /> 7812 7814 <text key="ele" text="Elevation (meters)" length="10" /> 7813 7815 </item> <!-- Saddle --> … … 7817 7819 <space /> 7818 7820 <key key="natural" value="glacier" /> 7819 <reference ref="name_wikipedia " />7821 <reference ref="name_wikipedia_wikidata" /> 7820 7822 <text key="ele" text="Elevation (meters)" length="10" /> 7821 7823 </item> <!-- Glacier --> … … 7825 7827 <space /> 7826 7828 <key key="natural" value="volcano" /> 7827 <reference ref="name_wikipedia " />7829 <reference ref="name_wikipedia_wikidata" /> 7828 7830 <text key="ele" text="Elevation (meters)" length="10" /> 7829 7831 <optional> … … 7837 7839 <space /> 7838 7840 <key key="natural" value="ridge" /> 7839 <reference ref="name_wikipedia " />7841 <reference ref="name_wikipedia_wikidata" /> 7840 7842 <text key="ele" text="Elevation (meters)" length="10" /> 7841 7843 </item> <!-- Ridge --> … … 7845 7847 <space /> 7846 7848 <key key="natural" value="valley" /> 7847 <reference ref="name_wikipedia " />7849 <reference ref="name_wikipedia_wikidata" /> 7848 7850 </item> <!-- Valley --> 7849 7851 <item name="Cliff" icon="presets/misc/cliff.svg" type="node,way,closedway,multipolygon" preset_name_label="true"> … … 7860 7862 <space /> 7861 7863 <key key="natural" value="cave_entrance" /> 7862 <reference ref="name_wikipedia " />7864 <reference ref="name_wikipedia_wikidata" /> 7863 7865 <reference ref="oh_wheelchair" /> 7864 7866 <reference ref="POI_access" /> … … 7870 7872 <space /> 7871 7873 <key key="place" value="island" /> 7872 <reference ref="name_wikipedia " />7874 <reference ref="name_wikipedia_wikidata" /> 7873 7875 </item> <!-- Island --> 7874 7876 <item name="Islet" icon="presets/place/islet.svg" type="node,closedway,multipolygon" preset_name_label="true"> … … 7876 7878 <space /> 7877 7879 <key key="place" value="islet" /> 7878 <reference ref="name_wikipedia " />7880 <reference ref="name_wikipedia_wikidata" /> 7879 7881 </item> <!-- Islet --> 7880 7882 <item name="Reef" icon="presets/landmark/reef.svg" type="node,closedway,multipolygon" preset_name_label="true"> … … 8015 8017 <space /> 8016 8018 <key key="natural" value="rock" /> 8017 <reference ref="name_wikipedia " />8019 <reference ref="name_wikipedia_wikidata" /> 8018 8020 <optional> 8019 8021 <check key="tourism" text="Tourism attraction" value_on="attraction" disable_off="true" /> … … 8025 8027 <space /> 8026 8028 <key key="natural" value="stone" /> 8027 <reference ref="name_wikipedia " />8029 <reference ref="name_wikipedia_wikidata" /> 8028 8030 <optional> 8029 8031 <text key="height" text="Height (meters)" length="7" /> … … 8308 8310 <label text="Use E.123 format, e.g. +49 11223 456 7890" /> 8309 8311 <space /> 8310 < text key="wikipedia" text="Wikipedia" />8312 <reference ref="wikipedia_wikidata" /> 8311 8313 <text key="image" text="Image" /> 8312 8314 <preset_link preset_name="Contact (Schema with 'contact:*' Prefix)" text="Similar tags but different tagging schema:" text_context="Contact" /> … … 8322 8324 <label text="Use E.123 format, e.g. +49 11223 456 7890" /> 8323 8325 <space /> 8324 < text key="wikipedia" text="Wikipedia" />8326 <reference ref="wikipedia_wikidata" /> 8325 8327 <text key="image" text="Image" /> 8326 8328 <preset_link preset_name="Contact (Common Schema)" text="Similar tags but different tagging schema:" text_context="Contact" /> … … 8727 8729 <text key="ref:gnis" text="Reference GNIS (USA)" /> 8728 8730 <text key="ref:gnbc" text="Reference GNBC (CA)" /> 8729 < text key="wikipedia" text="Wikipedia" />8731 <reference ref="wikipedia_wikidata" /> 8730 8732 </optional> 8731 8733 <roles> -
trunk/resources/data/validator/wikipedia.mapcss
r15546 r16861 145 145 } 146 146 147 /* Detect wikidata value wrongly in wikipedia key, not 100% safe as there might be wikipedia articles matching the regexp, therefore no fixChangeKey */ 148 *[wikipedia][wikipedia =~ /^[-a-zA-Z]{2,12}:Q[1-9][0-9]{0,8}$/] { 149 throwWarning: tr("{0} value looks like a {1} value", "{0.key}", "wikidata"); 150 assertNoMatch: "node wikipedia=a"; 151 assertNoMatch: "node wikipedia=de:a"; 152 assertNoMatch: "node wikipedia=de:Q"; 153 assertNoMatch: "node wikipedia=de:Q0"; 154 assertNoMatch: "node wikipedia=de:Q0123"; 155 assertNoMatch: "node wikipedia=en-GB:Q0123"; 156 assertMatch: "node wikipedia=de:Q123"; 157 assertMatch: "node wikipedia=de:Q1"; 158 assertMatch: "node wikipedia=en-GB:Q123"; 159 assertMatch: "node wikipedia=en-GB:Q1"; 160 } 161 147 162 /* Wikipedia:lang without wikipedia */ 148 163 *[!wikipedia][/^wikipedia:/] {
Note:
See TracChangeset
for help on using the changeset viewer.