| | 1 | = Pictures linking rules = |
| | 2 | |
| | 3 | {{{ |
| | 4 | #!rule |
| | 5 | meta { |
| | 6 | title: "Pictures rules"; |
| | 7 | version: "[[revision]]_[[date]]"; |
| | 8 | description: "Rules for checking syntax of picture-related tags"; |
| | 9 | author: "PanierAvide"; |
| | 10 | link: "https://josm.openstreetmap.de/wiki/Rules/Pictures"; |
| | 11 | min-josm-version: "14481"; /* due to osmose attributs */ |
| | 12 | baselanguage: "en"; |
| | 13 | } |
| | 14 | |
| | 15 | *[mapillary][mapillary!~/^[a-zA-Z0-9_-]{22}$/] { |
| | 16 | throwError: tr("mapillary tag should only contain image ID (22 characters string)"); |
| | 17 | } |
| | 18 | |
| | 19 | *[flickr][flickr!~/^https://www.flickr.com/photos/[0-9]+\@[A-Z0-9]+/[0-9]+$/] { |
| | 20 | throwError: tr("flickr tag should contain full image URL"); |
| | 21 | } |
| | 22 | }}} |