Search:
Login
Preferences
Help/Guide
About Trac
Register
Forgot your password?
Wiki
Timeline
Changelog
Browse Source
View Tickets
New Ticket
Roadmap
Builds
Sonar
Search
Context Navigation
+0
Start Page
Index
History
Editing Rules/Pictures
Adjust edit area height:
8
12
16
20
24
28
32
36
40
Edit side-by-side
= Pictures linking rules = {{{ #!rule meta { title: "Pictures rules"; version: "[[revision]]_[[date]]"; description: "Rules for checking syntax of picture-related tags"; author: "PanierAvide"; link: "https://josm.openstreetmap.de/wiki/Rules/Pictures"; min-josm-version: "14481"; /* due to osmose attributs */ baselanguage: "en"; } *[mapillary][mapillary!~/^[0-9]{15}$/][mapillary=~/pKey=[0-9]{15}/] { throwError: tr("mapillary tag should only contain image key instead of full URL"); fixAdd: concat("mapillary=", get(regexp_match(".*pKey=([0-9]{15}).*", tag("mapillary")),1)); } *[mapillary][mapillary!~/^[0-9]{15}$/][mapillary!~/pKey=[0-9]{15}/] { throwError: tr("mapillary tag should only contain image key (15 characters ciphers string)"); } *[flickr][flickr!~/^https:\/\/www.flickr.com\/photos\/[0-9]+@[A-Z0-9]+\/[0-9]+$/] { throwError: tr("flickr tag should contain full image URL"); } }}}
Note:
See
WikiFormatting
and
TracWiki
for help on editing wiki content.
Change information
Your email or username:
E-mail address and name can be saved in the
Preferences
Comment about this change (optional):
Note:
See
TracWiki
for help on using the wiki.