diff --git a/plugins/tiddlywiki/geospatial/macros/Flickr.tid b/plugins/tiddlywiki/geospatial/macros/Flickr.tid index f014714a5..e1e74200b 100644 --- a/plugins/tiddlywiki/geospatial/macros/Flickr.tid +++ b/plugins/tiddlywiki/geospatial/macros/Flickr.tid @@ -4,7 +4,7 @@ tags: $:/tags/Macro -\procedure flickr-get-items(per_page:"100",page_number:"1",method:"flickr.photosets.getPhotos",paramName:"group_id",paramValue:"",resultPhotoRoot:"photoset",photoTiddlerTemplate:"$:/plugins/tiddlywiki/geospatial/macros/Flickr/DefaultPhotoTemplate") +\procedure flickr-get-items(per_page:"100",page_number:"1",method:"flickr.photosets.getPhotos",paramName:"group_id",paramValue:"",resultPhotoRoot:"photoset",photoTiddlerTemplate) \procedure completion() \import [[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]] @@ -24,11 +24,6 @@ Get items from a Flickr album/interestingness/collection etc. > <$list filter="[indexes[]]" variable="fieldName"> <$let fieldValueFilter={{{ [getindex] }}}> - <$action-log - $tiddler=<> - $field=<> - $value={{{ [subfilter] }}} - /> <$action-setfield $tiddler=<> $field=<> @@ -57,44 +52,48 @@ Get items from a Flickr album/interestingness/collection etc. https://api.flickr.com/services/rest/ \end request-url -<$action-sendmessage - $message="tm-http-request" - url=<> - method="GET" - query-method=<> - query-extras="geo" - query-per_page=<> - query-page=<> - query-format="json" - query-nojsoncallback="1" - $names="[addprefix[query-]]" - $values=<> - header-accept="application/json" - password-query-api_key="flickr-api-key" - bind-status="$:/temp/flickr/status" - bind-progress="$:/temp/flickr/progress" - oncompletion=<> - onprogress=<> - var-method=<> - var-per_page=<> - var-page_number=<> - var-resultPhotoRoot=<> - var-photoTiddlerTemplate=<> -/> +<$let + photoTiddlerTemplate={{{ [!is[blank]else[$:/plugins/tiddlywiki/geospatial/macros/Flickr/DefaultPhotoTemplate]] }}} +> + <$action-sendmessage + $message="tm-http-request" + url=<> + method="GET" + query-method=<> + query-extras="geo" + query-per_page=<> + query-page=<> + query-format="json" + query-nojsoncallback="1" + $names="[addprefix[query-]]" + $values=<> + header-accept="application/json" + password-query-api_key="flickr-api-key" + bind-status="$:/temp/flickr/status" + bind-progress="$:/temp/flickr/progress" + oncompletion=<> + onprogress=<> + var-method=<> + var-per_page=<> + var-page_number=<> + var-resultPhotoRoot=<> + var-photoTiddlerTemplate=<> + /> + \end -\procedure flickr-get-photos-of-user-items(userID) -<$macrocall $name="flickr-get-items" method="flickr.people.getPhotosOf" paramName="user_id" paramValue=<> resultPhotoRoot="photos"/> +\procedure flickr-get-photos-of-user-items(userID,photoTiddlerTemplate) +<$macrocall $name="flickr-get-items" method="flickr.people.getPhotosOf" paramName="user_id" paramValue=<> resultPhotoRoot="photos" photoTiddlerTemplate=<>/> \end -\procedure flickr-get-group-items(groupID) -<$macrocall $name="flickr-get-items" method="flickr.groups.pools.getPhotos" paramName="group_id" paramValue=<> resultPhotoRoot="photos"/> +\procedure flickr-get-group-items(groupID,photoTiddlerTemplate) +<$macrocall $name="flickr-get-items" method="flickr.groups.pools.getPhotos" paramName="group_id" paramValue=<> resultPhotoRoot="photos" photoTiddlerTemplate=<>/> \end -\procedure flickr-get-album-items(albumID) -<$macrocall $name="flickr-get-items" method="flickr.photosets.getPhotos" paramName="photoset_id" paramValue=<> resultPhotoRoot="photoset"/> +\procedure flickr-get-album-items(albumID,photoTiddlerTemplate) +<$macrocall $name="flickr-get-items" method="flickr.photosets.getPhotos" paramName="photoset_id" paramValue=<> resultPhotoRoot="photoset" photoTiddlerTemplate=<>/> \end -\procedure flickr-get-interesting-items() -<$macrocall $name="flickr-get-items" method="flickr.interestingness.getList" resultPhotoRoot="photos"/> +\procedure flickr-get-interesting-items(photoTiddlerTemplate) +<$macrocall $name="flickr-get-items" method="flickr.interestingness.getList" resultPhotoRoot="photos" photoTiddlerTemplate=<>/> \end