{"action":"created","comment":{"url":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/comments/42805477","id":42805477,"diff_hunk":"@@ -2,21 +2,32 @@\n \n #### Create a new infbox template builder instance\n All parameters  for `InfoboxTemplateBuilder` are optional, though in order to save to MediaWiki, a title value is required inside the `persistOptions` object. \n+\n ```javascript\n-var infobox = new InfoboxTemplateBuilder({\n+var adapter = {\n+  name: 'XMLSerializer',\n   persistOptions: {\n-    title: 'Template:FooBox'\n+    value: {\n+      title: 'Template:FooBox',\n+      host: 'http://lizlux.liz.wikia-dev.com'\n+    }\n   }\n+};\n+\n+var infobox = new InfoboxTemplateBuilder({\n+\troutines: [adapter]\n });\n ```\n \n #### Create from existing data\n ```javascript\n var infobox = new InfoboxTemplateBuilder({\n-  from: '<infobox><title src=\"title\"></title></infobox>',\n-  persistOptions: {\n-    title: 'Template:FooBox'\n-  }\n+  from: {\n+\tsrc: '<infobox><title src=\"title\"></title></infobox>',\n+    // Because we support multiple serializers, you need to specify which one you want to use to deserialize from\n+\tdeserializeWith: 'XMLSerializer' ","path":"docs/api.md","position":33,"original_position":33,"commit_id":"6d73cd27521ff703287efd94618aa4a03f7da998","original_commit_id":"6d73cd27521ff703287efd94618aa4a03f7da998","user":{"login":"kenkouot","id":2964310,"avatar_url":"https://avatars.githubusercontent.com/u/2964310?v=3","gravatar_id":"","url":"https://api.github.com/users/kenkouot","html_url":"https://github.com/kenkouot","followers_url":"https://api.github.com/users/kenkouot/followers","following_url":"https://api.github.com/users/kenkouot/following{/other_user}","gists_url":"https://api.github.com/users/kenkouot/gists{/gist_id}","starred_url":"https://api.github.com/users/kenkouot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenkouot/subscriptions","organizations_url":"https://api.github.com/users/kenkouot/orgs","repos_url":"https://api.github.com/users/kenkouot/repos","events_url":"https://api.github.com/users/kenkouot/events{/privacy}","received_events_url":"https://api.github.com/users/kenkouot/received_events","type":"User","site_admin":false},"body":"whoops, pebkac","created_at":"2015-10-22T20:59:47Z","updated_at":"2015-10-22T20:59:47Z","html_url":"https://github.com/Wikia/infobox-template-builder/pull/32#discussion_r42805477","pull_request_url":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/comments/42805477"},"html":{"href":"https://github.com/Wikia/infobox-template-builder/pull/32#discussion_r42805477"},"pull_request":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/32","id":48394659,"html_url":"https://github.com/Wikia/infobox-template-builder/pull/32","diff_url":"https://github.com/Wikia/infobox-template-builder/pull/32.diff","patch_url":"https://github.com/Wikia/infobox-template-builder/pull/32.patch","issue_url":"https://api.github.com/repos/Wikia/infobox-template-builder/issues/32","number":32,"state":"open","locked":false,"title":"Refactor plugin instantiation so that you can pass in multiple adapters","user":{"login":"kenkouot","id":2964310,"avatar_url":"https://avatars.githubusercontent.com/u/2964310?v=3","gravatar_id":"","url":"https://api.github.com/users/kenkouot","html_url":"https://github.com/kenkouot","followers_url":"https://api.github.com/users/kenkouot/followers","following_url":"https://api.github.com/users/kenkouot/following{/other_user}","gists_url":"https://api.github.com/users/kenkouot/gists{/gist_id}","starred_url":"https://api.github.com/users/kenkouot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenkouot/subscriptions","organizations_url":"https://api.github.com/users/kenkouot/orgs","repos_url":"https://api.github.com/users/kenkouot/repos","events_url":"https://api.github.com/users/kenkouot/events{/privacy}","received_events_url":"https://api.github.com/users/kenkouot/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-21T22:07:57Z","updated_at":"2015-10-22T20:59:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad513bd390d231a830ae4ab14bdee56359f6d152","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/32/commits","review_comments_url":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/32/comments","review_comment_url":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Wikia/infobox-template-builder/issues/32/comments","statuses_url":"https://api.github.com/repos/Wikia/infobox-template-builder/statuses/6d73cd27521ff703287efd94618aa4a03f7da998","head":{"label":"Wikia:plugins","ref":"plugins","sha":"6d73cd27521ff703287efd94618aa4a03f7da998","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":43470716,"name":"infobox-template-builder","full_name":"Wikia/infobox-template-builder","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/infobox-template-builder","description":"A library for working with infoboxes","fork":false,"url":"https://api.github.com/repos/Wikia/infobox-template-builder","forks_url":"https://api.github.com/repos/Wikia/infobox-template-builder/forks","keys_url":"https://api.github.com/repos/Wikia/infobox-template-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/infobox-template-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/infobox-template-builder/teams","hooks_url":"https://api.github.com/repos/Wikia/infobox-template-builder/hooks","issue_events_url":"https://api.github.com/repos/Wikia/infobox-template-builder/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/infobox-template-builder/events","assignees_url":"https://api.github.com/repos/Wikia/infobox-template-builder/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/infobox-template-builder/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/infobox-template-builder/tags","blobs_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/infobox-template-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/infobox-template-builder/languages","stargazers_url":"https://api.github.com/repos/Wikia/infobox-template-builder/stargazers","contributors_url":"https://api.github.com/repos/Wikia/infobox-template-builder/contributors","subscribers_url":"https://api.github.com/repos/Wikia/infobox-template-builder/subscribers","subscription_url":"https://api.github.com/repos/Wikia/infobox-template-builder/subscription","commits_url":"https://api.github.com/repos/Wikia/infobox-template-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/infobox-template-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/infobox-template-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/infobox-template-builder/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/infobox-template-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/infobox-template-builder/merges","archive_url":"https://api.github.com/repos/Wikia/infobox-template-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/infobox-template-builder/downloads","issues_url":"https://api.github.com/repos/Wikia/infobox-template-builder/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/infobox-template-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/infobox-template-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/infobox-template-builder/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/infobox-template-builder/releases{/id}","created_at":"2015-10-01T00:54:42Z","updated_at":"2015-10-19T23:24:21Z","pushed_at":"2015-10-22T17:52:01Z","git_url":"git://github.com/Wikia/infobox-template-builder.git","ssh_url":"git@github.com:Wikia/infobox-template-builder.git","clone_url":"https://github.com/Wikia/infobox-template-builder.git","svn_url":"https://github.com/Wikia/infobox-template-builder","homepage":"","size":1120,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"base":{"label":"Wikia:dev","ref":"dev","sha":"3bba50374714d9fa949a226ec7bbfb4e889c2a12","user":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"repo":{"id":43470716,"name":"infobox-template-builder","full_name":"Wikia/infobox-template-builder","owner":{"login":"Wikia","id":1171011,"avatar_url":"https://avatars.githubusercontent.com/u/1171011?v=3","gravatar_id":"","url":"https://api.github.com/users/Wikia","html_url":"https://github.com/Wikia","followers_url":"https://api.github.com/users/Wikia/followers","following_url":"https://api.github.com/users/Wikia/following{/other_user}","gists_url":"https://api.github.com/users/Wikia/gists{/gist_id}","starred_url":"https://api.github.com/users/Wikia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wikia/subscriptions","organizations_url":"https://api.github.com/users/Wikia/orgs","repos_url":"https://api.github.com/users/Wikia/repos","events_url":"https://api.github.com/users/Wikia/events{/privacy}","received_events_url":"https://api.github.com/users/Wikia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Wikia/infobox-template-builder","description":"A library for working with infoboxes","fork":false,"url":"https://api.github.com/repos/Wikia/infobox-template-builder","forks_url":"https://api.github.com/repos/Wikia/infobox-template-builder/forks","keys_url":"https://api.github.com/repos/Wikia/infobox-template-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Wikia/infobox-template-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Wikia/infobox-template-builder/teams","hooks_url":"https://api.github.com/repos/Wikia/infobox-template-builder/hooks","issue_events_url":"https://api.github.com/repos/Wikia/infobox-template-builder/issues/events{/number}","events_url":"https://api.github.com/repos/Wikia/infobox-template-builder/events","assignees_url":"https://api.github.com/repos/Wikia/infobox-template-builder/assignees{/user}","branches_url":"https://api.github.com/repos/Wikia/infobox-template-builder/branches{/branch}","tags_url":"https://api.github.com/repos/Wikia/infobox-template-builder/tags","blobs_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Wikia/infobox-template-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/Wikia/infobox-template-builder/languages","stargazers_url":"https://api.github.com/repos/Wikia/infobox-template-builder/stargazers","contributors_url":"https://api.github.com/repos/Wikia/infobox-template-builder/contributors","subscribers_url":"https://api.github.com/repos/Wikia/infobox-template-builder/subscribers","subscription_url":"https://api.github.com/repos/Wikia/infobox-template-builder/subscription","commits_url":"https://api.github.com/repos/Wikia/infobox-template-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/Wikia/infobox-template-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/Wikia/infobox-template-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/Wikia/infobox-template-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/Wikia/infobox-template-builder/contents/{+path}","compare_url":"https://api.github.com/repos/Wikia/infobox-template-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Wikia/infobox-template-builder/merges","archive_url":"https://api.github.com/repos/Wikia/infobox-template-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Wikia/infobox-template-builder/downloads","issues_url":"https://api.github.com/repos/Wikia/infobox-template-builder/issues{/number}","pulls_url":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/Wikia/infobox-template-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/Wikia/infobox-template-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Wikia/infobox-template-builder/labels{/name}","releases_url":"https://api.github.com/repos/Wikia/infobox-template-builder/releases{/id}","created_at":"2015-10-01T00:54:42Z","updated_at":"2015-10-19T23:24:21Z","pushed_at":"2015-10-22T17:52:01Z","git_url":"git://github.com/Wikia/infobox-template-builder.git","ssh_url":"git@github.com:Wikia/infobox-template-builder.git","clone_url":"https://github.com/Wikia/infobox-template-builder.git","svn_url":"https://github.com/Wikia/infobox-template-builder","homepage":"","size":1120,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/32"},"html":{"href":"https://github.com/Wikia/infobox-template-builder/pull/32"},"issue":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/issues/32"},"comments":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/Wikia/infobox-template-builder/statuses/6d73cd27521ff703287efd94618aa4a03f7da998"}}}}