{"id":16847269,"url":"https://github.com/othree/flickr-share-template","last_synced_at":"2025-03-18T07:16:47.950Z","repository":{"id":5694187,"uuid":"6904672","full_name":"othree/flickr-share-template","owner":"othree","description":"Template based Flickr share photo function","archived":false,"fork":false,"pushed_at":"2018-10-01T23:23:52.000Z","size":86,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T13:44:47.155Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chrome.google.com/webstore/detail/flickr-share-with-templat/dfnfhbapijahpaobcpojofokllocfpnc","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/othree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-11-28T15:47:38.000Z","updated_at":"2020-11-05T11:28:06.000Z","dependencies_parsed_at":"2022-08-24T21:30:11.784Z","dependency_job_id":null,"html_url":"https://github.com/othree/flickr-share-template","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fflickr-share-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fflickr-share-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fflickr-share-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/othree%2Fflickr-share-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/othree","download_url":"https://codeload.github.com/othree/flickr-share-template/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244173553,"owners_count":20410300,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T13:07:18.818Z","updated_at":"2025-03-18T07:16:47.932Z","avatar_url":"https://github.com/othree.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Flickr Share with Template\n==========================\n\nProvide template based Flickr share photo function.\n\nIntroduction\n------------\n\nFlickr's share with HTML/BBCode function is not update for a long time. Several issues bothers me:\n\n* Template didn't support XHTML markup\n* Only several size available\n* Only **http** protocol is provided, but Flickr do support **https**\n* HTML and BBCode is not enough now\n* And there is no custom template feature\n\nSo I build this chrome extension. Use easy to learn [mustache][] template language.\n\n[mustache]:http://mustache.github.io/\n\nAvailable Variables\n-------------------\n\nThe following variables are available in your template.\n\nBasic information:\n\n* title\n* desc\n* owner.username\n* url\n\nPhoto in different sizes:\n\n* Square\n* Square75\n* LargeSquare\n* Square150\n* Thumbnail\n* Small\n* Small240\n* Small320\n* Medium\n* Medium500\n* Medium640\n* Medium800\n* Large\n* Large1024\n* Large1600\n* Large2048\n* Original\n\nAll above sizes have 5 attributes can use:\n\n* url\n* source\n* sourceNoProtocol\n* width\n* heigh\n\n**sourceNoProtocol** is a url link without protocol prefix(relative protocol):\n\n    //farm8.staticflickr.com/7316/9207170905_47cdf4e1f5_b.jpg\n\nThis url format can be use under both **http** and **https** protocol.\n\nAn example to use **Large2048** image:\n\n    \u003cimg src=\"{{Large2048.source}}\" width=\"{{Large2048.width}}\" height=\"{{Large2048.height}}\" /\u003e\n\nAll labels above except **Original** can add a prefix `to`, which implies the largest image can get until reach the label's size. For example, if an image's original width is 1000px. Then use `toLarge2048` will give you `Medium800`. This feature is designed for default image.\n\nNot all size are available if your image is small. So you can detect is it exists:\n\n    {{#Large2048}}\n    \u003cimg src=\"{{Large2048.source}}\" width=\"{{Large2048.width}}\" height=\"{{Large2048.height}}\" /\u003e\n    {{/Large2048}}\n\nYou can write other document not just html. For example, markdown:\n\n    ![{{title}} by {{owner.username}}, on Flickr]({{Large1024.source}})\n\nDefault template is using [srcset][], the listed code below is with beautiful indent for you to see what's inside easily:\n\n    \u003ca data-flickr-embed=\"true\" class=\"thumbnail\" href=\"{{url}}\" title=\"{{title}} by {{owner.username}}, on Flickr\"\u003e\n      \u003cimg src=\"{{toLarge.sourceNoProtocol}}\" width=\"{{toLarge.width}}\" height=\"{{toLarge.height}}\" \n        alt=\"{{title}}, {{desc}}\" \n        srcset=\"{{toLarge.sourceNoProtocol}} {{toLarge.width}}w\n          {{#Large1600}}, {{Large1600.sourceNoProtocol}} {{Large1600.width}}w{{/Large1600}}\" /\u003e\n    \u003c/a\u003e\n\n[srcset]:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-srcset\n\nKNOWN ISSUE\n-----------\n\nMustache is very logic-less, so its hard to have if-else in your template.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Fflickr-share-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fothree%2Fflickr-share-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fothree%2Fflickr-share-template/lists"}